1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@
|
||||
Ideas for adv |
||||
------------- |
||||
|
||||
- Use roomExits and movement to check for possible exits. If looking north (1000) and going forward (1000) we |
||||
check for 1000 in roomExits. Lets say that there is an exit there. Now, if looking south in the same room |
||||
and going backwards we have looking 0010 and direction 0010 but still 1000 in roomExits. |
||||
Solution is to shift roomExits two positions to the left for south. (and one for east, three for west). |
||||
We need to make sure that bits go back around (ie 0001 -> 1000 for one place to the left). |
||||
|
||||
- Room information should be stored in a file instead. That way we can call a roomLoad function with roomNumber |
||||
and stuff will be sucked into a struct containing appropriate values. |
||||
|
||||
- We also need a global variable of some kind to keep track of inventory and things the player have done/seen/ |
||||
manipulated. |
||||
Loading…
Reference in new issue