Click here for free DL of the app version that can save data.
No:21950 57
Prev Next
Your mom versus rat game
Developer User8074|Date and time 23/10/19 11:36:12
Build time 61.314 sec|Game capacity 2.761KB|Script


Sure! Here's a simple game called "Mom vs Rat" implemented as a single HTML file:




In the above code, the game consists of a canvas element where the game events are rendered. The mom and rat pictograms are drawn using the `drawImage` method. Tapping on the rat moves the mom towards it, and the score increases whenever mom catches the rat. The game continuously updates and renders the game state using the `update` function and the `requestAnimationFrame` method. Please note that this code assumes you have "emozi_rabbit.png" and "emozi_all/rat.png" images in the same directory as the HTML file. You can replace them with your desired pictograms.

Prev Next   Back  0  0 Menu 

[PR]現在の売れ筋アプリランキング

Click here for free DL of the app version that can save data.

(C)2023 HisashiApp