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

Alien or Earth?

  • 3 Devlogs
  • 11 Total hours

A fun fast paced browser game where you have to see raw NASA Images and guess whether it is Earth or not (Alien)

Ship #1 Pending review

The game is live!! Now you can see raw NASA Images and decide whether it is Earth or Alien? I wanted to build a fast-paced game using real NASA data, but without relying on any frameworks. You get exactly 7 seconds to look at a raw satellite feed and identify if it’s Earth or an alien planet before the connection drops.

The biggest hurdle was that the NASA API can be extremely slow, especially on cellular networks. To fix the latency, I engineered a background caching script that silently pre-loads the next 4 images while you are playing the current round. The result is zero loading screens between rounds. I also had to write a strict text filter to strip out all the junk API responses (airplanes, rovers, facility diagrams) so you only see pure planetary surfaces.

The core loop is done and the UI is locked.
Play it here: https://kartikeynegi25.github.io/Alien-or-Earth-/

Try to beat a streak of 5. Drop your high score, and let me know if you hit any weird images or bugs!

  • 3 devlogs
  • 11h
Try project → See source code →
Open comments for this post

4h 6m 51s logged

So the game is finally fully playable now! I got the buttons working and added a 7-second timer so you have to guess really fast, while you can also see your current and max score. I also figured out how to write a script that secretly downloads the next few images in the background while you’re playing. Now there are zero loading screens. Also I spent way too much time fighting with CSS to fix the home screen. The text was glitching and the launch button kept getting huge, but I finally fixed it after so much of working on it only to find that the only problem was a extra class name in its container. :98:

0
0
72
Open comments for this post

3h 57m 42s logged

So done with the core of the project i completed the home page and also how the game will work and its working fine currently it shows only images but we cannot actually play it later will make the buttons working so we can actually have fun :30fps:

0
0
52
Open comments for this post

3h 3m 44s logged

So today I am starting a :90s-new: cool project Earth or Alien? I am thinking of making it as a fun project and use real NASA data for it I started with the basic structure of game by creating index.html file and a script.js file where it will fetch the data lets see how it turns out to be and what I make as I am exploring how to use some coool NASA images:83117e03-f343-4ebd-a19e-b16f02c98294:

0
0
50

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…