Break out clone.
Posted: Fri Feb 25, 2011 5:45 pm
Hi I'm going to show you my first love project evah
--boring talk skip if you're buzy
But firstly, I want to thank the makers of Love for their great Framework. Without Love I was still searching for a game engine/multimedia library suiting my needs. Long, long ago, I used Game Maker to make games. But then I switched to Linux. Guess what?? :O Game maker doesnt work on Linux. And it became very commercial too. After that I tried out: Allegro, SDL, SFML, Game maker again, Love (but hey, couldnt protect my source :') ), pyGame
From this period I learned: C and C++ are languages that seem far easier than what they are in practice. That's all. I dont have a game to show or something. Only a game engine that rendered 2 images but now has a segmentation fault.
And then I rediscovered love. I found out that Lua was the coolest language in the world. You only have to learn what tables are. And you must install middleClass. All cool things I tried out in C++ and didnt work there because it wasnt proper syntax worked in Lua as not-the-worsed code. (still too much globals, but who cares, the game runs)
-- end of talk
And so I started programming a game. With one rule in my mind: just make the game. And well, thanks to love and lua, I have a game to show There were almost no problems I came across, so almost no delay in developing.
It's just a basic break-out clone, with 4 different blocks (one not yet implented) 2 items, and some music/art. 5 levels currently.
The balls movement aint very good (just: if ball.box:collidesWith(brick.box) then ball.xto = otherside) But in another project I allready implented the game maker style direction and speed system, so I may once implent that in this game too.
One problem in the game:
If you hit a brick, there plays a sound. It should. But sometimes, it doesnt play the sound :/ I looked through the source, but couldnt find the cause. Maybe someone else can take a look? (most code regarding sound is in the objects.lua file)
--boring talk skip if you're buzy
But firstly, I want to thank the makers of Love for their great Framework. Without Love I was still searching for a game engine/multimedia library suiting my needs. Long, long ago, I used Game Maker to make games. But then I switched to Linux. Guess what?? :O Game maker doesnt work on Linux. And it became very commercial too. After that I tried out: Allegro, SDL, SFML, Game maker again, Love (but hey, couldnt protect my source :') ), pyGame
From this period I learned: C and C++ are languages that seem far easier than what they are in practice. That's all. I dont have a game to show or something. Only a game engine that rendered 2 images but now has a segmentation fault.
And then I rediscovered love. I found out that Lua was the coolest language in the world. You only have to learn what tables are. And you must install middleClass. All cool things I tried out in C++ and didnt work there because it wasnt proper syntax worked in Lua as not-the-worsed code. (still too much globals, but who cares, the game runs)
-- end of talk
And so I started programming a game. With one rule in my mind: just make the game. And well, thanks to love and lua, I have a game to show There were almost no problems I came across, so almost no delay in developing.
It's just a basic break-out clone, with 4 different blocks (one not yet implented) 2 items, and some music/art. 5 levels currently.
The balls movement aint very good (just: if ball.box:collidesWith(brick.box) then ball.xto = otherside) But in another project I allready implented the game maker style direction and speed system, so I may once implent that in this game too.
One problem in the game:
If you hit a brick, there plays a sound. It should. But sometimes, it doesnt play the sound :/ I looked through the source, but couldnt find the cause. Maybe someone else can take a look? (most code regarding sound is in the objects.lua file)