Addition to video games code

Hello again. I am trying to make a code that I can sent to Nintendo Switches for more in-game fun. Here is the code so far:

// Useful stuff for the code: STROKES: (160,35,0) for bronze, (150,150,150) for silver,
// (160,147,0) for gold, and (0,193,188) for platinum.
int img;
int footballplayer = 0;
int riversurvivaler = 0;
int starcollector = 0;
int birdier = 0;
int golfrunner = 0;
int golfshooter = 0;
int golfcollector = 0;
int battler = 0;
int racer = 0;
int Onlineodysseyplayer = 0;
int Odesseyplayer = 0;
int powermooncollector = 0;
int rainer = 0;
int blitzer = 0;
int controller = 0;
int turfer = 0;
int Bronzebadge = 0;
int Silverbadge = 0;
int Goldbadge = 0;
int Platinumbadge = 0;

void setup() {
size (400,600);
background (255,255,255);
}
void draw(){
strokeWeight (50);
stroke (160,35,0);
circle (50,50,50);
fill (0,0,0);
textSize (15);
text (“Novice Turfer”, 10, 50);
strokeWeight (50);
stroke (160,35,0);
circle (150,50,50);
fill (0,0,0);
textSize (13);
text (“Novice Controller”, 105, 50);
strokeWeight (50);
stroke (160,35,0);
circle (250,50,50);
fill (0,0,0);
textSize (15);
text (“Novice Blitzer”, 210, 50);
strokeWeight (50);
stroke (160,35,0);
circle (350,50,50);
fill (0,0,0);
textSize (15);
text (“Novice Rainer”, 310, 50);
strokeWeight (50);
stroke (160,35,0);
circle (50,150,50);
fill (0,0,0);
textSize (9);
text (“Our First Power Moon”, 10, 150);
strokeWeight (50);
stroke (160,35,0);
circle (150,150,50);
fill (0,0,0);
textSize (10);
text (“Novice Odyssey Player”, 105, 150);
strokeWeight (50);
stroke (160,35,0);
circle (250,150,50);
fill (0,0,0);
textSize (7);
text (“Novice Online Odyssey Player”, 210, 150);
strokeWeight (50);
stroke (160,35,0);
circle (350,150,50);
fill (0,0,0);
textSize (15);
text (“Novice Racer”, 310, 150);
strokeWeight (50);
stroke (160,35,0);
circle (50,250,50);
fill (0,0,0);
textSize (15);
text (“Novice Battler”, 10, 250);
strokeWeight (50);
stroke (160,35,0);
circle (150,250,50);
fill (0,0,0);
textSize (15);
text (“Novice Birdier”, 105, 250);
strokeWeight (50);
stroke (160,35,0);
circle (250,250,50);
fill (0,0,0);
textSize (10);
text (“Novice Star Collector”, 205, 250);
strokeWeight (50);
stroke (160,35,0);
circle (350,250,50);
fill (0,0,0);
textSize (15);
text (“Vassal Turfer”, 305, 250);
strokeWeight (50);
stroke (160,35,0);
circle (50,350,50);
fill (0,0,0);
textSize (12);
text (“Vassal Controller”, 10, 350);
strokeWeight (50);
stroke (160,35,0);
circle (150,350,50);
fill (0,0,0);
textSize (15);
text (“Vassal Blitzer”, 110, 350);
strokeWeight (50);
stroke (160,35,0);
circle (250,350,50);
fill (0,0,0);
textSize (15);
text (“Vassal Rainer”, 210, 350);
strokeWeight (50);
stroke (160,35,0);
circle (350,350,50);
fill (0,0,0);
textSize (9);
text (“Vassal Odyssey Player”, 310, 350);
strokeWeight (50);
stroke (160,35,0);
circle (50,450,50);
fill (0,0,0);
textSize (7);
text (“Vassal Online Odyssey Player”, 10, 450);
strokeWeight (50);
stroke (160,35,0);
circle (150,450,50);
fill (0,0,0);
textSize (15);
text (“Vassal Racer”, 110, 450);
strokeWeight (50);
stroke (160,35,0);
circle (250,450,50);
fill (0,0,0);
textSize (15);
text (“Vassal Battler”, 210, 450);
strokeWeight (50);
stroke (160,35,0);
circle (350,450,50);
fill (0,0,0);
textSize (7);
text (“Vassal Power Moon Collector”, 310, 450);
strokeWeight (50);
stroke (160,35,0);
circle (50,550,50);
fill (0,0,0);
textSize (15);
text (“Vassal Birdier”, 10, 550);
strokeWeight (50);
stroke (160,35,0);
circle (150,550,50);
fill (0,0,0);
textSize (10);
text (“Vassal Star Collector”, 110, 550);
strokeWeight (50);
stroke (160,35,0);
circle (250,550,50);
fill (0,0,0);
textSize (12);
text (“Apprentice Turfer”, 210, 550);
strokeWeight (50);
stroke (160,35,0);
circle (350,550,50);
fill (0,0,0);
textSize (10);
text (“Apprentice Controller”, 310, 550);
strokeWeight (50);
stroke (160,35,0);
circle (350,550,50);
fill (0,0,0);
textSize (10);
text (“Apprentice Controller”, 310, 550);

if (turfer >= 1)
{

}
}

//img[0] = loadImage();
//img[1] = loadImage();
//img[2] = loadImage();
//img[3] = loadImage();
//img[4] = loadImage();
//img[5] = loadImage();
//img[6] = loadImage();
//img[7] = loadImage();
//img[8] = loadImage();
//img[9] = loadImage();

Here is a link to a google document of what I am trying to make the code do for me: Video game update - Google Docs

Also please let me know if the link doesn’t work.

It is unlikely you will be able to execute any of your own code on a Nintendo Switch without literally hacking the device. There are ways to jailbreak a Nintendo Switch, yes, but their legality is questionable, and so we should not, and will not, discuss this process further here.

That said, perhaps you would rather make some code that runs on a website, or even as its own application? That would be a much better (and easier) idea.


Your code is, honestly, very repetitive. It does basically the same thing over and over.

You should SERIOUSLY consider learning how to use for loops and how to store your data in arrays. These are common programming topics, and the internet has numerous tutorials already that explain these concepts better than I ever could. You can also look here:

2 Likes

My code is very simple, I know. It is very very far away from complete. Also thank you for the links. They was very helpful.