November 2

My First Switch Homebrew.

Today I played some more with the Switch Devkit

aka 
Devkitpro.

I din’t expect to write homebrew for my Switch this early but it happen quite fast.
Have set a goal for my self to make some homebrew for al my modded consoles.

So I found my self installing DevKitPro on my OSX 10.14.6 Mac.

The installation was not that easy, but in the end I got the example files compiled.
Look at that nice build log:
Schermafbeelding 2019-11-02 om 23.44.40

What would borat say?
Great Success!

 

Just need to install everything by pacman -Sy ….

Check this pastbin to check what i have installed:
https://pastebin.com/Ncrb349n

So after that, it was time for some “hello world” testing.

2019110214210900-691C9B2C6D1F1E032DDC01FD026159FD
is it not a beauty 😀
Real “Hello World” screenshot (made in Vakantie park Aqua Delta I was bored)
2019110214211200-691C9B2C6D1F1E032DDC01FD026159FD

After a few hours of copy and past work.
I made a hello world combining audio sdl and time example:
Used some of my own music Bartclub: music for the mind (freak sounds)
“Music for the Mind aka Helloween”
2019110223551000-B9CA2278025A7707FE11C7E26674FDB9

In “game” screenshot:
2019110223502700-B9CA2278025A7707FE11C7E26674FDB9

Binary download. (New Icon)

Now after some more googling and searching and I found a few homebrew sources to compile.
But sadly there where some broken Makefiles and because
I just started my journey into Switch develpement these things made my progress halt.

But in the end i made a nice small demo in SDL 2 to get me started.
I wanted graphics in my demo so i guessed I needed to learn some SDL2
Made a Icon 😀  for it
icon
Here is a 30 second preview captured by the Switch of the Demo:

Like i said it’s just a few examples thrown together.
Audio SDL2 and SDL2 PNG example (not include in switch example pack link below)
And my own music again Electragazan sounds a bit 8 bit (a bit) 🙂

Binary Download build version for your Switch.
(Place .nro in new folder on you SD:/Switch/ folder)

My source code of the demo: my github page

But i need to give credit to Chris Karcz my version is a pimped up verion of his version.
You can find his demo on github too.

But the makefile is’t updated so I gotten compile errors in my version it’s fixed or replace this:

LIBS := -lSDL2_mixer -lSDL2 \
-lpng -lz -ljpeg -lglad -lEGL -lglapi -ldrm_nouveau \
-lmikmod -lvorbisidec -logg -lmpg123 -lmodplug -lstdc++ \
-lnx -lm -lfreetype -lbz2 `aarch64-none-elf-pkg-config SDL2_ttf SDL2_image SDL2_gfx –libs SDL2_mixer`

Next Up Pong 😀

I founda nice SDL2 Switch version of Pong  on Github
by @I-EAT-CHEEZE-YO I-EAT-CHEEZE-YO

His Final Release V 1.0 released this on 6 Jun 2018

This is the final release.
Now has scores for player 1 and 2.
2 Player support.
New Splash screen.
If you find bugs create a new issue and ill try to fix them.

So remade in memory of my oldicon
a new version for the Nintendo Switch. (more info on Wii Pong Game)

Switch Pong!

2019110222161000-B9CA2278025A7707FE11C7E26674FDB9

Just A Splash screen 😀 #needsasplashscreen
2019110222155900-B9CA2278025A7707FE11C7E26674FDB9
Need to dig up the original graphics to make a true remake,
but this is the first demo game I made for my switch.

2019110219535400-691C9B2C6D1F1E032DDC01FD026159FD

Only one game type best of 10
maybe I will add more in the future when i revisid this.

icon my Binary download &  Source code if you like to check it out.

This is heavy modded version of the I-EAT-CHEEZE-YO version
follow the link to the original source code.

Now it’s time to think up a real Swich app that is usefull. LoL

Cheers. Dc


Copyright 2021. All rights reserved.

Posted November 2, 2019 by admin in category "Coding", "Download", "Nintendo Switch

Leave a Reply