Skip to content

Commit

Permalink
more polish
Browse files Browse the repository at this point in the history
  • Loading branch information
littlebalup committed Oct 12, 2017
1 parent e18eec7 commit 19c6fd1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 24 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
*.o
CMakeFiles
cmake_install.cmake
CMakeCache.txt
Makefile
eboot.bin
Zelda3T
Zelda3T.velf
Zelda3T_fr.vpk
Zelda3T_fr.vpk_param.sfo
Zelda3T_fr.zip
2 changes: 1 addition & 1 deletion Encyclopedie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void Encyclopedie::fond() {


ostringstream os; os << (page+1);
gpJeu->affiche(image, "MONSTERS "+os.str(), 40, 17);
gpJeu->affiche(image, "MONSTRES "+os.str(), 40, 17);

placeCadres();

Expand Down
18 changes: 9 additions & 9 deletions Generique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void Generique::initSelection() {
src.x = 0; src.y = 32; dst.x = 16; dst.y = 32;
SDL_BlitSurface(imageCadre, &src, image, &dst);

for (int i = 0; i < 6; i++) {
for (int i = 0; i < 8; i++) {
src.x = 16; src.y = 0; dst.x = 32+16*i; dst.y = 0;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 16; src.y = 64; dst.x = 32+16*i; dst.y = 16;
Expand All @@ -121,11 +121,11 @@ void Generique::initSelection() {
SDL_BlitSurface(imageCadre, &src, image, &dst);
}

src.x = 32; src.y = 0; dst.x = 160-32; dst.y = 0;
src.x = 32; src.y = 0; dst.x = 160; dst.y = 0;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 32; src.y = 16; dst.x = 160-32; dst.y = 16;
src.x = 32; src.y = 16; dst.x = 160; dst.y = 16;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 32; src.y = 32; dst.x = 160-32; dst.y = 32;
src.x = 32; src.y = 32; dst.x = 160; dst.y = 32;
SDL_BlitSurface(imageCadre, &src, image, &dst);

cadre(16,48,288,32);
Expand All @@ -134,7 +134,7 @@ void Generique::initSelection() {
cadre(16,192,136,32);
cadre(168,192,136,32);

gpJeu->affiche(image, "SELECTION", 40, 16);
gpJeu->affiche(image, "ECRAN DE SELECTION", 40, 16);
gpJeu->affiche(image, "1.", 44, 56);
gpJeu->affiche(image, "2.", 44, 104);
gpJeu->affiche(image, "3.", 44, 152);
Expand Down Expand Up @@ -529,7 +529,7 @@ void Generique::initAide1() {
ligne+=16;}
if (gpJoueur->hasObjet(O_POISSONS)) {
#ifdef __PSP2__
if (ligne < 176) gpJeu->affiche(image, "Afficher la liste des poissons péchés : D-Pad bas", 24, ligne);
if (ligne < 176) gpJeu->affiche(image, "Afficher les poissons péchés : D-Pad bas", 24, ligne);
#else
if (ligne < 176) gpJeu->affiche(image, "See fishes : L", 24, ligne);
#endif
Expand All @@ -543,7 +543,7 @@ void Generique::initAide1() {
ligne+=16;}
if (gpJoueur->hasObjet(O_MASQUE)) {
#ifdef __PSP2__
if (ligne < 176) gpJeu->affiche(image, "Transformation Oni Link : L + R", 24, ligne);
if (ligne < 176) gpJeu->affiche(image, "Transformation Oni Link : R puis L", 24, ligne);
#else
if (ligne < 176) gpJeu->affiche(image, "Oni Link transformation : O", 24, ligne);
#endif
Expand All @@ -563,7 +563,7 @@ void Generique::initAide1() {
gpJeu->affiche(image, "Save / Quit: Esc", 24, ligne); ligne+=16;
#endif

if (ligne >= 288) gpJeu->affiche(image, "AIDE 1/3", 40, 16);
if (ligne > 288) gpJeu->affiche(image, "AIDE 1/3", 40, 16);
else gpJeu->affiche(image, "AIDE 1/2", 40, 16);
}

Expand Down Expand Up @@ -647,7 +647,7 @@ void Generique::initAide2() {
ligne+=16;}
if (gpJoueur->hasObjet(O_POISSONS)) {
#ifdef __PSP2__
if (ligne >= 64) gpJeu->affiche(image, "Afficher la liste des poissons péchés : D-Pad bas", 24, ligne);
if (ligne >= 64) gpJeu->affiche(image, "Afficher les poissons péchés : D-Pad bas", 24, ligne);
#else
if (ligne >= 64) gpJeu->affiche(image, "See fishes : L", 24, ligne);
#endif
Expand Down
2 changes: 1 addition & 1 deletion Keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ void Keyboard::pollKeys(Uint8* keys) {
gpJeu->lire();
}

if ((keys[SDLK_p] || buttonPressed(BTN_LTRIGGER)) && (gpJoueur->hasObjet(O_CARTE) || gpJeu->isDonjon()) &&
if ((keys[SDLK_p] || (buttonPressed(BTN_LTRIGGER) && !buttonPressed(BTN_RTRIGGER))) && (gpJoueur->hasObjet(O_CARTE) || gpJeu->isDonjon()) &&
(gpJeu->isDehors() || gpJeu->isDonjon())
&& !gpJeu->getStop() && gpJoueur->getVie()>0 && !tmpp) {
mode = 12;
Expand Down
22 changes: 11 additions & 11 deletions Poissons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void Poissons::fond() {
src.x = 0; src.y = 32; dst.x = 16; dst.y = 32;
SDL_BlitSurface(imageCadre, &src, image, &dst);

for (int i = 0; i < 4; i++) {
for (int i = 0; i < 5; i++) {
src.x = 16; src.y = 0; dst.x = 32+16*i; dst.y = 0;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 16; src.y = 64; dst.x = 32+16*i; dst.y = 16;
Expand All @@ -55,11 +55,11 @@ void Poissons::fond() {
SDL_BlitSurface(imageCadre, &src, image, &dst);
}

src.x = 32; src.y = 0; dst.x = 112-16; dst.y = 0;
src.x = 32; src.y = 0; dst.x = 112; dst.y = 0;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 32; src.y = 16; dst.x = 112-16; dst.y = 16;
src.x = 32; src.y = 16; dst.x = 112; dst.y = 16;
SDL_BlitSurface(imageCadre, &src, image, &dst);
src.x = 32; src.y = 32; dst.x = 112-16; dst.y = 32;
src.x = 32; src.y = 32; dst.x = 112; dst.y = 32;
SDL_BlitSurface(imageCadre, &src, image, &dst);


Expand All @@ -80,14 +80,14 @@ void Poissons::placeCadres() {
switch (page) {
case 0 :
cadre(16,48,0); cadre(64,48,88,32,0);
cadre(168,48,2); cadre(216,48,88,32,2);
cadre(168,48,2); cadre(216,48,96,32,2);
cadre(16,96,14); cadre(64,96,88,32,14);
cadre(16,144,22); cadre(64,144,88,32,22);
cadre(168,144,24); cadre(216,144,88,32,24);
break;
case 1 :
cadre(16,48,11); cadre(64,48,88,32,11);
cadre(168,48,7); cadre(216,48,88,32,7);
cadre(168,48,7); cadre(216,48,96,32,7);
cadre(16,144,16); cadre(64,144,88,32,16);
cadre(168,144,19); cadre(216,144,88,32,19);
cadre(16,192,28); cadre(64+8,192,88,32,28);
Expand All @@ -105,7 +105,7 @@ void Poissons::placeCadres() {
cadre(168,48,12); cadre(216,48,88,32,12);
cadre(16,144,20); cadre(64,144,88,32,20);
cadre(168,144,23); cadre(216,144,88,32,23);
cadre(16,192,29); cadre(64+8,192,88+16,32,29);
cadre(16,192,29); cadre(64+8,192,88,32,29);
break;
case 4 :
cadre(16,48,5); cadre(64,48,88,32,5);
Expand All @@ -118,7 +118,7 @@ void Poissons::placeCadres() {
cadre(16,48,1); cadre(64,48,88,32,1);
cadre(168,48,6); cadre(216,48,88,32,6);
cadre(16,144,18); cadre(64,144,88,32,18);
cadre(16,192,27); cadre(64+8,192,88,32,27);
cadre(16,192,27); cadre(64+8,192,104,32,27);
break;
}
}
Expand Down Expand Up @@ -222,17 +222,17 @@ void Poissons::cadre(int x, int y, int w, int h, int id) {
switch (id) {
case 0 : gpJeu->affiche(image, "Ecrevisse", x+8, y+8); break;
case 1 : gpJeu->affiche(image, "Eperlan", x+8, y+8); break;
case 2 : gpJeu->affiche(image, "Poisson-zèbre", x+8, y+8); break;
case 2 : gpJeu->affiche(image, "Poisson-zčbre", x+8, y+8); break;
case 3 : gpJeu->affiche(image, "Gobie", x+8, y+8); break;
case 4 : gpJeu->affiche(image, "Crabe", x+8, y+8); break;
case 5 : gpJeu->affiche(image, "Pibale", x+8, y+8); break;
case 6 : gpJeu->affiche(image, "Vairon", x+8, y+8); break;
case 7 : gpJeu->affiche(image, "Carassin doré", x+8, y+8); break;
case 7 : gpJeu->affiche(image, "Carassin doré", x+8, y+8); break;
case 8 : gpJeu->affiche(image, "Ablette", x+8, y+8); break;
case 9 : gpJeu->affiche(image, "Goujon", x+8, y+8); break;
case 10 : gpJeu->affiche(image, "Loche", x+8, y+8); break;
case 11 : gpJeu->affiche(image, "Epinoche", x+8, y+8); break;
case 12 : gpJeu->affiche(image, "Grémille", x+8, y+8); break;
case 12 : gpJeu->affiche(image, "Grémille", x+8, y+8); break;
case 13 : gpJeu->affiche(image, "Blennie", x+8, y+8); break;
case 14 : gpJeu->affiche(image, "Magicarpe", x+8, y+8); break;
case 15 : gpJeu->affiche(image, "Truite", x+8, y+8); break;
Expand Down
2 changes: 1 addition & 1 deletion Texte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ void Texte::chercheText() {
if (gpJeu->getJoueur()->getCoffre(14,15)) {id=1334; chercheText();break;}
if (gpJeu->getJoueur()->getCompteurEnn() >= 50 && gpJeu->getJoueur()->getCompteurType() >= 7) {id=1335; chercheText();break;}
texte = "Elimine au moins 50 ennemis de 7 types différents et je t'ouvrirais cette porte."; break;
case 1342: texte = "Tu as trouvé le masque d'Oni Link !!! *Utilise 'O' pour te transformer et devenir incroyablement puissant."; break;
case 1342: texte = "Tu as trouvé le masque d'Oni Link !!! *Maintiens R puis L pour te transformer et devenir incroyablement puissant."; break;
case 1343: texte = "Félicitations Link! Tu as battu chaque type d'ennemi... C'est incroyable..."; idsuiv=1344; break;
case 1344: texte = "Je te dois énormément, veux-tu être payé maintenant ?"; idsuiv=1345; break;
case 1345: texte = "Je vais enfin pouvoir reprendre ma vraie forme, prépare-toi à prendre cher!*Adieu, Héros d'Hyrule!"; break;
Expand Down

0 comments on commit 19c6fd1

Please sign in to comment.