+ 2
any help mastah ?
Please help me Mastah ... I want to make the appearance of the output button when clicked will repeat a game again ... but I don't know how! HTML Program.
4 Answers
+ 3
You create new gameArea when the document is loaded. You should create it in the start function so when you call it the canvas gets reset.
Clear the interval and obstacle array.
You should have a start or init function that you call when you want to start/restart the game. It should clear the game values and reset to default.
Take a look at this.
https://code.sololearn.com/WftFhf1E9UQI/?ref=app
You can see the huge messy init function which is called twice.
When the page loads and when you collapse.
+ 1
make a hover page with button
0
ty sir Daventure
0
oky. Ty Sir Toni Isotalo