Homebrew [Homebrew] Pong 3DS v1.0

AntonioND

Member
OP
Newcomer
Joined
Feb 17, 2015
Messages
12
Trophies
0
XP
87
Country
This is the game I've been coding for a few weeks.

It's just a 3D pong, like the one I made years ago for the DS. All graphics are done by software, each CPU core renders one of the top screen images.

I hope you like it!

Binaries here (and attached to the post): https://github.com/AntonioND/pong-3ds/releases

Source code and more information here: https://github.com/AntonioND/pong-3ds

Screenshots:

WGyUzCl.png


uOJDt9i.png


0cJKRnv.png


U63VKAJ.png
 

Attachments

  • pong-3ds-v1-0.zip
    527 KB · Views: 690

AntonioND

Member
OP
Newcomer
Joined
Feb 17, 2015
Messages
12
Trophies
0
XP
87
Country
Oh, lol, I've just seen a video of that game, it's... strange. xD

The reason I did this was that I made a simple soft 3D engine for GBA years ago but I never made a game or anything with it. This game was a good way of finishing it AND doing something for 3DS. And, as the engine doesn't support textures, I had to do a really simple game.

It's nothing. :) I've also uploaded it to DownloadMii.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,746
Trophies
4
Age
45
Location
Engine room, learning
XP
15,563
Country
France
I wanted to make a game but the GFX example in libctru is using aemstro and texture, but I don't understand how it really works. I never worked with 3D engine before.
I'll look how you did colored 3D object without texture, it's always good to see different way to do things :)

thanks
 

AntonioND

Member
OP
Newcomer
Joined
Feb 17, 2015
Messages
12
Trophies
0
XP
87
Country
I tried to use aemstro but I couldn't get the python environment to run it so I decided to wait until there is a nice compiled shader assembler. Picasso is a bit outdated I think, and that was the only one I was able to compile.

Well, the functions for drawing filled polygons are the worst part of the code... xD They were awfully boring to code because they are just a lot of comparisons and loops... But sure, take a look at them.
 

Idaho

Well-Known Member
Member
Joined
Oct 3, 2013
Messages
874
Trophies
0
Age
28
XP
1,304
Country
France
Awesome homebrew here, it's nice to see that it's taking use of the 3D capacities, even though for some reason the display is flickery on my new 3DS and the 3D isn't perfect, it's a nice thing that we have, keep up the good work, contact me if you want me to test things on new 3DS ;)
 

AntonioND

Member
OP
Newcomer
Joined
Feb 17, 2015
Messages
12
Trophies
0
XP
87
Country
That's strange, in my 3DS it works perfectly. I have a N3DS but I can't load homebrew on it, so I can't test... The problem can be something related to the double buffering or it could be the sound functions that are messing with the graphics. Ninjhax doesn't have access to csnd functions in N3DS, but I check at the start if csnd is inited so it shouldn't be a problem. Does it happen if you disable the 3D?
 

AntonioND

Member
OP
Newcomer
Joined
Feb 17, 2015
Messages
12
Trophies
0
XP
87
Country
Then the problem must be something about the buffer swap. I think the function of ctrulib I use schedules the swap to be done after the screen redraw, but maybe it doesn't work fine in N3DS. I started with a ctrulib example and I didn't see flickering even when I was developing the game and the FPS were lower than 60. I did see flickering once when I messed up the buffer swap, and I saw that the screen was basically divided by a vertical line (that changed every frame) and one part of the screen showed the correct scene but the other one was incomplete. Do you see something like that?
 

Idaho

Well-Known Member
Member
Joined
Oct 3, 2013
Messages
874
Trophies
0
Age
28
XP
1,304
Country
France
I don't think it was something like that, I will shoot a video to show you exactly what's happening ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys