Moved a few more strings out of game_main.c and into game_text.s and added French translation for these.
@@ -113,6 +113,14 @@ | ||
113 | 113 | extern const char gTextClimbUpRope[]; // "You climb up the rope" |
114 | 114 | extern const char gTextClimbDownRope[]; // "You climb down the rope" |
115 | 115 | extern const char gTextAttachRopeToTree[]; // "You attach the rope to the tree" |
116 | +extern const char gTextDeadDog[]; // "a dead dog" | |
117 | +extern const char gTextDeadThug[]; // "a dead thug" | |
118 | +extern const char gTextFoundSomething[]; // "You found something interesting" | |
119 | +extern const char gTextDogGrowlingAtYou[]; // "an alsatian growling at you" | |
120 | +extern const char gTextThugAsleepOnBed[]; // "a thug asleep on the bed",0 | |
121 | +extern const char gTextNotDead[]; // "Not dead" - Debugging text | |
122 | +extern const char gTextDogJumpingAtMe[]; // "a dog jumping at me" | |
123 | +extern const char gTextThugShootingAtMe[]; // "a thug shooting at me" | |
116 | 124 | |
117 | 125 | // Error messages |
118 | 126 | extern const char gTextErrorInvalidDirection[]; // "Impossible to move in that direction" |
@@ -127,4 +135,16 @@ | ||
127 | 135 | extern const char gTextErrorItemNotPresent[]; // "This item does not seem to be present" |
128 | 136 | extern const char gTextErrorCannotRead[]; // "I can't read that" |
129 | 137 | extern const char gTextErrorCannotUseHere[]; // "I can't use it here" |
138 | +extern const char gTextErrorDontKnowUsage[]; // "I don't know how to use that" | |
130 | 139 | extern const char gTextErrorCannotAttachRope[]; // "You can't attach the rope" |
140 | +extern const char gTextErrorLadderInHole[]; // "The ladder is already in the hole" | |
141 | +extern const char gTextErrorCantClimbThat[]; // "I don't know how to climb that" | |
142 | +extern const char gTextErrorNeedPositionned[]; // "It needs to be positionned first" | |
143 | +extern const char gTextErrorItsNotHere[]; // "It's not here" | |
144 | +extern const char gTextErrorAlreadyDead[]; // "Already dead" | |
145 | +extern const char gTextErrorShouldSaveGirl[]; // "You are supposed to save her" | |
146 | +extern const char gTextErrorShouldSubdue[]; // "I should subdue him first" | |
147 | +extern const char gTextErrorAlreadySearched[]; // "You've already frisked him" | |
148 | +extern const char gTextErrorInappropriate[]; // "Probably inappropriate" | |
149 | +extern const char gTextErrorDeadDontMove[]; // "Dead don't move" | |
150 | + |
@@ -745,7 +745,7 @@ | ||
745 | 745 | else |
746 | 746 | if (ladderLocation == e_LOCATION_INSIDEHOLE) |
747 | 747 | { |
748 | - PrintErrorMessage("The ladder is already in the hole"); | |
748 | + PrintErrorMessage(gTextErrorLadderInHole); // "The ladder is already in the hole" | |
749 | 749 | } |
750 | 750 | } |
751 | 751 | else |
@@ -761,7 +761,7 @@ | ||
761 | 761 | break; |
762 | 762 | |
763 | 763 | default: |
764 | - PrintErrorMessage("I don't know how to use that"); | |
764 | + PrintErrorMessage(gTextErrorDontKnowUsage); // "I don't know how to use that" | |
765 | 765 | break; |
766 | 766 | } |
767 | 767 | } |
@@ -782,7 +782,7 @@ | ||
782 | 782 | char ladderLocation = gItems[e_ITEM_Ladder].location; |
783 | 783 | if (ladderLocation == e_LOCATION_INVENTORY) |
784 | 784 | { |
785 | - PrintErrorMessage("It needs to be positionned first"); | |
785 | + PrintErrorMessage(gTextErrorNeedPositionned); // "It needs to be positionned first" | |
786 | 786 | } |
787 | 787 | else |
788 | 788 | if (ladderLocation == e_LOCATION_INSIDEHOLE) |
@@ -805,7 +805,7 @@ | ||
805 | 805 | break; |
806 | 806 | |
807 | 807 | default: |
808 | - PrintErrorMessage("I don't know how to climb that"); | |
808 | + PrintErrorMessage(gTextErrorCantClimbThat); // "I don't know how to climb that" | |
809 | 809 | break; |
810 | 810 | } |
811 | 811 | } |
@@ -899,12 +899,12 @@ | ||
899 | 899 | item* itemPtr=&gItems[itemId]; |
900 | 900 | if (itemPtr->location != gCurrentLocation) |
901 | 901 | { |
902 | - PrintErrorMessage("It's not here"); | |
902 | + PrintErrorMessage(gTextErrorItsNotHere); // "It's not here" | |
903 | 903 | } |
904 | 904 | else |
905 | 905 | if (itemPtr->flags & ITEM_FLAG_DEAD) |
906 | 906 | { |
907 | - PrintErrorMessage("Already dead"); | |
907 | + PrintErrorMessage(gTextErrorAlreadyDead); // "Already dead" | |
908 | 908 | } |
909 | 909 | else |
910 | 910 | { |
@@ -915,7 +915,7 @@ | ||
915 | 915 | case e_ITEM_Thug: |
916 | 916 | gScore+=50; |
917 | 917 | itemPtr->flags|=ITEM_FLAG_DEAD; |
918 | - itemPtr->description="a dead thug"; | |
918 | + itemPtr->description=gTextDeadThug; // "a dead thug"; | |
919 | 919 | LoadScene(); |
920 | 920 | break; |
921 | 921 |
@@ -922,12 +922,12 @@ | ||
922 | 922 | case e_ITEM_AlsatianDog: |
923 | 923 | gScore+=50; |
924 | 924 | itemPtr->flags|=ITEM_FLAG_DEAD; |
925 | - itemPtr->description="a dead dog"; | |
925 | + itemPtr->description=gTextDeadDog; // "a dead dog"; | |
926 | 926 | LoadScene(); |
927 | 927 | break; |
928 | 928 | |
929 | 929 | case e_ITEM_YoungGirl: |
930 | - PrintErrorMessage("You are supposed to save her"); | |
930 | + PrintErrorMessage(gTextErrorShouldSaveGirl); // "You are supposed to save her" | |
931 | 931 | break; |
932 | 932 | } |
933 | 933 | } |
@@ -941,7 +941,7 @@ | ||
941 | 941 | item* itemPtr=&gItems[itemId]; |
942 | 942 | if (itemPtr->location != gCurrentLocation) |
943 | 943 | { |
944 | - PrintErrorMessage("It's not here"); | |
944 | + PrintErrorMessage(gTextErrorItsNotHere); // "It's not here" | |
945 | 945 | } |
946 | 946 | else |
947 | 947 | { |
@@ -951,18 +951,18 @@ | ||
951 | 951 | case e_ITEM_Thug: |
952 | 952 | if (!(itemPtr->flags & ITEM_FLAG_DEAD)) |
953 | 953 | { |
954 | - PrintErrorMessage("I should subdue him first"); | |
954 | + PrintErrorMessage(gTextErrorShouldSubdue); // "I should subdue him first" | |
955 | 955 | } |
956 | 956 | else |
957 | 957 | if (gItems[e_ITEM_Pistol].location!=e_LOCATION_NONE) |
958 | 958 | { |
959 | - PrintErrorMessage("You've already frisked him"); | |
959 | + PrintErrorMessage(gTextErrorAlreadySearched); // "You've already frisked him" | |
960 | 960 | } |
961 | 961 | else |
962 | 962 | { |
963 | 963 | gScore+=50; |
964 | 964 | gItems[e_ITEM_Pistol].location = e_LOCATION_MASTERBEDROOM; |
965 | - PrintInformationMessage("You found something interesting"); | |
965 | + PrintInformationMessage(gTextFoundSomething); // "You found something interesting" | |
966 | 966 | LoadScene(); |
967 | 967 | } |
968 | 968 | break; |
@@ -978,12 +978,12 @@ | ||
978 | 978 | item* itemPtr=&gItems[itemId]; |
979 | 979 | if (itemPtr->location != gCurrentLocation) |
980 | 980 | { |
981 | - PrintErrorMessage("It's not here"); | |
981 | + PrintErrorMessage(gTextErrorItsNotHere); // "It's not here" | |
982 | 982 | } |
983 | 983 | else |
984 | 984 | if (!(itemPtr->flags & ITEM_FLAG_DEAD)) |
985 | 985 | { |
986 | - PrintErrorMessage("Not dead"); | |
986 | + PrintErrorMessage(gTextNotDead); // "Not dead" | |
987 | 987 | } |
988 | 988 | else |
989 | 989 | { |
@@ -992,13 +992,13 @@ | ||
992 | 992 | { |
993 | 993 | case e_ITEM_Thug: |
994 | 994 | itemPtr->flags&=~ITEM_FLAG_DEAD; |
995 | - itemPtr->description="a thug asleep on the bed"; | |
995 | + itemPtr->description=gTextThugAsleepOnBed; // "a thug asleep on the bed"; | |
996 | 996 | LoadScene(); |
997 | 997 | break; |
998 | 998 | |
999 | 999 | case e_ITEM_AlsatianDog: |
1000 | 1000 | itemPtr->flags&=~ITEM_FLAG_DEAD; |
1001 | - itemPtr->description="an alsatian growling at you"; | |
1001 | + itemPtr->description=gTextDogGrowlingAtYou; // "an alsatian growling at you" | |
1002 | 1002 | LoadScene(); |
1003 | 1003 | break; |
1004 | 1004 | } |
@@ -1012,12 +1012,12 @@ | ||
1012 | 1012 | item* itemPtr=&gItems[itemId]; |
1013 | 1013 | if (itemPtr->location != gCurrentLocation) |
1014 | 1014 | { |
1015 | - PrintErrorMessage("It's not here"); | |
1015 | + PrintErrorMessage(gTextErrorItsNotHere); // "It's not here" | |
1016 | 1016 | } |
1017 | 1017 | else |
1018 | 1018 | if (itemPtr->flags & ITEM_FLAG_DEAD) |
1019 | 1019 | { |
1020 | - PrintErrorMessage("Dead don't move"); | |
1020 | + PrintErrorMessage(gTextErrorDeadDontMove); // "Dead don't move" | |
1021 | 1021 | } |
1022 | 1022 | else |
1023 | 1023 | { |
@@ -1026,18 +1026,18 @@ | ||
1026 | 1026 | { |
1027 | 1027 | case e_ITEM_Thug: |
1028 | 1028 | gCurrentLocationPtr->script = gDescriptionThugAttacking; |
1029 | - itemPtr->description="a thug shooting at me"; | |
1029 | + itemPtr->description=gTextThugShootingAtMe; // "a thug shooting at me" | |
1030 | 1030 | LoadScene(); |
1031 | 1031 | break; |
1032 | 1032 | |
1033 | 1033 | case e_ITEM_AlsatianDog: |
1034 | 1034 | gCurrentLocationPtr->script = gDescriptionDogAttacking; |
1035 | - itemPtr->description="a dog jumping at me"; | |
1035 | + itemPtr->description=gTextDogJumpingAtMe; // "a dog jumping at me" | |
1036 | 1036 | LoadScene(); |
1037 | 1037 | break; |
1038 | 1038 | |
1039 | 1039 | case e_ITEM_YoungGirl: |
1040 | - PrintErrorMessage("Probably impropriate"); | |
1040 | + PrintErrorMessage(gTextErrorInappropriate); // "Probably impropriate" | |
1041 | 1041 | break; |
1042 | 1042 | } |
1043 | 1043 | } |
@@ -25,6 +25,14 @@ | ||
25 | 25 | _gTextClimbUpRope .byt "Vous grimpez la corde",0 |
26 | 26 | _gTextClimbDownRope .byt "Vous descendez la corde",0 |
27 | 27 | _gTextAttachRopeToTree .byt "Vous attachez la corde à l'arbre",0 |
28 | +_gTextDeadDog .byt "un chien mort",0 | |
29 | +_gTextDeadThug .byt "un malfaiteur mort",0 | |
30 | +_gTextFoundSomething .byt "Vous avez trouvé quelque chose",0 | |
31 | +_gTextDogGrowlingAtYou .byt "un alsacien menacant",0 | |
32 | +_gTextThugAsleepOnBed .byt "un malfaiteur assoupi sur le lit",0 | |
33 | +_gTextNotDead .byt "Pas mort",0 // Debugging text | |
34 | +_gTextDogJumpingAtMe .byt "un chien qui me saute dessus",0 | |
35 | +_gTextThugShootingAtMe .byt "un malfaiteur qui me tire dessus",0 | |
28 | 36 | #else |
29 | 37 | _gTextAskInput .byt "What are you going to do now?",0 |
30 | 38 | _gTextNothingHere .byt "There is nothing of interest here",0 |
@@ -40,6 +48,14 @@ | ||
40 | 48 | _gTextClimbUpRope .byt "You climb up the rope",0 |
41 | 49 | _gTextClimbDownRope .byt "You climb down the rope",0 |
42 | 50 | _gTextAttachRopeToTree .byt "You attach the rope to the tree",0 |
51 | +_gTextDeadDog .byt "a dead dog",0 | |
52 | +_gTextDeadThug .byt "a dead thug",0 | |
53 | +_gTextFoundSomething .byt "You found something interesting",0 | |
54 | +_gTextDogGrowlingAtYou .byt "an alsatian growling at you",0 | |
55 | +_gTextThugAsleepOnBed .byt "a thug asleep on the bed",0 | |
56 | +_gTextNotDead .byt "Not dead",0 // Debugging text | |
57 | +_gTextDogJumpingAtMe .byt "a dog jumping at me",0 | |
58 | +_gTextThugShootingAtMe .byt "a thug shooting at me",0 | |
43 | 59 | #endif |
44 | 60 | |
45 | 61 | // Error messages |
@@ -59,6 +75,15 @@ | ||
59 | 75 | _gTextErrorDontKnowUsage .byt "Je ne sais pas l'utiliser",0 |
60 | 76 | _gTextErrorCannotAttachRope .byt "Impossible de l'attacher",0 |
61 | 77 | _gTextErrorLadderInHole .byt "L'échelle est déja dans le trou",0 |
78 | +_gTextErrorCantClimbThat .byt "Je ne sais pas grimper ca",0 | |
79 | +_gTextErrorNeedPositionned .byt "Ca doit d'abort être en place",0 | |
80 | +_gTextErrorItsNotHere .byt "Ca n'est pas là",0 | |
81 | +_gTextErrorAlreadyDead .byt "Déjà mort",0 | |
82 | +_gTextErrorShouldSaveGirl .byt "Vous êtes censé la sauver",0 | |
83 | +_gTextErrorShouldSubdue .byt "Il faut d'abord le maitriser",0 | |
84 | +_gTextErrorAlreadySearched .byt "Vous l'avez déjà fouillé",0 | |
85 | +_gTextErrorInappropriate .byt "Probablement inapproprié",0 | |
86 | +_gTextErrorDeadDontMove .byt "Les morts ne bougent pas",0 | |
62 | 87 | #else |
63 | 88 | _gTextErrorInvalidDirection .byt "Impossible to move in that direction",0 |
64 | 89 | _gTextErrorCantTakeNoSee .byt "You can only take something you see",0 |
@@ -75,6 +100,15 @@ | ||
75 | 100 | _gTextErrorDontKnowUsage .byt "I don't know how to use that",0 |
76 | 101 | _gTextErrorCannotAttachRope .byt "You can't attach the rope",0 |
77 | 102 | _gTextErrorLadderInHole .byt "The ladder is already in the hole",0 |
103 | +_gTextErrorCantClimbThat .byt "I don't know how to climb that",0 | |
104 | +_gTextErrorNeedPositionned .byt "It needs to be positionned first",0 | |
105 | +_gTextErrorItsNotHere .byt "It's not here",0 | |
106 | +_gTextErrorAlreadyDead .byt "Already dead",0 | |
107 | +_gTextErrorShouldSaveGirl .byt "You are supposed to save her",0 | |
108 | +_gTextErrorShouldSubdue .byt "I should subdue him first",0 | |
109 | +_gTextErrorAlreadySearched .byt "You've already frisked him",0 | |
110 | +_gTextErrorInappropriate .byt "Probably inappropriate",0 | |
111 | +_gTextErrorDeadDontMove .byt "Dead don't move",0 | |
78 | 112 | #endif |
79 | 113 | |
80 | 114 | _gTextLowerCaseAlphabet .byt "abcde",255-2,"f",255-2,"ghi",255-2,"jklmnopqrstuvwxyz",0 |