Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Learn Zig by Building Space Invaders

via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Embark on a micro-course designed to teach the Zig programming language through the creation of a classic arcade shooter clone. Leverage the Raylib library to build the game, exploring common Zig patterns, structs, and built-ins along the way. Progress through a structured syllabus covering project setup, external dependencies, game window creation, and event loop management. Construct the player character, enable movement and combat, and program the invading enemies to fight back. Implement scoring systems, game over mechanics, defensive shields, and game resetting functionality. Conclude with a bonus lesson discussing inlining. Keep in mind that this material assumes prior software development experience and familiarity with fundamental primitives like booleans and integers, making it unsuitable for absolute programming beginners. Experience a pedagogical approach that intentionally utilizes suboptimal decisions to expose more of the language's features, encouraging experienced developers to optimize the implementation. Supplement the video lessons with free text content, optional quizzes, a dedicated Discord community for support, and accessible finished source code on GitHub.

Syllabus

Learn Zig by building Space Invaders, Lesson 1 - Getting Started and Project Introduction
Learn Zig by building Space Invaders, Lesson 2 - Setting up Raylib (External Dependencies)
Learn Zig by building Space Invaders, Lesson 3 - Building the game window and event loop
Learn Zig by building Space Invaders, Lesson 4 - Learning Structs and our Game Config
Learn Zig by building Space Invaders, Lesson 5 - Building our Player and talking Built-ins
Learn Zig by building Space Invaders, Lesson 6 - Drawing and Moving our Player!
Learn Zig by building Space Invaders, Lesson 7 - Allowing the player to fight invaders
Learn Zig by building Space Invaders, Lesson 8 - Adding and moving the invaders!
Learn Zig by building Space Invaders, Lesson 9 - Defeating Invaders and increasing Score
Learn Zig by building Space Invaders, Lesson 10 - The Invaders Fight back and game over!
Learn Zig by building Space Invaders, Lesson 11 - Introducing Shields and bringing it all together
Learn Zig by building Space Invaders, Lesson 12 - Resetting the game and wrapping up
Zig Invaders - Bonus Lesson 1 - Inlining and should you do it

Reviews

Start your review of Learn Zig by Building Space Invaders

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.