Skip to content

Commit

Permalink
feat: add tint to spikes
Browse files Browse the repository at this point in the history
  • Loading branch information
benox3 committed Jan 30, 2022
1 parent e6d327c commit 40863ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scenes/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export default class Main extends Phaser.Scene {
tile.getCenterX(),
tile.getCenterY(),
key.image.spike
);
) as Phaser.Physics.Arcade.Sprite;
spike.setTint(0xff6e6e);

// The map has spikes rotated in Tiled (z key), so parse out that angle to the correct body placement
spike.rotation = tile.rotation;
Expand Down

0 comments on commit 40863ff

Please sign in to comment.