Homebrew Development

Discussion in '3DS - Homebrew Development and Emulators' started by aliak11, Jan 16, 2014.

  1. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    I recommend you to use PP2D. It is a modification of Citro2D so noob friendly. You can see my template here . You just need to create the texture with
    Code:
    pp2d_load_texture_png(TEXTURE_SPRITESHEET_ID,spritesheet);
    
    and draw it with something like:

    Code:
    //Top screen
    pp2d_begin_draw(GFX_TOP, GFX_LEFT);
    pp2d_draw_texture_part(TEXTURE_SPRITESHEET_ID, xPosition, yPosition, xOffset, yOffset, SpriteWidth, SpriteHeight);
    // Bottom screen
    pp2d_draw_on(GFX_BOTTOM, GFX_LEFT);
    pp2d_draw_texture_part(TEXTURE_SPRITESHEET_ID, xPosition, yPosition, xOffset, yOffset, SpriteWidth, SpriteHeight);
    pp2d_end_draw();
    

    For text:

    Code:
    pp2d_draw_text(xPosition, yPosition, sizeX, sizeY, rgbColor, "HELLO WORLD!!");
    
     
    cynosura likes this.
  2. cynosura

    cynosura GBAtemp Regular

    Member
    2
    Jun 7, 2015
    France
    Bed
    Thank you! I'll give a try this afternoon.
     
  3. Magicrafter13

    Magicrafter13 GBAtemp Regular

    Member
    2
    Feb 19, 2017
    United States
    I don't know if I quite understand your question, but I remember having problems understanding Citro2D at first as well. Maybe some of my projects could help? The 2 projects of mine that use Citro2D, are: BreakoutRedux, and Dungeon-Escape (on my GitHub).

    — Posts automatically merged - Please don't double post! —

    A year ago I would have agreed with this, but once you figure out what to do, Citro2D is incredibly easy. And PP2D is not kept up to date I definitely would not recommend it. I don't even think the creator has the repo up anymore...
     
    cynosura likes this.
  4. cynosura

    cynosura GBAtemp Regular

    Member
    2
    Jun 7, 2015
    France
    Bed
    Thank you, yeah I think pp2d is too old and from what i saw in your homebrews, using Citro2d directly seems easy.
     
    Magicrafter13 and Joel16 like this.
  5. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    It worked flawlessly for me and there are a lot of mirrors of PP2D. I just recommended what I used some time ago
     
    Magicrafter13 and cynosura like this.
  6. gadzooks2

    gadzooks2 Member

    Newcomer
    1
    Apr 15, 2019
    United Kingdom
    Does anyone have a 'cheat sheet' of 3ds-specific c++ commands?
    And a c++ tutorial welp.
     
  7. Vovonator

    Vovonator Member

    Newcomer
    1
    Dec 5, 2018
    Brazil
    Not sure of what you mean by 'cheat sheet' of 3ds specific C++ commands, but I guess you want the documentation?
    Here: https://smealum.github.io/ctrulib/index.html

    About that C++ tutorial, there are a bunch of them online, it's a question of personal preference, but here is one: http://www.cplusplus.com/doc/tutorial/
     
  8. gadzooks2

    gadzooks2 Member

    Newcomer
    1
    Apr 15, 2019
    United Kingdom
  9. gadzooks2

    gadzooks2 Member

    Newcomer
    1
    Apr 15, 2019
    United Kingdom
    If I'm trying to add, say, fstream, to my c++ project, how would I do it?
     
  10. GalladeGuy

    GalladeGuy Freeze Kirby :3

    Member
    10
    Oct 28, 2015
    United States
    The same way you would add it to a normal C++ project.
     
  11. gadzooks2

    gadzooks2 Member

    Newcomer
    1
    Apr 15, 2019
    United Kingdom
    Oh, ok. I thought I might have to move it somewhere for the compiler.
     
Loading...