Click here for free DL of the app version that can save data.
No:14308 58
Prev Next
Mario but every second you get faster
Developer unknown|Date and time 23/8/31 21:27:03
Build time 15.627 sec|Game capacity 2.135KB|Script


Sure, here's a simple implementation of a game similar to Mario, where the character gets faster every second. The game can be played on a smartphone and uses pictograms for visuals. The game starts when the HTML page is loaded.




In the above code, the game initializes with a character resembling Mario positioned at (`marioX`, `marioY`) on the canvas. The `speed` variable determines how much `marioX` changes every frame. The game continuously updates the state by clearing the canvas, moving Mario horizontally, drawing Mario on the canvas, and increasing the speed every second. The `requestAnimationFrame` method is used to achieve smooth animation. Note: You'll need to provide your own pictogram of Mario (named `emozi_all/pictogram.png`) and update the path accordingly in the code.

Prev Next   Back  0  0 Menu 

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

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

(C)2023 HisashiApp