You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
848 B
14 lines
848 B
|
3 years ago
|
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.
|