dev
tutorials
Home
All tutorials
All Tutorials
Browse 17 tutorials across all topics.
beginner
Build an Asteroid Dodger in Rust with macroquad
Build a top-down spaceship with momentum-based movement and randomly shaped asteroids — your first Rust game, no engine required.
Rust
macroquad
game dev
Asteroid Dodger: Unit Testing
Learn Rust's built-in testing framework by writing tests for the collision detection module.
Rust
testing
game dev
Deploy to Cloudflare Workers
Host your Astro site for free on Cloudflare Workers with Static Assets — Cloudflare's modern replacement for Pages.
Cloudflare
deployment
hosting
OpenRCT2: Handyman Repair Scenery Order
Add a new staff order that lets handymen seek out and repair vandalised path additions — benches, bins, and lamps.
C++
OpenRCT2
game dev
intermediate
Asteroid Dodger: Borrowing and Ownership
Understand why the borrow checker made you write code a certain way — ownership, borrowing rules, and common patterns explained.
Rust
ownership
borrowing
Asteroid Dodger: Collision Detection
Add AABB and polygon collision detection, an HP bar with invincibility frames, and a complete game over loop to your Rust asteroid dodger.
Rust
macroquad
game dev
Asteroid Dodger: Integration Testing
Test game logic without opening a window — shop purchases, power-up effects, state transitions, and weapon behavior.
Rust
testing
integration
Asteroid Dodger: Large Map and Minimap
Expand the game world beyond the screen with a camera system and add a corner minimap radar to your Rust asteroid dodger.
Rust
macroquad
game dev
Asteroid Dodger: Lifetimes and References
Understand Rust lifetimes through the lens of your game's physics code — why split_at_mut works, when you need lifetime annotations, and when you don't.
Rust
lifetimes
references
Asteroid Dodger: Menu, Power-ups, and Shop
Add a title screen, rebindable controls, collectible power-ups, and a between-rounds shop to your Rust asteroid dodger.
Rust
macroquad
game dev
Asteroid Dodger: Physics
Add elastic collision physics with mass-based impulses for asteroid-asteroid and ship-asteroid bouncing, plus broad-phase AABB optimization.
Rust
macroquad
game dev
Asteroid Dodger: Project Structure
Organize a growing Rust project — group modules into directories, control visibility with pub(crate), and learn when a workspace makes sense.
Rust
project structure
modules
Asteroid Dodger: Shooting and Destruction
Add bullets, hit detection, and asteroid splitting to your Rust asteroid dodger — shoot asteroids apart and watch fragments scatter.
Rust
macroquad
game dev
Asteroid Dodger: Sound and Particle Effects
Add procedural audio and a particle system to your Rust asteroid dodger — explosions, damage flashes, and thrust sounds with no external assets.
Rust
macroquad
game dev
Asteroid Dodger: Traits and Generics
Extract shared behavior into traits and write generic functions — refactoring your asteroid dodger to use Rust's polymorphism.
Rust
traits
generics
Asteroid Dodger: Weapons and Bombs
Add a weapon system with four fire modes and deployable bombs to your Rust asteroid dodger.
Rust
macroquad
game dev
advanced
Asteroid Dodger: Concurrency
Parallelize asteroid updates and collision detection with rayon — an introduction to Rust's fearless concurrency.
Rust
concurrency
rayon