Compare commits
No commits in common. "e34c6c75bb5c7167196b831760c9a3b9307e11d4" and "02e72795cc90363b0ec8ff0d07d71e03435de23a" have entirely different histories.
e34c6c75bb
...
02e72795cc
2 changed files with 1 additions and 4 deletions
BIN
assets/fire.png
BIN
assets/fire.png
Binary file not shown.
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 368 KiB |
|
@ -134,9 +134,6 @@ class SnekGame {
|
|||
cellSize,
|
||||
cellSize
|
||||
);
|
||||
const putTileAnim=(x, y, tile) => putTile(x, y, tile[
|
||||
Math.floor(Date.now()/1000*60+x+y)%tile.length
|
||||
]);
|
||||
const checkAdj=(x, y) => {
|
||||
let adj={};
|
||||
adj.u=this.world[x][y-1];
|
||||
|
@ -157,7 +154,7 @@ class SnekGame {
|
|||
break;
|
||||
|
||||
case FIRE:
|
||||
putTileAnim(x, y, fire);
|
||||
putTile(x, y, fire[Math.floor(Date.now()/1000*60)%60]);
|
||||
break;
|
||||
|
||||
case HOLE:
|
||||
|
|
Loading…
Reference in a new issue