Page 1 of 5
Box Breaker
Posted: Tue Sep 13, 2011 3:20 am
by JDFight
Hello everyone-
This is my first LÖVE game - A breakout clone (because I love breakout...) using the LÖVE's Box2d physics engine. My goal was to make nice breakout clone while learning how to code in lua and LÖVE - It was a fun learning experience overall and I was impressed by by how quickly I was able to get this game working.
This demo includes 13 levels
Controls:
<Right Click> Launch Ball
<Left click> Fire Shots - When Shot powerup is enabled
<Esc> Quit Game
<Q> Release Mouse
<S> Sound Toggle
<P> Pause/Release mouse
(Alternatively, you may use a gamepad to play this game)
I developed this game on an old powerbook g4 running Debian - I am very glad to have found the LÖVE engine - since my gaming options are extremely limited on this old machine
Links:
source:
https://github.com/jdfight/BoxBreaker
Re: Box Breaker
Posted: Tue Sep 13, 2011 3:52 am
by Taehl
This is a pretty solid little game! I don't think it'll beat the next 'Call of Duty' in a popularity poll, but it's perfectly playable and seems to work just fine. You especially get points for making the Box2D stuff work - it's tricky, especially for new users. Good job.
Re: Box Breaker
Posted: Tue Sep 13, 2011 5:48 am
by T-Bone
Fun game! However, don't use love.graphics.setMode in love.load(), this causes lag on some systems (as the window is drawn twice quickly, which makes some graphics cards sad or whatever). Instead, use a conf.lua-file containing
Code: Select all
function love.conf(t)
t.screen.width=640
t.screen.height=480
end
See
http://love2d.org/wiki/Config_Files for details
The file below works way better for me.
Re: Box Breaker
Posted: Tue Sep 13, 2011 7:02 am
by Robin
Incredibly neat!
Maybe you could add some sort of indication of how many lives the player has left?
Re: Box Breaker
Posted: Tue Sep 13, 2011 9:47 am
by JDFight
@T-Bone - Thanks for the tip about the conf file - I completely missed that when I was going through the wiki pages! I updated my version to include your conf file.
@Robin - Oops - I completely forgot to add a lives indicator - I just updated the game to include one in the top right corner of the gameplay screen
Re: Box Breaker
Posted: Tue Sep 13, 2011 2:53 pm
by appleide
I got to the end and won!
The trick is surviving until you get the "hundred balls everywhere" bonus. They'll attack the blocks from above, bouncing repeatedly; So many blocks will break you'll get more "hundred balls everywhere" bonuses. Combine it with the "explosive ball" bonus and you win!
Re: Box Breaker
Posted: Tue Sep 13, 2011 4:07 pm
by T-Bone
You added the conf, but you didn't remove the line love.graphics.setMode(..). It still lags just as much unless you comment out that line on the affected systems.
Re: Box Breaker
Posted: Tue Sep 13, 2011 4:55 pm
by JDFight
Oops! Thanks again - T-Bone - I removed the offending setMode command -
Re: Box Breaker
Posted: Tue Sep 13, 2011 4:58 pm
by T-Bone
JDFight wrote:Oops! Thanks again - T-Bone - I removed the offending setMode command -
Just want to make something clear: setMode can be very useful, and it doesn't cause lag if it's used in the middle of the game. It is just at the beginning (or if you use it twice in a row) that it causes issues. If you want to let your game toggle between a window and fullscreen, use it.
Re: Box Breaker
Posted: Tue Sep 13, 2011 5:20 pm
by GijsB
you may want to speed up your code a little with locals
example : BObjects.lua