Add Yoshi and R.O.B.

This commit is contained in:
RocketRobz 2020-09-03 20:01:13 -06:00
parent b7989ae118
commit 2a55700cad
15 changed files with 109 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

View File

@ -0,0 +1,4 @@
--atlas -f rgba -z auto
"characters/NES/All Seasons/zoom0/R.O.B..png"
"characters/NES/All Seasons/zoom1/R.O.B..png"
"characters/NES/All Seasons/zoom2/R.O.B..png"

View File

@ -0,0 +1,4 @@
--atlas -f rgba -z auto
"characters/Super Mario/All Seasons/zoom0/Yoshi.png"
"characters/Super Mario/All Seasons/zoom1/Yoshi.png"
"characters/Super Mario/All Seasons/zoom2/Yoshi.png"

14
include/nesCharNames.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef _ROCKET_PHOTO_SHOOT_NES_CHAR_NAMES_HPP
#define _ROCKET_PHOTO_SHOOT_NES_CHAR_NAMES_HPP
extern const char* nesCharacterNames[];
extern const char* famiCharacterNames[];
extern bool nesCharacterGenders[];
extern const char* nesCharacterFileNamesSpring[];
extern const char* nesCharacterFileNamesSummer[];
extern const char* nesCharacterFileNamesFall[];
extern const char* nesCharacterFileNamesWinter[];
#endif

View File

@ -24,10 +24,12 @@ private:
const char* import_characterName(void) const;
const char* import_characterFileName(void) const;
const char* import_SS2CharacterNames(int i) const;
const char* NESCharacterNames(int i) const;
const char* ss1Title(void) const;
const char* ss2Title(void) const;
const char* ss3Title(void) const;
const char* ss4Title(void) const;
const char* nesTitle(void) const;
const char* bgGameTitle(void) const;
const char* charGameTitle(void) const;
bool charGender(int i) const;

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

26
source/nesCharNames.c Normal file
View File

@ -0,0 +1,26 @@
#include <stdbool.h>
const char* nesCharacterNames[] = {
"R.O.B.",
};
const char* famiCharacterNames[] = {
"Robot",
};
bool nesCharacterGenders[] = {
true, // Male
};
const char* nesCharacterFileNamesSpring[] = {
"nes_ROB",
};
const char* nesCharacterFileNamesSummer[] = {
"nes_ROB",
};
const char* nesCharacterFileNamesFall[] = {
"nes_ROB",
};
const char* nesCharacterFileNamesWinter[] = {
"nes_ROB",
};

View File

@ -19,6 +19,7 @@
#include "sc5CharNames.h"
#include "vvvvvvCharNames.h"
#include "kirbyCharNames.h"
#include "nesCharNames.h"
#include "logobgnames.h"
#include "import_ss1bgnames.h"
@ -68,6 +69,7 @@ static u8 charPageOrder[] = {
7, // Jet Force Gemini
15, // Kirby series
12, // Metroid Series
16, // Nintendo Entertainment System
10, // Pac-Man series
6, // Sonic the Hedgehog series
13, // Space Channel 5
@ -145,11 +147,12 @@ void PhotoStudio::getMaxChars() {
import_totalCharacters = 3;
break;
case 5:
import_totalCharacters = 5;
import_totalCharacters = 6;
break;
case 11:
case 14:
case 15:
case 16:
import_totalCharacters = 0;
break;
case 6:
@ -221,6 +224,8 @@ const char* PhotoStudio::import_characterName(void) const {
return vvvvvvCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
case 15:
return kirbyCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
case 16:
return nesCharacterNames[importCharacterList_cursorPosition[currentCharNum]];
}
return "null";
}
@ -383,6 +388,17 @@ const char* PhotoStudio::import_characterFileName(void) const {
case 3:
return kirbyCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
}
case 16:
switch (seasonNo[currentCharNum]) {
case 0:
return nesCharacterFileNamesSpring[importCharacterList_cursorPosition[currentCharNum]];
case 1:
return nesCharacterFileNamesSummer[importCharacterList_cursorPosition[currentCharNum]];
case 2:
return nesCharacterFileNamesFall[importCharacterList_cursorPosition[currentCharNum]];
case 3:
return nesCharacterFileNamesWinter[importCharacterList_cursorPosition[currentCharNum]];
}
}
return "null";
}
@ -401,6 +417,21 @@ const char* PhotoStudio::import_SS2CharacterNames(int i) const {
#endif
}
const char* PhotoStudio::NESCharacterNames(int i) const {
#ifdef _3DS
switch (sysRegion) {
default:
return nesCharacterNames[i];
case CFG_REGION_JPN:
case CFG_REGION_CHN:
case CFG_REGION_KOR:
return famiCharacterNames[i];
}
#else
return nesCharacterNames[i];
#endif
}
const char* PhotoStudio::ss1Title(void) const {
#ifdef _3DS
switch (sysRegion) {
@ -473,6 +504,21 @@ const char* PhotoStudio::ss4Title(void) const {
#endif
}
const char* PhotoStudio::nesTitle(void) const {
#ifdef _3DS
switch (sysRegion) {
default:
return "Nintendo Entertainment System";
case CFG_REGION_JPN:
case CFG_REGION_CHN:
case CFG_REGION_KOR:
return "Family Computer";
}
#else
return "NES/Famicom";
#endif
}
const char* PhotoStudio::bgGameTitle(void) const {
switch (bgPageOrder[photo_highlightedGame]) {
case 0:
@ -527,6 +573,8 @@ const char* PhotoStudio::charGameTitle(void) const {
return "VVVVVV";
case 15:
return "Kirby series";
case 16:
return nesTitle();
}
return "???";
}
@ -565,6 +613,8 @@ bool PhotoStudio::charGender(int i) const {
return vvvvvvCharacterGenders[i];
case 15:
return kirbyCharacterGenders[i];
case 16:
return nesCharacterGenders[i];
}
return true;
}
@ -623,6 +673,8 @@ const char* PhotoStudio::charName(int i) const {
return vvvvvvCharacterNames[i];
case 15:
return kirbyCharacterNames[i];
case 16:
return NESCharacterNames(i);
}
return "???";
}

View File

@ -7,6 +7,7 @@ const char* smCharacterNames[] = {
"Waluigi",
"Peach",
"Daisy",
"Yoshi",
};
bool smCharacterGenders[] = {
@ -16,6 +17,7 @@ bool smCharacterGenders[] = {
true, // Male
false, // Female
false, // Female
true, // Male
};
const char* smCharacterFileNamesSpring[] = {
@ -25,6 +27,7 @@ const char* smCharacterFileNamesSpring[] = {
"sm_Waluigi",
"sm_Peach",
"sm_Daisy",
"sm_Yoshi",
};
const char* smCharacterFileNamesSummer[] = {
"sm_Mario",
@ -33,6 +36,7 @@ const char* smCharacterFileNamesSummer[] = {
"sm_Waluigi",
"sm_Peach",
"sm_Daisy",
"sm_Yoshi",
};
const char* smCharacterFileNamesFall[] = {
"sm_Mario",
@ -41,6 +45,7 @@ const char* smCharacterFileNamesFall[] = {
"sm_Waluigi",
"sm_Peach",
"sm_Daisy",
"sm_Yoshi",
};
const char* smCharacterFileNamesWinter[] = {
"sm_Mario",
@ -49,4 +54,5 @@ const char* smCharacterFileNamesWinter[] = {
"sm_Waluigi",
"sm_Peach",
"sm_Daisy",
"sm_Yoshi",
};