[Release] Falling Blocks Watch Out - a Tetris clone

Discussion in '3DS - Homebrew Development and Emulators' started by Spaqin, Feb 2, 2016.

  1. Spaqin
    OP

    Spaqin GBAtemp Regular

    Member
    122
    69
    Feb 17, 2015
    Poland
    Hello GBATemp!

    Thanks to all of you who helped me with my issues and of course my hard work, I've been able to create a Tetris clone.
    I always wanted to do that. I was especially inspired by Tetris DS.
    So, I made this little thing in C. It's open source too, so if you have a better idea of a Tetris clone, you're free to use it, just please include me as the original author.

    But what's so different about this one?
    It's more configurable than most official games. You can tweak many settings if controls feel sloppy or too fast. But, these are only changeable in a text file - I haven't bothered to make a menu (yet). Also, different skins/themes can be installed too, so if you think the default theme is ugly (and it surely is). I'll refer you to the readme on my github page:
    https://github.com/Spaqin/fbwo-3ds

    Also, the download for you who don't want to be bothered with compiling is there too:
    https://github.com/Spaqin/fbwo-3ds/releases

    With the first release, you get:
    - SRS (Super Rotation System, used in Tetris DS), not some wonky rotation system that doesn't work half the time, with this you can play on 20G,
    - Bag-style random generator - the seven Tetrimin- I mean pieces are shuffled, so no chance of getting more than two pieces in a row,
    - Hi-score support - but if you change the settings (not level or theme though), it will be reset, as it's easy to change important values that would definitely invalidate the previous score, and it saves automatically after game over and on proper exit,
    - 3D support - okay, it's actually nauseating and I don't recommend playing with that, but I don't have an idea how to do this properly.

    What you don't get, though:
    - as mentioned earlier, any kind of menu
    - music - that's kinda important, what kind of a Tetris clone would it be without the soundtrack
    - T-spin recognition - these work, from what I noticed,
    - some special effects and indicators would be nice, I guess.

    Installation?
    Unpack the archive on your SD card. fbwodata folder must be on the root, and of course .3dsx in /3ds/fbwo/

    And CIA can be installed from anywhere.

    I thought of including some showcasing video, but well, that's Tetris.
    Also, I'd upload it earlier, but I was too busy playing it :^)

    If you have any issues, please read the readme first, ask questions later.

    v0.2:
    - you can now swap L/R buttons
    - added TGM rotation system along with ARE (which can be used in SRS too if someone likes)

    Thanks?
    smealum for ctrulib
    xerpi for sf2dlib and sfillib
    traktorex for the banner music (and maybe possibly game music in the future)
    everyone who helped me with my problems here
    my girlfriend for not existing and not taking up my time
    Nintendo for making a good game ten years ago
    Alexey Pajitnov, for inspiring everyone

    Screenshots:
    Default theme:
    [​IMG]

    Gameboy theme by RozPierog:
    [​IMG]
     
    Last edited by Spaqin, Feb 3, 2016


  2. SANNIC789

    SANNIC789 GBAtemp Advanced Fan

    Member
    704
    91
    Oct 3, 2015
    United States
    O YAY ITS OUT FINLY I BEN WATEING
     
  3. mashers

    mashers Stubborn ape

    Member
    3,837
    5,155
    Jun 10, 2015
    Kongo Jungle
    Thank you, this is great! I especially appreciate the inclusion of a CIA in the release. One question, is it possible to disable the indicator which shows where the falling piece will end up?
     
  4. Gocario

    Gocario GBAFail'd

    Member
    640
    560
    Sep 5, 2015
    France
    Bourg Palette
    Good job!

    EDIT: By the way, it would be cool to add screenshots to the OP.

    B-)
     
    Last edited by Gocario, Feb 2, 2016
    Hoppy and ihaveamac like this.
  5. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,467
    5,961
    Apr 20, 2015
    United States
    Tigard, OR
    3D seems inverted, but otherwise nice :D
     
  6. Shadowfied

    Shadowfied GBAtemp Advanced Maniac

    Member
    1,709
    1,619
    Dec 6, 2014
    Will give it a try soon.

    Also, if you need someone to compose some music, I'd be glad to help you :)
     
  7. hobbledehoy899

    hobbledehoy899 Conniption Master

    Member
    2,713
    4,481
    Nov 13, 2015
    United States
    Kernel Version: Linux 4.13.9-1-zen
    You should make it so that anybody can add their own music, that would make it truly customizable!
     
    Shadowfied likes this.
  8. Shadowfied

    Shadowfied GBAtemp Advanced Maniac

    Member
    1,709
    1,619
    Dec 6, 2014
    Recorded some gameplay with my capture card
     
    cearp and Spaqin like this.
  9. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,713
    May 30, 2015
    United States
    Wow, this looks really nice... As a fan of the TGM series, though, the block colors and rotation system (along with a few other things) look like they'll be disorienting... any possible chance I could pester you into including them... :D If not I totally understand but it'd be awesome to have options for these :)
     
    Shadowfied likes this.
  10. Shadowfied

    Shadowfied GBAtemp Advanced Maniac

    Member
    1,709
    1,619
    Dec 6, 2014
    Forgot to mention, PLEASE LET US HOLD WITH R AS WELL!
     
    dark_samus3 likes this.
  11. Spaqin
    OP

    Spaqin GBAtemp Regular

    Member
    122
    69
    Feb 17, 2015
    Poland
    /fbwodata/config.cfg -> ghost_piece 0

    OK, going to add this in the next release - a config variable that will swap the shoulder buttons' functionality.

    You're free to modify the block colors, just by changing default theme files - they're all PNG! About TGM's rotation system - I thought of including that, but couldn't find a nice, programmer-oriented write-up, and SRS was the one I wanted the most.

    That was my plan in the beginning, but for now I don't know how to play music at all.
     
  12. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,713
    May 30, 2015
    United States
    Alright, will do with the pieces :) also, not sure if you saw this but this may help... it's pretty simple https://tetris.wiki/ARS
     
    hobbledehoy899 likes this.
  13. Spaqin
    OP

    Spaqin GBAtemp Regular

    Member
    122
    69
    Feb 17, 2015
    Poland
    You might be interested in the new release then. I'm not very familiar with it, I just tried to emulate what was on that site, so if any bugs occur, please tell. Also, you need to change the config.cfg first probably, set your ARE value and ars to 1.

    Download is in the same place, github.
     
    dark_samus3 likes this.
  14. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,713
    May 30, 2015
    United States
    Wow, thank you for bothering to add that for me :) haven't tested yet but I'll report back (and let others know about this so they can test and report back) when I've had a chance
     
  15. dark_samus3

    dark_samus3 GBAtemp Addict

    Member
    2,314
    1,713
    May 30, 2015
    United States
    Wait did you include sonic dropping as well :O you're awesome!
     
    Spaqin likes this.
  16. Slashcash

    Slashcash GBAtemp Fan

    Member
    334
    461
    Oct 15, 2015
    Italy
    Very well executed. Fun and playable (my ds is now stuck with this and the picross clone)

    That bird picture in the background has a somewhat creepy unnatural and inanimated feeling to it. I don't know why you chose it as the default one XD
     
  17. Spaqin
    OP

    Spaqin GBAtemp Regular

    Member
    122
    69
    Feb 17, 2015
    Poland
    Had to find a bright picture (as scores are dark) and that was the first one in my photo collection that suited.

    You can change it if you want, you know.

    ...I'm kinda waiting for a GameBoy theme :^)
     
  18. mashers

    mashers Stubborn ape

    Member
    3,837
    5,155
    Jun 10, 2015
    Kongo Jungle
    Thank you! :) I can add sound and music support if you like.
     
  19. Spaqin
    OP

    Spaqin GBAtemp Regular

    Member
    122
    69
    Feb 17, 2015
    Poland
    Nah, I'd prefer to learn it myself. You know, I'm doing it to learn something and for now, and I think it's a good opportunity.

    Also, my friend RozPierog made a gameboy-ish theme, available for download here:
    https://mega.nz/#!6xhUWCDJ!jUM6sUQmS-xMWzrIvRGsiR5YL33H7nPIiUK-PfBOP_0

    All you need to do is unpack the archive to /fbwodata folder and change "theme default" in config.cfg to "theme GameBoy!".

    Sorry for no screenshots, I have no idea how to make them, and HANS doesn't work with it on emuNAND.
     
    Last edited by Spaqin, Feb 3, 2016
  20. mashers

    mashers Stubborn ape

    Member
    3,837
    5,155
    Jun 10, 2015
    Kongo Jungle
    I totally understand. That's the same reason why I resisted putting Gridlauncher on GitHub for so long ;) Feel free to poke around in the source code for Gridlauncher - I made some C audio structs and csnd wrapper functions which might be helpful for you.