stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Save the Earth

  • 2 Devlogs
  • 5 Total hours

“Save the Earth” ; a broswer-based clicker game where real world threats (pollution, global warming, deforestation, plastic waste) attack Earth and you click to destroy them before they hit. Built with vanilla HTML,CSS AND JS as my custom tab project.

Ship #1

What did you make?
I created the “Save the Earth” project. It is a clicker game that runs in your browser. Earth stands at the center of the screen while the dangers that our planet faces today, such as pollution, global warming, deforestation, plastic waste, appear around it and try to reach it. You have to click them and destroy before they get to Earth. Each successful threat reaching Earth decreases its health, and therefore players lose their score. The game contains the start screen with the instructions, live health bar and score counter, and the game-over screen with the restart button.

What was challenging?
HTML layout turned out to be more difficult than I anticipated – every time I ended up with the duplicated or nested divs. Threat movement calculations were a little complicated as well since I had to determine the direction and distance from every threat to Earth in every single frame. From the aesthetic side, my initial attempt looked quite generic/AI-template-ish (white pill buttons, circled emoji icons), which made me spend time redesigning the UI with a custom monospace font.

What are you proud of?
I am proud that instead of stereotypical aliens, “the enemies” are the actual problems which the environment faces. I also feel proud because now I have managed to implement the full cycle of the game: starting screen > gameplay > game over > restarting without requiring a page refresh.

What do people need to know to play it?
To start playing this game, one needs to click on the “Start Game” button. Threats will be coming to Earth from the corners of the screen and the player is supposed to click them before they reach Earth. In case a threat reaches Earth, then the health bar on top of the screen starts decreasing.

Try project → See source code →
Open comments for this post

4h 23m 5s logged

Final Devlog: Save the Earth

Wrapped up my “Save the Earth” project! Here’s the final rundown;

The concept: Earth sits at the center of space while real-world threats; Pollution, Global Warming, Deforestation, and plastic waste spawn from the edge and drift toward it. Click them before they hit. Survive as long as you can and rack up your score.

Was a fun way to combine a game mechanic with something I actually care about; climate/environment themes; instead of just building another generic dashboard.

0
0
9
Open comments for this post

1h 2m 11s logged

DEVLOG #1: Save the Earth

Save the Earth is a browser-based game.

Added Earth, which sits at the centre, a star field as the background, and a cool-looking title, “Save the Earth”.

0
0
19

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…