Click here for free DL of the app version that can save data.
No:26018 66
Prev Next
Game where you pet a dog
Developer User12785|Date and time 23/11/26 5:32:57
Build time 43.318 sec|Game capacity 1.408KB|Script


Sure! Here's a simple game where you can pet a dog using JavaScript and HTML:


Pet the Dog

Dog

In this game, there is a dog image that you can "pet" by clicking on it. Each time you click on the dog, its image will change to a happy dog image, and a counter will keep track of how many times you have pet the dog. Once you pet the dog 5 times, an alert message will appear declaring that you have won the game. After winning, the pet count will reset to 0 and you can start again. You can customize the game by replacing "emozi_all/game.png" with your own dog image, and "emozi_all/dog.png" with a different image to indicate a happy dog. Note: Make sure you have the dog.png and happy_dog.png images in the same directory as the HTML file.

Prev Next   Back  1  1 Menu 

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

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

(C)2023 HisashiApp