๐ŸŽฏ My First GameMaker Game ยท Episode 3 of 5 ยท See All Episodes
๐Ÿงฑ Episode 3 ยท Improver ยท Instances & Juice

Brick Blitz!
GML Breakout

Breakout the GameMaker way: spawn a brick wall with two loops, use collision events for bouncing, add particle explosions with the built-in particle system, and screen shake, juice is a first-class citizen here.

๐Ÿ‘ถ Ages 10+ โฑ๏ธ ~1.5 Hours ๐ŸŽฏ GameMaker โœ“ Free
๐Ÿ“ Mouse paddle ๐Ÿงฑ instance_create loops ๐Ÿ’ฅ Collision events โœจ Particle system ๐Ÿ“ณ Screen shake โค๏ธ Lives & win
โญ
0 XP
Level 1
๐Ÿ”ฅ0
Your Progress 0 / 6 steps
Build it in our GameMaker Studio too: lay out your game, add real GML behaviours and export Create, Step and Draw event code in the browser. Open the GameMaker Mod Studio →
๐Ÿ“ฆ
Reference project: download the finished code files used in this workshop: โฌ‡ gml-breakout-workshop-reference.zip. Every code block also has a Copy button.
๐Ÿ’ป
How to run: Open GameMaker, load your project, and press F5 to run!
๐Ÿงฉ
Need the game setup? Each episode builds a new game on the same GameMaker setup: a room, objects, and their Create / Step / Draw events. New here or need a refresher? Episode 1 setup โ†’ ยท GML Cheatsheet โ†’
๐ŸŒ
How it works: write the code in each step, and the canvas on the right shows what your code does. It is a live preview that builds the game as you go. Type to see it update, or press Apply to Canvas to test it straight away.
๐ŸฆŠ
Lumo says: every step adds one feature to the same game. Type a little, click Apply to Canvas, and test it straight away. There is no wrong answer you can't undo.

Build Breakout Step by Step

Each step adds one feature. Write the code, watch it come alive in the canvas, then make it your own.

Step 1 / 6
A paddle, a bouncing ball and a wall of bricks
๐ŸŽ‰๐Ÿ†๐ŸŽฎโœจ๐ŸŽ‰
Workshop Complete!
Instance spawning, native particles and screen shake, GameMaker juice mastered. Episode 4 (Space Shooter) awaits in the shooter trainer!
0
Total XP
1
Level
0
Best Streak
0%
Accuracy
๐Ÿš€ Episode 4: Space Shooter โ†’
โญ View My Progress & Certificates

This workshop was free and took many hours to build. If it helped you learn something new, consider supporting the project.

☕ Support on Ko-fi
๐Ÿงฉ
Code Order: GML Step Event
+20 XP
Drag these GML lines into the correct order for a Step event that moves a player and checks collisions.
if (place_meeting(x + hsp, y, obj_wall)) hsp = 0;
var hsp = 0;
x += hsp;
if (keyboard_check(vk_right)) hsp = move_speed;
if (place_meeting(x, y + 1, obj_wall)) and (keyboard_check_pressed(vk_up)) vsp = -jump_force;