Coding Challenge  #74 - Asteroids

Coding Challenge #74 - Asteroids

This challenge is to build your own version of the classic arcade game Asteroids. Asteroids, which was was first released in 1979, sees the player controlling a spaceship in an asteroid field. The objective of the game is to destroy the asteroids and the occasional flying saucer by shooting them.

The player dies when they collide with either an asteroid or the flying saucer, when all three lives are gone the game is over. The game gets harder over time as the number of asteroids increases. Given how limited computers were in 1979 the graphics are pretty simple, for example:


If You Enjoy Coding Challenges Here Are Two Ways You Can Help Support It

  1. Refer a friend or colleague to the newsletter. ??
  2. Buy one of my courses that walk you through a Coding Challenge.

Or for those of you who want automated test, until I add them you can check out codecrafters.io and you can get 40% off as a Coding Challenges reader plus it helps support Coding Challenges.


The Challenge - Building Your Own Asteroids Game

In this coding challenge we’re going to build a clone of the video arcade game Asteroids. If you haven’t played it before, a quick Google search will provide several online options. Give it a go.


Step Zero

In this step, pick the programming language and development environment you’re going to use. Consider trying something different - this would be a great project to try a frontend stack if you’re a backend developer and vice versa.

If you’re from a data engineering or site-reliability engineering background you could leverage your knowledge of Python with PyGame or Go with Ebitenegine. Rustaceans can check out?are we game yet?for useful crates.

Asteroids is relatively simple and as such, it’s a great platform for learning a new technology, or programming language.


Step 1

In this step your goal is to create the game screen ready to start the game. Typically this is a simple blank black screen, with a button saying “start new game”. You might like to add the title of the game too.

Continued...

You can find the remaining steps for this challenge on the Coding Challenges Substack here.


Francisco Manuel Soto Ramírez

SDE2 @Amazon | Author of 15,000+ subs Newsletter (strategizeyourcareer.com)

5 个月

Besdies your work putting these challenges, I'm amazed with your creativity and how you come with ideas, John Crickett! Keep them coming!

Guilherme Bayer

Senior Frontend Developer | 10+ Years Experience | LATAM | Expert in React, Next.js, Vue.js, and Building UI

5 个月

Building an Asteroids game sounds dope. Gives a chance to flex those coding muscles while having fun. Anyone up for it?

Rocky Bhatia

Top 1% @LinkedIn | Architect @ Adobe | 350k+ Followers Across Social Media | Global Speaker

5 个月

John Crickett Just like leveling up in a game, each coding challenge presents new opportunities to learn, grow, and improve your skills. As you tackle more complex problems and overcome obstacles, you'll gain confidence and become a more proficient programmer.

Omar Halabieh

Tech Director @ Amazon Payment Services | I help professionals lead with impact and fast-track their careers through the power of mentorship | #1 LinkedIn Arab World Creator in Management & Leadership

5 个月

Another week, another great challenge! Appreciate what you share my friend to help the community uplevel.

要查看或添加评论,请登录

John Crickett的更多文章

  • Coding Challenge #85 - Time Zone Converter

    Coding Challenge #85 - Time Zone Converter

    Coding Challenge #85 - Time Zone Converter This challenge is to build your own Time Zone Converter. That is a tool to…

    12 条评论
  • From The Challenges - IRC Client

    From The Challenges - IRC Client

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    5 条评论
  • Coding Challenge #84 - Mandelbrot Set Explorer

    Coding Challenge #84 - Mandelbrot Set Explorer

    This challenge is to build your own Mandelbrot set explorer. The Mandelbrot set is a set of fractals that exhibit great…

    4 条评论
  • From The Challenges - Cat

    From The Challenges - Cat

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    7 条评论
  • Coding Challenge #83 - Markdown Presentation Tool

    Coding Challenge #83 - Markdown Presentation Tool

    Coding Challenge #83 - Markdown Presentation Tool This challenge is to build your own version of Go’s Present or…

    3 条评论
  • From The Challenges - Shell

    From The Challenges - Shell

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    3 条评论
  • Coding Challenge #82 - Markdown To PDF Editor

    Coding Challenge #82 - Markdown To PDF Editor

    Coding Challenge #82 - Markdown To PDF Editor This challenge is to build your own tool to convert markdown to PDF. It…

    14 条评论
  • From The Challenges - Diff

    From The Challenges - Diff

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    7 条评论
  • Coding Challenge #81 - Brainf*ck Interpreter

    Coding Challenge #81 - Brainf*ck Interpreter

    This challenge is to build your own Brainf*ck Interpreter. Just in case you’re wondering, yes the * should be a u, but…

    34 条评论
  • From The Challenges - URL Shortener

    From The Challenges - URL Shortener

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    13 条评论

社区洞察

其他会员也浏览了