i have updated the link. file:///C:/Users/RB/Desktop/maze/maze.html
take a pic and tell me whats rong
Search found 5 matches
- Tue Jul 04, 2017 8:41 pm
- Forum: Beginner Help and Support
- Topic: i need help with this peace of code
- Replies: -1
- Views: 4321
- Mon Jul 03, 2017 7:39 pm
- Forum: Beginner Help and Support
- Topic: i need help with this peace of code
- Replies: -1
- Views: 4321
Re: i need help with this peace of code
i thought it'd be something like that. but how do i solve it? i did this if(keysDown[38]) {sprite = 0; } else if (keysDown[40]) {sprite = 1; } else if (keysDown[37]) {sprite = 3; } else if (keysDown[37]) {sprite = 2; } var sprite= sprite; now the player its shown only when i press a key,else it gows...
- Sun Jul 02, 2017 4:35 pm
- Forum: Beginner Help and Support
- Topic: i need help with this peace of code
- Replies: -1
- Views: 4321
Re: i need help with this peace of code
the player moves with the keyboard arrows
- Sun Jul 02, 2017 10:58 am
- Forum: Beginner Help and Support
- Topic: i need help with this peace of code
- Replies: -1
- Views: 4321
- Sun Jul 02, 2017 7:16 am
- Forum: Beginner Help and Support
- Topic: i need help with this peace of code
- Replies: -1
- Views: 4321
i need help with this peace of code
i have this code <!DOCTYPE html> <html> <head> <script type="text/javascript"> var ctx = null; var gameMap = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0,...