Skip to content

Commit

Permalink
New key map + reinstate some menu / functions
Browse files Browse the repository at this point in the history
Keys changes (only in game):
- Added analog sticks usage : left stick for Link movements, right stick
to look arround (reinstated function).
- Objects menu, map and monsters encyclopedia (reinstated) now accessed
by D-Pad.
- L trigger to run + added run lock with R trigger (L trigger to unlock
if locked)
- Cross button to carry without select gloves object (reinstated
function).

Removed game exit if start button pressed outside game.

Updated help and game text with new keys.
  • Loading branch information
littlebalup committed Oct 3, 2017
1 parent 6d9d7af commit ee8fc99
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 903 deletions.
2 changes: 1 addition & 1 deletion Encyclopedie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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
68 changes: 42 additions & 26 deletions Generique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ void Generique::initAide1() {
gpJeu->affiche(image, "Lire / Ouvrir / Parler : Espace", 24, ligne); ligne+=16;
gpJeu->affiche(image, "Valider / Passer texte : Entrer", 24, ligne); ligne+=16;
#endif
gpJeu->affiche(image, "Déplacer Link : Pavé multidirectionnel", 24, ligne); ligne+=16;
gpJeu->affiche(image, "Déplacer Link : Stick analogique gauche", 24, ligne); ligne+=16;
if (gpJoueur->hasObjet(O_BOTTES)) {
#ifdef __PSP2__
gpJeu->affiche(image, "Courir : L", 24, ligne);
gpJeu->affiche(image, "Courir : L maintenu ou R pour vérouiller", 24, ligne);
#else
gpJeu->affiche(image, "Courir : Shift ou Caps lock", 24, ligne);
#endif
Expand All @@ -409,7 +409,7 @@ void Generique::initAide1() {
#endif
ligne+=16;}
#ifdef __PSP2__
gpJeu->affiche(image, "Menu de sélection d'objet : Croix", 24, ligne); ligne+=16;
gpJeu->affiche(image, "Menu de sélection d'objet : D-Pad droit", 24, ligne); ligne+=16;
#else
gpJeu->affiche(image, "Menu de sélection d'objet : Entrer", 24, ligne); ligne+=16;
#endif
Expand All @@ -420,34 +420,42 @@ void Generique::initAide1() {
gpJeu->affiche(image, "Utiliser l'objet sélectionné : X", 24, ligne); ligne+=16;
#endif
if (ligne >= 176) return;
#ifndef __PSP2__
if (gpJoueur->hasObjet(O_GANTS)) {
gpJeu->affiche(image, "Porter sans équiper les gants : C", 24, ligne);
#ifdef __PSP2__
gpJeu->affiche(image, "Porter sans équiper les gants : Croix", 24, ligne);
#else
gpJeu->affiche(image, "Porter sans équiper les gants : C", 24, ligne);
#endif
ligne+=16;}
if (ligne >= 176) return;
#endif
if (gpJoueur->hasObjet(O_CARTE))
#ifdef __PSP2__
gpJeu->affiche(image, "Afficher la carte : R (extérieur ou donjons)", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : R (dans les donjons)", 24, ligne);
gpJeu->affiche(image, "Afficher la carte : D-Pad gauche", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : D-Pad gauche", 24, ligne);
#else
gpJeu->affiche(image, "Afficher la carte : P (extérieur ou donjons)", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : P (dans les donjons)", 24, ligne);
#endif
ligne+=16;
if (ligne >= 176) return;
#ifndef __PSP2__
if (gpJoueur->hasObjet(O_ENCYCL)) {
gpJeu->affiche(image, "Afficher les monstres vaincus : M", 24, ligne);
#ifdef __PSP2__
gpJeu->affiche(image, "Afficher les monstres vaincus : D-Pad haut", 24, ligne);
#else
gpJeu->affiche(image, "Afficher les monstres vaincus : M", 24, ligne);
#endif
ligne+=16;}
if (ligne >= 176) return;
#ifdef __PSP2__
gpJeu->affiche(image, "Regarder autour : Stick analogique droit", 24, ligne); ligne+=16;
if (ligne >= 176) return;
gpJeu->affiche(image, "Sauvegarder / Quitter : Start", 24, ligne); ligne+=16;
#else
gpJeu->affiche(image, "Regarder autour : Ctrl et direction", 24, ligne); ligne+=16;
if (ligne >= 176) return;
gpJeu->affiche(image, "Agrandir / Rétrécir Ctrl et Entrer", 24, ligne); ligne+=16;
if (ligne >= 176) return;
gpJeu->affiche(image, "Save / Quit: Esc", 24, ligne); ligne+=16;
#else
gpJeu->affiche(image, "Sauvegarder / Quitter : Start", 24, ligne); ligne+=16;
gpJeu->affiche(image, "Sauvegarder / Quitter : Esc", 24, ligne); ligne+=16;
#endif
}

Expand Down Expand Up @@ -509,34 +517,42 @@ void Generique::initAide2() {
gpJeu->affiche(image, "Utiliser l'objet sélectionné : X", 24, ligne); ligne+=16;
#endif
if (ligne >= 64)
#ifndef __PSP2__
if (gpJoueur->hasObjet(O_GANTS)) {
gpJeu->affiche(image, "Porter sans équiper les gants : C", 24, ligne);
ligne+=16;}
#ifdef __PSP2__
gpJeu->affiche(image, "Porter sans équiper les gants : Croix", 24, ligne);
#else
gpJeu->affiche(image, "Porter sans équiper les gants : C", 24, ligne);
#endif
ligne+=16;}
if (ligne >= 64) {
if (gpJoueur->hasObjet(O_CARTE))
#ifdef __PSP2__
gpJeu->affiche(image, "Afficher la carte : R (extérieur ou donjons)", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : R (dans les donjons)", 24, ligne);}
gpJeu->affiche(image, "Afficher la carte : D-Pad gauche", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : D-Pad gauche", 24, ligne);}
#else
gpJeu->affiche(image, "Afficher la carte : P (extérieur ou donjons)", 24, ligne);
else gpJeu->affiche(image, "Afficher la carte : P (dans les donjons)", 24, ligne);}
#endif
ligne+=16;
if (ligne >= 64)
#ifndef __PSP2__
if (gpJoueur->hasObjet(O_ENCYCL)) {
gpJeu->affiche(image, "Afficher les monstres vaincus : M", 24, ligne);
#ifdef __PSP2__
gpJeu->affiche(image, "Afficher les monstres vaincus : D-Pad haut", 24, ligne);
#else
gpJeu->affiche(image, "Afficher les monstres vaincus : M", 24, ligne);
#endif
ligne+=16;}
if (ligne >= 64) return;
if (ligne >= 64)
#ifdef __PSP2__
gpJeu->affiche(image, "Regarder autour : Stick analogique droit", 24, ligne); ligne+=16;
if (ligne >= 64)
gpJeu->affiche(image, "Sauvegarder / Quitter : Start", 24, ligne); ligne+=16;
#else
gpJeu->affiche(image, "Regarder autour : Ctrl et direction", 24, ligne); ligne+=16;
if (ligne >= 64) return;
if (ligne >= 64)
gpJeu->affiche(image, "Agrandir / Rétrécir Ctrl et Entrer", 24, ligne); ligne+=16;
if (ligne >= 64) return;
gpJeu->affiche(image, "Save / Quit: Esc", 24, ligne); ligne+=16;
#else
gpJeu->affiche(image, "Sauvegarder / Quitter : Start", 24, ligne); ligne+=16;
if (ligne >= 64)
gpJeu->affiche(image, "Sauvegarder / Quitter : Esc", 24, ligne); ligne+=16;
#endif
}

Expand Down
Loading

2 comments on commit ee8fc99

@usineur
Copy link
Contributor

@usineur usineur commented on ee8fc99 Oct 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

are you ok if I use the same mapping in my port ? You will be credited in the corresponding commit, of course.

@littlebalup
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Yes, feel free of course.

Please sign in to comment.