Learn To Code Asteroids – Course Introduction

(this is a beginners programming course but you’ll need some basic coding knowledge – check out my Space Invaders course first if you’ve never programmed before!)

Asteroids is one of my favourite games from the early arcades. It’s great fun to play, but even more fun to code for yourself. In this course I’ll take you through the complete rebuild of the game using the BBC micro version , Meteors, as a guide.

You’ll learn how to model the vector shapes in your code, move and rotate 2D points around the screen and simulate rocket motor thrust and deceleration. We’ll also learn how to add precise object collision detection where we’ll calculate if two irregular polygons are colliding using the crossing line technique.

The course is suitable for anyone who’s followed my Space Invaders course, or who has a basic understanding of computer programming. We’ll be using TIC 80 as the development system so make sure you check out the first Space Invaders lesson to find out how to get hold of the software.

Play the finished game… Asteroids

Left and right arrows rotate the ship. Up arrow thrusts forwards. Z is the fire key.

Asteroids Course Lessons

Learn to Code Asteroids – Lesson 1 – Drawing Vector Shapes

Learn to Code Asteroids – Lesson 2 – Moving With Vectors

Learn to Code Asteroids – Lesson 3 – Generating Random Vector Asteroids

Learn to Code Asteroids – Lesson 4 – Point in Polygon Collision Detection

Learn to Code Asteroids – Lesson 5 – Scaling Vector Graphics

Learn to Code Asteroids – Lesson 6 – Polygon on Polygon Collision Detection

Learn to Code Asteroids – Lesson 7 – Particle Effects

Learn to Code Asteroids – Lesson 8 – Smoke Effects Code Challenge

Learn to Code Asteroids – Lesson 9 – Speeding Up The Code

Learn to Code Asteroids – Lesson 10 – Alien Ships Sighted