Homebrew [RELEASE] 3DS Breaköut

  • Thread starter Thread starter Jwiz33
  • Start date Start date
  • Views Views 6,391
  • Replies Replies 14
  • Likes Likes 13

Jwiz33

Banned
Joined
Jun 5, 2014
Messages
2,654
Reaction score
1,528
Trophies
0
Location
in the illuminati headquar—I have said too much!
Website
iwillcleanyourbasement.webstarts.com
XP
1,493
Country
United States
Breakout/Brick Breaker sloppy clone for 3DS using LövePotion
Most of the code I had to redo, but some of the code was used from this project: https://love2d.org/forums/viewtopic.php?f=5&t=80670&p=187437&hilit=pong#p187437

Features:
-Score count
-Lives
-Game over
-Breaking blocks
-Exiting to launcher

Bugs/Unimplemented Features:
-Collision errors
-No "win" system(ball keeps on going after you hit all of the blocks)
-"Get ready" and Block count/Lives are behind the blocks, so you can't read them well

Controls:
D-Pad: Move paddle left and right
A: Reset ball position(could be abused to cheat, but whatever)
START: Exit to launcher

Changelog:
V1: Initial release
V2: Exit to launcher feature added
v3: Scores, stats and "Get Ready!" message are now displayed on the top screen

Thanks to @VideahGams for LövePotion!

Download is attached!

scr_103_TOP_LEFT.png

scr_103_BOTTOM.png
 

Attachments

Last edited by Jwiz33,
You can exit to launcher using the love.event.quit() function.

So something like this:
Code:
function love.keypressed(key)

   if key == "start" then love.event.quit() end

end

Would quit LövePotion when the start button is pressed.
Keep up the good work though, it's nice to see more people using LövePotion!
 
  • Like
Reactions: Margen67
You can exit to launcher using the love.event.quit() function.

So something like this:
Code:
function love.keypressed(key)

   if key == "start" then love.event.quit() end

end

Would quit LövePotion when the start button is pressed.
Keep up the good work though, it's nice to see more people using LövePotion!
This goes in love.update? When I tried this, I got an error. :huh:
 
  • Like
Reactions: Margen67
love.keypressed is its own callback, (love.update, love.draw etc. are all callbacks) so if you put it outside of love.update it'll work
I see. Thanks for the help!

EDIT:
V2 is up which adds the ability that should've been available from the start, exiting to the launcher. Thanks @VideahGams!
 
Is this no longer in development? It seems like a cool project, but there hasn't been an update since October.
 

Site & Scene News

Popular threads in this forum