Click here for free DL of the app version that can save data.
No:24647 100
Prev Next
Time Machine
Developer User11298|Date and time 23/11/11 1:10:58
Build time 89.463 sec|Game capacity 4.308KB|Script



Time Machine Game

Welcome! Can you travel through time?



Explanation: This is a game called "Time Machine" implemented as a single HTML file. The game allows the player to travel between the past and the future using a time machine. The game is displayed in a centered format with a title, an output section showing the current image and a message, and three buttons for controlling the time travel actions. The JavaScript code includes functions for each time travel action: `travelToPast()`, `travelToFuture()`, and `restartGame()`. These functions manipulate the image and message elements based on the player's choice. The event listeners are added to the buttons using `addEventListener()` to trigger the corresponding action when the buttons are clicked. The game starts with the image "emozi_all/game.png" and a welcome message. The player can then click either the "Go to the Past" or "Go to the Future" button to travel and see the respective image with a related message. The player can restart the game at any time by clicking the "Restart" button. Please note that you would need to replace the image references (`emozi_dog.png`, `emozi_himawari.png`, `emozi_cat.png`) with actual paths to your own pictogram images or adjust the code according to your requirements.

Prev Next   Back  0  0 Menu 

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

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

(C)2023 HisashiApp