simple arkanoid clone in Love2d (+tutorial)
Posted: 20 Apr 2017, 17:12
Hey!
I have been writing a simple Arkanoid-type game with LÖVE framework, but at some point I've decided to turn it into a tutorial.
Here is a couple of screenshots:
My current plans are to finish the tutorial about programming part and then to update the graphics and the sound.
In the end, I want to achieve a small (~20 levels or so) but well-polished game.
LÖVE framework uses Lua language and it is geared towards 2d games.
It is cross-platform, running on major desktop and mobile operating systems, and on the web (with the help of external tools).
Here is a couple of example games: Mari0, Mr. Rescue.
Last, but not least, it is free and open-source.
LÖVE is simple and intuitive; glancing over this short article is enough to understand it's basic principles of operation.
The tutorial is intended for people, who have basic programming experience, but have trouble structuring their code for projects bigger than "Hello World". An Arkanoid, while simple, contains many elements found in more elaborate games. My aim is to introduce a typical code structure, and to provide a starting point for further modifications.
Chapter 1 describes how to build a prototype for an Arkanoid-type game in the most straightforward way,
without relying too much on any external libraries or advanced language features.
(follow the links for the screenshots).
1. The Ball, The Brick, The Platform
2. Bricks and Walls
3. Detecting Collisions
4. Resolving Collisions
5. Levels
Chapter 2 expands the prototype, introducing gamestates, basic graphics and sound.
At the end of this chapter, the general frame of the game is complete. What is left
is to fill it with the details.
1. Splitting Code into Several Files
2. Loading Levels from Files
3. Straightforward Gamestates
4. Advanced Gamestates
5. Basic Tiles
6. Different Brick Types
7. Basic Sound
8. Game Over
Chapter 3 proceeds to add functionality to achieve a full-featured game.
While the code for this chapter works and available in the repository, some minor corrections are required.
Overall, this chapter is currently in a draft stage.
1. Better Ball Rebounds
2. Ball Launch From Platform (Two Objects Moving Together)
3. Mouse Controls
4. Spawning Bonuses
5. Bonus Effects
6. Glue Bonus
7. Add New Ball Bonus (draft)
8. Life and Next Level Bonuses (draft)
9. Random Bonuses (draft)
10. Menu Buttons (draft)
11. Wall Tiles (draft)
12. Side Panel (draft)
13. Score (draft)
14. Fonts (draft)
15. More Sounds (draft)
16. Final Screen (draft)
17. Packaging and Distribution (draft)
Any feedback is appreciated.
I have been writing a simple Arkanoid-type game with LÖVE framework, but at some point I've decided to turn it into a tutorial.
Here is a couple of screenshots:
My current plans are to finish the tutorial about programming part and then to update the graphics and the sound.
In the end, I want to achieve a small (~20 levels or so) but well-polished game.
LÖVE framework uses Lua language and it is geared towards 2d games.
It is cross-platform, running on major desktop and mobile operating systems, and on the web (with the help of external tools).
Here is a couple of example games: Mari0, Mr. Rescue.
Last, but not least, it is free and open-source.
LÖVE is simple and intuitive; glancing over this short article is enough to understand it's basic principles of operation.
The tutorial is intended for people, who have basic programming experience, but have trouble structuring their code for projects bigger than "Hello World". An Arkanoid, while simple, contains many elements found in more elaborate games. My aim is to introduce a typical code structure, and to provide a starting point for further modifications.
Chapter 1 describes how to build a prototype for an Arkanoid-type game in the most straightforward way,
without relying too much on any external libraries or advanced language features.
(follow the links for the screenshots).
1. The Ball, The Brick, The Platform
2. Bricks and Walls
3. Detecting Collisions
4. Resolving Collisions
5. Levels
Chapter 2 expands the prototype, introducing gamestates, basic graphics and sound.
At the end of this chapter, the general frame of the game is complete. What is left
is to fill it with the details.
1. Splitting Code into Several Files
2. Loading Levels from Files
3. Straightforward Gamestates
4. Advanced Gamestates
5. Basic Tiles
6. Different Brick Types
7. Basic Sound
8. Game Over
Chapter 3 proceeds to add functionality to achieve a full-featured game.
While the code for this chapter works and available in the repository, some minor corrections are required.
Overall, this chapter is currently in a draft stage.
1. Better Ball Rebounds
2. Ball Launch From Platform (Two Objects Moving Together)
3. Mouse Controls
4. Spawning Bonuses
5. Bonus Effects
6. Glue Bonus
7. Add New Ball Bonus (draft)
8. Life and Next Level Bonuses (draft)
9. Random Bonuses (draft)
10. Menu Buttons (draft)
11. Wall Tiles (draft)
12. Side Panel (draft)
13. Score (draft)
14. Fonts (draft)
15. More Sounds (draft)
16. Final Screen (draft)
17. Packaging and Distribution (draft)
Any feedback is appreciated.