Asteroids is an exciting and fun arcade game from the early 1980's. It has become a great introductory project to learn some of the basics of game programming.

This is a tutorial project, where I walk through the basics of putting most of this game together using the C programming language and a game development library called Raylib!

I'm using the freely available Visual Studio 2022 Community Edition and the raylib gamejam template, which helps you spend less time configuring your local development environment, and more time figuring out how to blast down some rogue Asteroids!

===---=== Game Plan ===---===

  • load up all of our image and texture data
  • load up all sound effects
  • create an object that the player controls
  • handle keyboard input to move the player and fire a laser shot
  • create a meteor object
  • meteors will be independently updated in our game area
  • we have 3 different sizes of meteors: large, med, small
  • if a laser blast hits a meteor then it will vanish
  • player's score will += 10
  • the game is over when all the meteors are destroyed
  • if the player or meteor travels off the side of the game area, it will warp to the other side of the game area
  • if a laser blast travels off the side of the game area, it will vanish

Available here on YouTube:

StatusReleased
PlatformsHTML5
Authoreyuzwa
GenreAction
Made withraylib
Tags2D, Asteroids, raylib, Tutorial
Code licensezlib License
Average sessionA few minutes
LanguagesEnglish
InputsKeyboard

Leave a comment

Log in with itch.io to leave a comment.