Click here for free DL of the app version that can save data.
No:3052 1735
Prev Next
Awesome game
Developer anonymous|Date and time 23/6/23 15:24:39
Build time 98.585 sec|Game capacity 8.057KB|Script


Let's create an awesome game as a single HTML file with JavaScript included, playable on smartphones! We'll use emojis to make it even more fun. First, let's create the basic HTML structure and include the necessary JavaScript code:


Awesome Game



Now, let's create the game board using emojis. We'll use the "🐍" emoji to represent our player, and the "🍎" emoji to represent the food we need to collect. We'll create a 10x10 square grid using a table, and place the player and food randomly within that grid:


Awesome Game

🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳



Now, let's add some JavaScript code to make the game playable. We'll handle user input (swipes or clicks) to move the player around the board, and check if the player has reached the food:


Awesome Game

🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳
🌳🌳🌳🌳🌳



And there we have it - an awesome game that can be played on smartphones using swipes/touches or clicks!

Prev Next   Back  1  1 Menu 

[PR]現在の人気グッズランキング

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

(C)2023 HisashiApp