Course Overview
In this hands-on course, you will learn how to create a classic 2D space shooter game, Asteroids, using the powerful and lightweight Ebitengine library in Go. Whether you’re a beginner to game development or looking to expand your skills in a new language and framework, this course will guide you through the entire process of building your own version of this iconic arcade game.
Ebitengine's easy to learn and use API allows you to develop 2D games quickly and easily. Games can be deployed across multiple platforms, including Windows, Mac, Linux, FreeBSD, the Web, iOS and Android. You can even deploy your game to Steam!
Go is fast, and so is Ebitengine. While Ebitengine's drawing API is very simple, games developed in it run very quickly with GPU power.
In this course, we'll learn how to:
Introduction to Ebitengine: Get familiar with the basics of how to set up Go and use Ebitengine for 2D game development.
Game Design Fundamentals: Understand core game mechanics like player movement, object collisions, game states, and rendering.
Creating the Game World: Learn how to design the asteroid field, ship controls, and space physics—like rotation, thrust, and inertia.
Rendering and Animation: Master how to draw and animate your ship, asteroids, bullets, and explosions using Ebitengine’s powerful drawing functions.
Game Logic: Implement the game loop, scoring system, levels, and spawn mechanics for asteroids. Learn how to create enemies and manage the player’s health.
Sound and Music: Add sound effects for shooting, explosions, and background music to enhance the player's experience.
Building a Playable Game: Integrate everything to create a fully functional, interactive game that runs in the browser or on desktop platforms.
By the end of this course, you will have developed your own playable Asteroids clone, gaining the knowledge and confidence to create more complex 2D games in Go. Whether you want to add new features or make your own game from scratch, this course will equip you with the foundational skills needed for game development in Go using Ebitengine.
Prerequisites:
A basic knowledge of the Go programming language.
Tools Used:
Go
Ebitengine (a 2D game engine for Go)
Visual Studio Code (or your favourite IDE)
Take your first step into the world of game development with Go!
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 6 bài · 13 phút
Chương 2 Getting Started With Our Game 9 bài · 58 phút
- What we'll build in this section Học thử 0:54
-
Important note for Windows WSL users 1:03
-
Getting started with our game 5:30
-
Getting started with sprites 7:57
-
Creating a Player object with our sprite 6:22
-
Drawing the player to the screen 2:28
-
Rotating the player sprite 11:02
-
Moving the player on the screen 13:30
-
Keeping the player on the screen 9:03
Chương 3 Setting Up Scenes 8 bài · 57 phút
-
What we'll build in this section 2:24
-
Building a scene manager 15:47
-
Modifying the Game type to use a scene manager 6:18
-
Setting up a Game Scene 4:37
-
Updating the Player type to use a scene manager 3:31
-
Trying out our updated project 1:07
-
Adding a simple title scene 16:18
-
Updating text display to use text/v2 7:15
Chương 4 Adding Meteors to our Game 6 bài · 55 phút
-
What we'll build in this section 0:50
-
Loading meteor assets 4:39
-
Getting started with meteor.go 18:40
-
Adding the Update, Draw, and keepOnScreen methods to our Meteor type 7:25
-
Draw some meteors on the TitleScene 6:43
-
Drawing meteors on the GameScene 16:44
Chương 5 Collision detection 6 bài · 28 phút
-
What we'll build in this section 1:30
-
Add solarlune/resolv to our project to allow for collision detection 1:41
-
Updating meteors to create collision objects 11:29
-
Updating the player to create collision object 5:02
-
Creating a space for collisions in the Game Scene 3:47
-
Testing collision detection 4:27
Chương 6 Implementing Basic Gameplay 7 bài · 1 giờ 15 phút
-
What we'll build in this section 1:15
-
Getting started adding player lasers 13:53
-
Adding lasers to the Player and Game Scene 5:54
-
Actually firing lasers 10:51
-
Destroying meteors with lasers 19:09
-
Destroying meteors with lasers II 6:21
-
Destroying the player with meteors 17:27
Chương 7 Adding Sound 10 bài · 1 giờ 23 phút
-
What we'll build in this section 1:16
-
Loading acceleration sound asset 3:53
-
Adding acceleration sound 8:28
-
Adding exhaust while accelerating 23:08
-
Allowing the player to move backwards 8:14
-
Adding laser sounds 6:55
-
Adding explosion sounds 4:52
-
Adding background sounds 9:58
-
Adding background stars 12:31
-
Adding background stars to the Game Scene 4:13
Chương 8 Adding Levels 7 bài · 1 giờ 20 phút
-
What we'll build in this section 1:22
-
Adding a Game Over Scene 12:45
-
Adding Lives Remaining indicators 7:28
-
Adding Lives Remaining indicators II 9:28
-
Displaying the current score, high score, and level 11:07
-
Persisting the high score 22:56
-
Moving to the next level 14:51
Chương 9 Adding Shields and Hyperspace 6 bài · 1 giờ 13 phút
-
What we'll build in this section 1:20
-
Setting up the Shield assets, type, and drawing the shield 16:34
-
Displaying and updating the shield 12:34
-
Setting up Shield Indicators 15:00
-
Bouncing meteors off of the shield 5:32
-
Setting up Hyperspace and the Hyperspace indicator 22:09
Chương 10 Adding Simple Game Physics 2 bài · 17 phút
-
What we'll build in this section 0:48
-
Setting up basic inertia 16:17
Chương 11 Adding Aliens 6 bài · 1 giờ 26 phút
-
What we'll build in this section 0:54
-
Setting up the Alien Type 21:58
-
Setting up the AlienLaser Type 15:54
-
Updating the GameScene to spawn aliens 14:59
-
Allowing the aliens to fire lasers 18:12
-
Handling collisions between Aliens, Alien Lasers and the Player 14:18
Chương 12 Deploying the application 4 bài · 38 phút
-
What we'll build in this section 0:55
-
Building an executable with a custom icon for a Mac 15:55
-
Building an executable with a custom icon for Windows 6:07
-
Deploying our game to the web as a WASM file 15:00
Requirment
-
Familiarity with the Go programming language is required.
Outcomes
-
Learn how to build a simple 2D Game in Go
-
Learn how to animate sprites in your game
-
Implement a collision engine in your game
-
Add audio effects to your game
-
Learn how to deploy your game as an application, or as a web page using WASM
0 Student
9 Courses
0 review