Skip to content

Commit

Permalink
chore: rev to v0.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 13, 2024
1 parent 325b8bd commit d638fce
Show file tree
Hide file tree
Showing 31 changed files with 207 additions and 2,867 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ To update snapshots
* Linux for CI

```powershell
docker run --rm --network host -v ${PWD}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.41.2-jammy /bin/bash
docker run --rm --network host -v ${PWD}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.49.1-jammy /bin/bash
npm install
npx playwright test --update-snapshots
```
Expand Down
8 changes: 4 additions & 4 deletions example/formats/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,25 @@ const start = (mapFile: string) => {
player.onPostUpdate = () => {
player.vel.setTo(0, 0);
const speed = isIsometric ? 64*2 : 64;
if (game.input.keyboard.isHeld(ex.Input.Keys.Right)) {
if (game.input.keyboard.isHeld(ex.Keys.Right)) {
player.vel.x = speed;
if (isIsometric) {
player.vel.y = speed;
}
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Left)) {
if (game.input.keyboard.isHeld(ex.Keys.Left)) {
player.vel.x = -speed;
if (isIsometric) {
player.vel.y = -speed;
}
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Up)) {
if (game.input.keyboard.isHeld(ex.Keys.Up)) {
player.vel.y = -speed;
if (isIsometric) {
player.vel.x = speed;
}
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Down)) {
if (game.input.keyboard.isHeld(ex.Keys.Down)) {
player.vel.y = speed;
if (isIsometric) {
player.vel.x = -speed;
Expand Down
4 changes: 2 additions & 2 deletions example/isometric-infinite/isometric-infinite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Player extends ex.Actor {
if (engine.input.keyboard.isHeld(ex.Keys.Left)) {
this.vel.x = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Up)) {
if (game.input.keyboard.isHeld(ex.Keys.Up)) {
this.vel.y = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Down)) {
if (game.input.keyboard.isHeld(ex.Keys.Down)) {
this.vel.y = speed;
}
}
Expand Down
5 changes: 3 additions & 2 deletions example/isometric/isometric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ class Player extends ex.Actor {
if (engine.input.keyboard.isHeld(ex.Keys.Left)) {
this.vel.x = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Up)) {
if (game.input.keyboard.isHeld(ex.Keys.Up)) {
this.vel.y = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Down)) {
if (game.input.keyboard.isHeld(ex.Keys.Down)) {
this.vel.y = speed;
}
}
Expand All @@ -74,6 +74,7 @@ class Player extends ex.Actor {
// this.camera.zoom = 0.5
// }

ex.Flags.useLegacyImageRenderer();
const game = new ex.Engine({
width: 800,
height: 600,
Expand Down
4 changes: 2 additions & 2 deletions example/orthogonal-infinite/orthogonal-infinite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Player extends ex.Actor {
if (engine.input.keyboard.isHeld(ex.Keys.Left)) {
this.vel.x = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Up)) {
if (game.input.keyboard.isHeld(ex.Keys.Up)) {
this.vel.y = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Down)) {
if (game.input.keyboard.isHeld(ex.Keys.Down)) {
this.vel.y = speed;
}
}
Expand Down
4 changes: 2 additions & 2 deletions example/orthogonal/orthogonal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Player extends ex.Actor {
if (engine.input.keyboard.isHeld(ex.Keys.Left)) {
this.vel.x = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Up)) {
if (game.input.keyboard.isHeld(ex.Keys.Up)) {
this.vel.y = -speed;
}
if (game.input.keyboard.isHeld(ex.Input.Keys.Down)) {
if (game.input.keyboard.isHeld(ex.Keys.Down)) {
this.vel.y = speed;
}
}
Expand Down
Loading

0 comments on commit d638fce

Please sign in to comment.