- Prof. Dancy's Site - Course Site -
The year is 2022. Personal space transport is common and you have taken your space ship out exploring. You find an ancient abandoned planet and decided to land and investigate. There was a huge storm as you landed and your ship now lies in pieces on a landing pad. There is no oxygen in air but you are able to move around in your rover. You have a repair manual, which tells you how to fix your ship, but you don't have the needed spare parts.
You see strange items scattered around on the ground. Maybe they will be useful. You also see strange glowing orbs big enough to swallow your rover. When you touch one, you get sucked in and appear in another place with items and orbs. The orb was a portal! When you re-enter the same portal, it takes you back where you came from.
Your goal is to move about the portal system and collect enough spare parts to fix your ship.
Phase 1 | Phase 3 | Phase 4 | Phase 5 |
The universe is infinite. This means that you could constantly walk through portals into new rooms. The objective of phase 2 is to make the portal system functional.
Portals are inter-dimensional doorways to other rooms. If the rover steps on a portal, it must go through the portal. It will arrive on a portal in another room (and not get sucked back through until it steps off and on again).
current_room
data attribute to the Game
class. Always keep this variable updated with a reference to Room
the rover is currently in. You'll have to think carefully how you will keep this reference updated as the Rover goes through portals.Portal
class. Think about what information the Portal class needs to know about (what other objects in your game).Want to see an example video? Check out below
Graded item | Number of points |
---|---|
General Running | |
The rover and ship components and the parts all still have working images | 5 pts |
The quit button still works | 5 pts |
The rover can still move | 5 pts |
The rover can still stand on things | 5 pts |
Portals | |
Portals must be connected in a permanent 1 to 1 relationship. (If portal A connects to portal B, no other portal connects to A or B and the portals are never disconnected). | 20 pts |
If the rover steps on a portal, it is transported to another room. The map is infinite! | 12 pts |
Use randomness for the number/kind of the parts in each room | 5 pts |
Use randomness for the location of the parts in each room | 5 pts |
There will be at least 2 portals in each room | 5 pts |
Use randomness for the number of portals in each room | 5 pts |
No two items (ship components, parts, portals) may be in the same location | 5 pts |
Good design principles used | 6 pts |
Design of portals in code | 10 pts |
Total | 100 pts |