Archive - noooway/love2d_arkanoid_tutorial GitHub Wiki
Initial version of the first two chapters of the tutorial.
Classes are introduced early on, HardonCollider (HC) is used for collision detection and hump.gamestate for the gamestates. After some discussion I've become convinced that classes should be postponed for later chapters or avoided altogether in such a simple game. HC is overkill and should be replaced either with Bump or with manually written collision detection.
The latest commit where the code for this version is accessible is c5d74506af9d4e5b1f8023470f7c98b9cff9fdbe.
Chpater 1: Maintainable Code
- The Ball, The Brick, The Platform
- Splitting Code into Several Files
- Classes
- Other Bricks and The Walls (Container Classes)
- Detecting Collisions
- Resolving Collisions
- Loading Level From External File
- Changing Levels
- Basic Gamestates: Game and Menu
- More Gamestates: Gamepaused and Gamefinished
- Basic Tiles
- Different Brick Types
- Basic Sound
- Game Over