Skip to content

Commit c077d2a

Browse files
committed
Works with new factory
1 parent 9ec703c commit c077d2a

File tree

19 files changed

+662
-297
lines changed

19 files changed

+662
-297
lines changed

.vscode/tasks.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=733558
3-
// for the documentation about the tasks.json format
42
"version": "2.0.0",
53
"tasks": [
64
{
7-
"label": "echo",
8-
"type": "shell",
9-
"command": "echo Hello"
5+
// Use 'Developer: Reload Window' to reset problem panel
6+
"label": "eslint-problemMatcher",
7+
"type": "npm",
8+
"script": "eslint",
9+
"problemMatcher": ["$eslint-stylish"]
10+
},
11+
{
12+
"type": "npm",
13+
"script": "start-typescript-development",
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
1018
}
1119
]
12-
}
20+
}

README.html

Lines changed: 399 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Text **bold**
1515

1616
## heading 2
1717

18+
<div style="page-break-after: always;"></div>
19+
1820
![ums](./assets/uml-diagram.svg){width=100%}
1921

2022
<!-- <img src="./assets/winter-in-bohemia" width="300"> -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start-typescript-development": "tsc-watch --onSuccess 'npm --silent run test-and-eslint'",
88
"test-and-eslint": "npm run test && npm run eslint",
99
"test": "mocha --reporter min --require esm --require ./setup-jsdom.js",
10-
"eslint": "eslint --cache -f unix --ext .ts src/ test/",
10+
"eslint": "eslint --cache --ext .ts src/ test/",
1111
"eslint-fix": "eslint --fix --cache -f unix --ext .ts src/ test/",
1212
"build-bundle": "rollup --config",
1313
"create-github_markdown-of-readme": "pandoc --strip-comments --extract-media=./dist README.md -t gfm -o README_github.md",

src/app.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { detectAndActOnCollisions3 } from './utilities/collision-detection.js';
1010
import { Vector2 } from './utilities/vectors.js';
1111

1212
/**
13-
* =========================================================================
13+
* ============================================================================
1414
* Calculate the maximum screen size available within a fixed ratio
15-
* =========================================================================
15+
* ============================================================================
1616
*/
1717
function toFixedScreenRatio(
1818
currentWidth: number,
@@ -30,9 +30,9 @@ function toFixedScreenRatio(
3030
}
3131

3232
/**
33-
* =========================================================================
33+
* ============================================================================
3434
* Global variables
35-
* =========================================================================
35+
* ============================================================================
3636
*/
3737
const canvas = document.getElementById('game-canvas');
3838
assert(
@@ -50,17 +50,17 @@ const globalState = new GlobalState(new Init(), ctx); // is this place for ctx?!
5050
);
5151

5252
/**
53-
* =========================================================================
53+
* ============================================================================
5454
* Event Listeners
55-
* =========================================================================
55+
* ============================================================================
5656
*/
5757
document.addEventListener('keydown', globalState.keyHandler.bind(globalState));
5858
document.addEventListener('keyup', globalState.keyHandler.bind(globalState));
5959

6060
/**
61-
* =========================================================================
61+
* ============================================================================
6262
* Main Loop
63-
* =========================================================================
63+
* ============================================================================
6464
*/
6565
function gameLoop(): void {
6666
// while (GameContext.running) {

src/entities/factory.js

Lines changed: 72 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)