7

I re-created the 1979 Atari game, Asteroids, with JavaScript

 1 year ago
source link: https://blogthedata.com/post/I-re-created-1979-Atari-game-asteroids-with-JS/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

I re-created the 1979 Atari game, Asteroids, with JavaScript

July 11, 2022 in Geodev

After spending the last few months with Python and Django, I thought of a project to help sharpen my JavaScript skills. I found this Youtube Tutorial where you re-create Asteroids in 2 hours and 45 mins. After completing the tutorial, the whole app becomes a single HTML file with a <script> that is about ~1000K lines long.

I wanted the application to be more modular, so I split it into 10 files in this PR. I think it looks and reads A LOT better. Instead of the code being one long file, I have separated out logic such as collisions, scoring, and sound effects. This way, adding new features will be much easier, and it's less of a maintenance nightmare. 

My goal for the project is to make it into a game for GIS nerds like me. You'll be able to upload your geospatial data and play the game with YOUR polygons. 

Stay tuned for more updates. If you want to log a bug/enhancements, check out GeoAsteroid's Github repo.

The game is live at GeoAsteroids.com

Your browser doesn't support HTML5 video. Here is a link to the video instead.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK