Spaces:
Sleeping
Sleeping
Update static/scripts.js
Browse files- 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/
|
12 |
-
images['f'].src = '/static/
|
13 |
-
images['player'].src = '/static/
|
14 |
-
images['goblin'].src = '/static/
|
15 |
-
images['potion'].src = '/static/
|
16 |
-
images['sword'].src = '/static/
|
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);
|