Click here for free DL of the app version that can save data.
No:3172 3330
Prev Next
Fighting combat
Developer User3672|Date and time 23/6/24 1:15:46
Build time 33.325 sec|Game capacity 4.16KB|Script


Fighting Combat


Explanation: This is a simple game called Fighting Combat implemented as a single HTML file with JavaScript included. The game is designed to be played on smartphones and it uses emojis for graphics. When the game starts, the player sees the title screen with a Start Game button. When the player clicks the button, the game board is populated with the player and an enemy represented by emojis. The objective of the game is to avoid the enemy by tilting the phone and moving the player accordingly. If the player collides with the enemy, the game ends and the player loses. The mousemove event is used to detect the tilt of the phone. The player's position is updated accordingly and checked for collision with the enemy using the getBoundingClientRect() method. If the player collides with the enemy, the game ends and the player is given the option to restart the game. Overall, this is a simple and fun game that showcases the use of JavaScript and smartphone sensors to create an interactive experience.

Prev Next   Back  0  0 Menu 

[PR]現在の売れ筋Kindle本ランキング

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

(C)2023 HisashiApp