Click here for free DL of the app version that can save data.
No:37514 20
Prev Next
Moving balls making a hit sound
Developer User17064|Date and time 24/1/21 4:49:45
Build time 9.603 sec|Game capacity 3.03KB|Script


Sure! Here's an example of a simple game where you can move balls on a smartphone screen and hear a hit sound when they collide. The game is implemented in a single HTML file using JavaScript and enclosed in script tags:




In this game, there are five balls moving randomly on the canvas. When any ball reaches the edges of the canvas, it reverses its direction and plays a hit sound. You would need to provide your own `hit_sound.mp3` file and make sure it's placed in the same directory as the HTML file. To play the game, open the HTML file on a smartphone browser. The balls will move automatically, and you will hear a hit sound whenever they collide with the edges.

Prev Next   Back  0  0 Menu 

[PR]現在のフィギュア売れ筋ランキング

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

(C)2023 HisashiApp