Game
Love2d Arkanoid Tutorial
8 years ago

Simple Arkanoid-type game + Tutorial


Hey!

I have been writing a simple Arkanoid-type game using Lua and LÖVE framework, but at some point I’ve decided to turn it into a tutorial.

5d0b078a6cdd3.png

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 goal is to introduce a typical code structure, and to provide a starting point for further modifications.

Here are some screenshots:

5d0b078b0d695.png
5d0b078d1e7aa.png
5d0b078da694b.png
5d0b078f19b5e.png
5d0b07913bd92.png

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. Some example games can be found here. LÖVE is simple and intuitive; glancing over this short article is enough to understand it’s basic principles of operation. Another it’s advantage is that it is free and open-source.

The tutorial is split in 3 chapters.

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

    Appendix A: Storing Levels as Strings

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, and the finished parts can be found on the github.

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.

Any feedback is appreciated.



0 comments

Loading...

Next up

Just as Pecaminosa's musicians #improvise this rendition of #LittleSunflower 🌻, so do we improvise with this post you're reading. 😂

What's coming out of your own improvs? 🤔

#Pecaminosa | #IndieDev | #OST | #Jazz

Rockin the Guitar, an Axe like Guitar I made for my Uni project

An infected room from the second part of Cybel ! Are you up for some cleansing?

Szayel Aporro Granz - Bleach

If you’ve played the Vault demo and enjoyed it, please consider ‘liking’ the game page here on Gamejolt and/or leave a comment!

Also please consider tossing Vault on your Wishlist, I really appreciate your support!

https://store.steampowered.com/app/1251800

New Teasers!

Development of my game Juno. This is the rune equipment system.

Usually update over on twitter: https://twitter.com/synrec_kaisyl

Hello my space friends! Now I added a space background to the ship. I love that space look but I still feel like stuff is missing. The lighting on the ship needs some improvements I think. Please tell me your opinion!

Hey you, rookie! Yes, I am talking to you!! Come over here? Relax! Just stick to me and everything will be fine. By the way, my name is James Varhuher, but you can call me Big J. I will bring you up to speed.

I created a new character for a small video game I'm planning to make soon. I used Blender, Substance Painter and Marmoset.