Course template
Programming Breakout
Breakout game development with frameCraft: Basic structure, movement, collisions, UI, and game logic.

Didactic objective
This template gradually introduces the development of a Breakout game with frameCraft, connecting visible game objects to rule-based programming logic. The focus is on building a sustainable project foundation, controlling objects, modeling game states, and implementing collisions, points, lives, and restart logic. Competence development links **modeling**, **structuring**, and **implementation** by systematically creating programmed components from professional game elements such as paddles, balls, blocks, HUD, and death zones. From an academic perspective, the template is to be assigned in the field of event- and object-oriented game development with a focus on state management, collision processing, and controlled repetition.
Competence focal points
The template bundles central professional and methodological aspects of frameCraft-based Breakout development.
- Scene structure: Scene setup with main scene, input values, objects, and registered rules.
- Input model: Mapping keyboard and touch controls to abstract actions like left, right, start, and stop.
- Object modeling: Creating paddle, ball, and blocks as game objects with collider structures and optional graphical representation.
- Movement logic: Implementing time-based movement with speeds, limits, and reflections at the field edges.
- Grid formation: Automatically generating a block grid using double loops, position calculation, color logic, and counter variables.
- Collision processing: Reacting to ball-paddle and ball-block collisions with bounce angles, point awards, and win conditions.
- State management: Controlling HUD, lives, messages, game over, win, restart, and flag blocks.
Structure of the components
The components develop the Breakout game from a controllable basic scene to ball and block logic up to complete game state management.

Scene setup, Input & Paddle movement
The component sets the controllable basic structure of the scene and makes the paddle as the first central game object visible and movable.

Ball start, move, reflect walls
The building block adds the ball as a movable object and introduces start logic and reflection on walls and ceiling.

Color Block Grid with Counter
The building block transfers individual blocks into a systematically generated grid with unique names, color logic, and count variable.

Collisions & Game Logic
The building block connects collisions with game rules by processing paddle rebound, block hits, points, and win conditions.

HUD, Game State & Restart
The building block makes points, lives, and messages visible and structures the restart logic after game over or win.

Death Zone & Block Flag
The building block adds loss logic with death zone, life subtraction, game over state, and blocking mechanism against multiple triggers.
Contents at a Glance
The overview shows the building blocks in the intended order and assigns their respective contribution to the overall composition of the template.
| Building block | Content focus | Scope |
|---|---|---|
| Structure, Input & Paddle movement | Scene setup, inputs, paddle object, movement rule, dt scaling, and boundary. | 30 min, 1 task |
| Start ball, move, reflect walls | Ball entity, initial state, ball start, wall reflection, and position correction. | 25 min, 3 tasks |
| Block grid with colors and counter | Double loop, unique block names, position calculation, row colors, and block counter. | 25 min, 1 task |
| Collisions & Game logic | Collision handler, bounce angle, block hit, points, block counter, and win condition. | 25 min, 1 task |
| HUD, game state & Restart | UI texts, score and life display, notification text, and restart after end states. | 25 min, 1 task |
| Death zone & Block flag | Death zone, life drain, block flag, reset ball state, and game over message. | 25 min, 1 task |
The clearly structured modules make learning objectives and dependencies of game development transparent. This allows the template to be easily linked to teaching series such as frameCraft, game programming, and game logic.
You can test the template via a demo access and adapt the modules to your learning group.