Click here for free DL of the app version that can save data.
No:15529 142
Prev Next
An evolving planet sum
Developer User6730|Date and time 23/9/9 20:07:15
Build time 30.406 sec|Game capacity 3.486KB|Script

Sure! Here's an implementation of the game "An Evolving Planet Sum" using JavaScript, enclosed in script tags within a single HTML file. The game is designed for smartphone operation and uses pictograms for a fun gaming experience. The goal of the game is to create a new planet by summing up the existing planet's attributes. The planet's attributes are represented by pictograms and their corresponding numerical values.


An Evolving Planet Sum

Planet Earth





In this game, we have a planet represented by an image of Earth. The planet's attributes are represented by pictograms such as water, air, fire, and earth. Each attribute has an associated input field where its numerical value is displayed. Clicking on an attribute's pictogram increases its numerical value by 1. The `sumAttribute` function is responsible for updating the attribute's numerical value and calling the `updatePlanet` function. The `updatePlanet` function calculates the total sum of all attributes and updates the planet's image accordingly. If the sum of the attributes is 20 or greater, it displays an image of a new planet; otherwise, it displays the image of Earth. You can save this code in an HTML file on your smartphone and open it in a web browser to play the game. Simply click on the pictograms to increase their numerical values and observe the planet's image change based on the sum of the attributes.

Prev Next   Back  0  0 Menu 

[PR]現在のゲームギフトランキング

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

(C)2023 HisashiApp