broadfield-dev commited on
Commit
acf73da
·
verified ·
1 Parent(s): ac108f9

Update static/scripts.js

Browse files
Files changed (1) hide show
  1. static/scripts.js +6 -6
static/scripts.js CHANGED
@@ -8,12 +8,12 @@ const images = {
8
  'w': new Image(), 'f': new Image(), 'player': new Image(),
9
  'goblin': new Image(), 'potion': new Image(), 'sword': new Image()
10
  };
11
- images['w'].src = '/static/images/wall.png';
12
- images['f'].src = '/static/images/floor.png';
13
- images['player'].src = '/static/images/player.png';
14
- images['goblin'].src = '/static/images/goblin.png';
15
- images['potion'].src = '/static/images/potion.png';
16
- images['sword'].src = '/static/images/sword.png';
17
 
18
  socket.on('update_game', (state) => {
19
  drawGame(state);
 
8
  'w': new Image(), 'f': new Image(), 'player': new Image(),
9
  'goblin': new Image(), 'potion': new Image(), 'sword': new Image()
10
  };
11
+ images['w'].src = '/static/wall.png';
12
+ images['f'].src = '/static/floor.png';
13
+ images['player'].src = '/static/player.png';
14
+ images['goblin'].src = '/static/goblin.png';
15
+ images['potion'].src = '/static/potion.png';
16
+ images['sword'].src = '/static/sword.png';
17
 
18
  socket.on('update_game', (state) => {
19
  drawGame(state);