Homebrew Graphical Hello World for 3.0.0

vgmoose

Well-Known Member
OP
Member
Joined
Jan 31, 2016
Messages
349
Trophies
1
Website
github.com
XP
2,540
Country
United States
Updated to work with all firmwares now!

There are better ways to display text on screen now, but this program should still serve as a simple demo for people who want to get started.



I am in the process of porting some of my Wii U Homebrew to the Switch. While doing so, I found that I needed to be able to graphically display text on screen. I put the font drawing code into an easy to read hello world program, so that if people on 3.0.0 want to learn some simple programing, this may be a good start.

Link and instructions: https://github.com/vgmoose/sdl-hello-world

I can help provide support in this thread if people have issues getting this setup on their Switch/computer.

Also note that as of this time of writing, these instructions may change or become outdated as new stuff comes out. Particularly, drawing text this way isn't a great solution but it should be okay for a quick demo.
 
Last edited by vgmoose, , Reason: updated to 5.x

EvilG31

Member
Newcomer
Joined
Dec 31, 2017
Messages
21
Trophies
0
Age
33
XP
42
Country
United States
hello ! I use pegaswitch for the first time and when I type
evalfile usefulscripts/SetupNew.js
I get :
'no output'
why ?

Hey - I think you asked this in another thread too. 'no output' is normal - and you must run that or NROs won't load when you use runnro. (at least, that's what happened in my case.)

I figure the more threads we have a solution in, the better.
 
  • Like
Reactions: Xyphoseos

vgmoose

Well-Known Member
OP
Member
Joined
Jan 31, 2016
Messages
349
Trophies
1
Website
github.com
XP
2,540
Country
United States
For posterity, I have updated this program to work with 5.x. It also now supports both libtransistor and libnx, and you should be able to compile and run it with either! The readme is updated with instructions in case anyone wants to give this a shot.

Download: https://github.com/vgmoose/sdl-hello-world/releases
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,470
Trophies
1
Age
42
XP
5,626
Country
Germany

You may also like...

General chit-chat
Help Users
  • Veho @ Veho:
    Santa Clause 27: Baked Alaska, Sarah Palin shoots Santa thinking he's an anarchocommunist burglar, and becomes the next Santa.
  • Veho @ Veho:
    Santine.
  • K3N1 @ K3N1:
    A Santa clause as president might make a good plot twist; countries are blowing each other up this Christmas and the president can't be found for an answer
  • Veho @ Veho:
    Just drop bombs down chimneys instead of coal.
  • Veho @ Veho:
    "You've been very naughty this year, Saddam."
  • Veho @ Veho:
    My references are as outdated as I am.
  • Veho @ Veho:
    "Joe ho ho, Merry Christmas! You've been a very bad tovarisch, little Vlad. And you know what bad little boys get for Christmas? DRONE STRIKE!
    Bi den!"
  • K3N1 @ K3N1:
    Instead of cookies you get meth infused bricks of weed
  • Veho @ Veho:
    "What if Joe Rogen was santa."
  • K3N1 @ K3N1:
    Turns out Germany's version of Santa back in the 40s didn't go that well
  • Veho @ Veho:
    You don't wanna know where his toys were made.
  • K3N1 @ K3N1:
    Camp #2 or #4?
  • K3N1 @ K3N1:
    Or a Disney warehouse
  • Veho @ Veho:
    A Disney whorehouse.
  • K3N1 @ K3N1:
    Damn that's even worse
  • K3N1 @ K3N1:
    Kumar becomes Santa now
  • Veho @ Veho:
    Harold and Kumar go to the North Pole.
  • K3N1 @ K3N1:
    Rudolph tasted the best
  • Veho @ Veho:
    Rudolph the red-rocket reindeer.
  • Shape @ Shape:
    @M4x1mumReZ every console. Every console. Please no more unbelievably bloated updates
  • K3N1 @ K3N1:
    Imagine if nothing ever updated
  • Veho @ Veho:
    Imagine all the people.
  • K3N1 @ K3N1:
    I wouldn't mind a rock as a house easier to repair
    K3N1 @ K3N1: I wouldn't mind a rock as a house easier to repair