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

  1. The Ball, The Brick, The Platform
  2. Splitting Code into Several Files
  3. Classes
  4. Other Bricks and The Walls (Container Classes)
  5. Detecting Collisions
  6. Resolving Collisions
  7. Loading Level From External File
  8. Changing Levels
  9. Basic Gamestates: Game and Menu
  10. More Gamestates: Gamepaused and Gamefinished
  11. Basic Tiles
  12. Different Brick Types
  13. Basic Sound
  14. Game Over