Homebrew RELEASE Switch SDL Pong

Cheeze

Active Member
OP
Newcomer
Joined
May 5, 2017
Messages
33
Trophies
0
Age
35
XP
342
Country
United States
Hello,
This is my pretty basic attempt at implementing pong for the nintendo switch using c++ and SDL2. It is about as complete as i can tell. i will fix bugs if any are found but i believe its done.

tested and working on 5.0.2 and 5.1.0

This is the final release
Source

To compile use devkitpro with the correct portlibs.

Release

Copy the switch folder to the root of your switch sd card.

if you find bugs create a new issue on the github or report them here and ill try and fix em.
enjoy!
 
Last edited by Cheeze,

DarkOrb

Well-Known Member
Member
Joined
Oct 11, 2013
Messages
290
Trophies
0
Age
31
XP
874
Country
Germany
Nice. But one question which is kinda offtopic: How did you learn to code in c/c++? And do you think you can learn it solely by learning by doing? I'm not someone who likes to follow a book or online tutorial with tousand of sites on this subject. I'd like to code something and if I need help or an explaination, I will google it. Do you think this is a viable way to learn?
 

mattytrog

You don`t want to listen to anything I say.
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
Fantastic effort, OP. Keep it up.

One day we might get a perfect Ay-3 emulation. I had one of these back in the day.

It's little projects like this that contribute to the scene. Keep on learning!
 

metaloyd23

Member
Newcomer
Joined
Apr 19, 2016
Messages
7
Trophies
0
Age
27
XP
115
Country
Nice. But one question which is kinda offtopic: How did you learn to code in c/c++? And do you think you can learn it solely by learning by doing? I'm not someone who likes to follow a book or online tutorial with tousand of sites on this subject. I'd like to code something and if I need help or an explaination, I will google it. Do you think this is a viable way to learn?

I highly recomend sololearn for android, its a very basic guide, but enough to start building the simplest programs
 
  • Like
Reactions: DarkOrb

Cheeze

Active Member
OP
Newcomer
Joined
May 5, 2017
Messages
33
Trophies
0
Age
35
XP
342
Country
United States
Nice. But one question which is kinda offtopic: How did you learn to code in c/c++? And do you think you can learn it solely by learning by doing? I'm not someone who likes to follow a book or online tutorial with tousand of sites on this subject. I'd like to code something and if I need help or an explaination, I will google it. Do you think this is a viable way to learn?

Id say i learned the basics of c/c++ syntax from the arduino (even though its like some weird hybrid of c and java or something like that). Im more of an electronics person but i picked up on programming back in the psp days albeit i just wrote lua games and programs and never released any. id say learning by doing is the best way (my opinion) because thats how i learned. I wrote most of this in the most part of one day, maybe 2 to get it good enough to show off. The same probably could have been done my someone more experienced in 1 hour or something.

It's little projects like this that contribute to the scene. Keep on learning!

Thanks!!! I will and the homebrew will only get better.
 
  • Like
Reactions: DarkOrb

Absintu

Well-Known Member
Member
Joined
Feb 2, 2018
Messages
232
Trophies
0
XP
815
Country
Portugal
Nice. But one question which is kinda offtopic: How did you learn to code in c/c++? And do you think you can learn it solely by learning by doing? I'm not someone who likes to follow a book or online tutorial with tousand of sites on this subject. I'd like to code something and if I need help or an explaination, I will google it. Do you think this is a viable way to learn?
i woudnt do it that way.my advice is the oposite. Learn a good object oriented language (c++, java) with a good book or course. Learn it well. When u learn all the concepts, you can learn any language by just reading questions on google. But dont dont do this in your first aproach
 
  • Like
Reactions: kjaved373

Cheeze

Active Member
OP
Newcomer
Joined
May 5, 2017
Messages
33
Trophies
0
Age
35
XP
342
Country
United States
in your game le computer cheat
thats a lie ;)

@seanp2500 you scored on the a.i the ball gets reset to whoever misses. im working on 2 player mode as we speak and then ill be tweaking and cleaning the code ALOT. thanks for putting it in your vidieo. im subscribed and cant wait to see more!!
 
Last edited by Cheeze,

Cheeze

Active Member
OP
Newcomer
Joined
May 5, 2017
Messages
33
Trophies
0
Age
35
XP
342
Country
United States
it is currently 1:43 and 2 player mode is done. done as in a working state. ill upload sometime tomorrow. theres some other stuff too but im too tired to type it out right now.
 
  • Like
Reactions: hippy dave

sblast3

Well-Known Member
Member
Joined
Dec 27, 2014
Messages
166
Trophies
0
XP
307
Country
United States
Do any other platforms (DS, PSP, 3DS, Vita, Wii, WiiU, PS3) support C++/SDL2? Or is this something new to the Switch?
 

Manurocker95

Game Developer & Pokémon Master
Member
Joined
May 29, 2016
Messages
1,512
Trophies
0
Age
29
Location
Madrid
Website
manuelrodriguezmatesanz.com
XP
2,797
Country
Spain
When trying to compile it i'm getting a "undefined reference to `eglGetDisplay'". Do I need any special library installed?

Edit: Using libs -lglad -lEGL -lglapi -ldrm_nouveau I got it working. I don't understand how you compiled it without those.
 
Last edited by Manurocker95,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission