[RELEASE] 3DS Breaköut

Discussion in '3DS - Homebrew Development and Emulators' started by Jwiz33, Oct 22, 2015.

  1. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    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
     

    Attached Files:

    Last edited by Jwiz33, Dec 27, 2015
    Cid2mizard, SLiV3R, Sinon and 10 others like this.
  2. VideahGams

    VideahGams Advanced Member

    Newcomer
    91
    74
    Aug 29, 2015
    Glasgow, Scotland
    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!
     
    Margen67 likes this.
  3. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    This goes in love.update? When I tried this, I got an error. :huh:
     
    Margen67 likes this.
  4. VideahGams

    VideahGams Advanced Member

    Newcomer
    91
    74
    Aug 29, 2015
    Glasgow, Scotland
    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
     
    Margen67 likes this.
  5. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    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!
     
    Margen67 and Psi-hate like this.
  6. GalladeGuy

    GalladeGuy Freeze Kirby :3

    Member
    2,587
    2,652
    Oct 28, 2015
    United States
    Is this no longer in development? It seems like a cool project, but there hasn't been an update since October.
     
  7. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    I can update it if you want. :)
    I know how to make the scores on the top screen now, lol.
     
  8. GalladeGuy

    GalladeGuy Freeze Kirby :3

    Member
    2,587
    2,652
    Oct 28, 2015
    United States
    That would be nice. :D
     
  9. TurtleP

    TurtleP GBAtemp Regular

    Member
    139
    210
    Oct 7, 2015
    United States
    @Jwiz33 I can help you with the physics bugs if you want. Just let me know what exactly is wrong. ;)
     
  10. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    I don't remember, I haven't updated or used this in forever. :P
     
  11. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    Update V3 is out(if anyone cares)!

    See changelog for details.
     
  12. Technicmaster0

    Technicmaster0 GBAtemp Psycho!

    Member
    3,219
    663
    Oct 22, 2011
    Gambia, The
    Great :)
    Maybe you can fix the collision with the bricks a bit (I know that it's complicated but it's also a must-have).
     
  13. Games&Stuff

    Games&Stuff GBAtemp Advanced Fan

    Member
    787
    564
    Oct 8, 2015
    Belgium
    Any screenshots?
     
  14. Jwiz33
    OP

    Jwiz33

    Banned
    2,654
    1,523
    Jun 5, 2014
    United States
    in the illuminati headquar—I have said too much!
    I'm taking some now :)
    I'll try to get to it eventually.
     
  15. SirBeethoven

    SirBeethoven 3.145.... something. E=mc2

    Member
    1,809
    552
    Nov 26, 2015
    United States
    Love it!!