-
Notifications
You must be signed in to change notification settings - Fork 0
adventure
- A: Position on the horizontal axis
- B: Position on the vertical axis
- C: Key pressed
- D: Temp position on the horizontal axis
- E: Temp position on the vertical axis
- F: Room number
- G: Boolean to avoid redrawing the room all the time
- H: Weapon level
- I: Money
- J: Enemy position on the horizontal axis
- K: Enemy position on the vertical axis
- L: Health
- M: Enemy health
- Y, Z: Loop variables
- A: Menu
- 0: Goes to the room section
- 1: Goes to the movement section
- When you enter a new room it may not redraw. To solve it press the arrow keys.
Here rooms are shown surrounded by | and -. These and everything outside them do not appear on the program.
Room format in pseudocode:
If F=RoomNumber: Then
If(Position is not equal to obstacle): Then
Positions = Temp positions
EndIf
If(G = 0):Then
Draw room
EndIf
If(Position = Exit):
Exit
EndIf
EndIf
Goes to room 5
+|-----------------+
|A0 O-Goes to room 2
| 0 0 +++x+++++++++|
| 0 0 +++O+++++++++|
| 0O+++++++++++++|
+----|-------------+
Goes to room 2
x O
The x is a bush cuttable with a weapon
The O is the shop (room 6)
Return to room 1
+-|----------------+
|0 000000000000000S|
|0 000000000000000S|
|0 S-River. Goes to room 3
|00000000000000000S|
+------------------+
+------------------+
| = |
*==================-Goes to room 4
| |
| |
+------------------+
* Goes back to room 1
+------------------+
| |
*=======:: |
| :4 |
| |
+------------------+
*
Goes to room 3
The '4' is a chest with a lvl 1 weapon
+------------------+
|0000 |
|04 0 |
|0 0 |
|0-00 |
+-|----------------+
Return to room 1
The '4' is a chest that contais gold. It might have been robbed by the time you enter here if you take long enough
+------------------+
|1 nM->Weapon lvl n|
|2 5M->Health |
| |
| 0-Here appears the money left
+------------------+
Press a number to buy the item. The M means the cost Press [EXIT] to exit
Health
+-|----------------+
|10 |
| 8 - Monster.
| |
| |
+------------------+
Kill the monster to gain money. When you enter the room or the monster is killed it will reappear on a random location. The monsters health is dependant on the weapon level To exit go to the top right corner
Enter the saved number on pairs of digits. Example:
? 12 ? 34 ...
Save the list of numbers on paper. The format is AABBFFHHIILL.
Exits the program