forked from gever/bwx-adventure
-
Notifications
You must be signed in to change notification settings - Fork 1
Homework Assignments
sleepinghungry edited this page Jan 17, 2017
·
4 revisions
- Open IDLE
- Open wwif/homework/locations_list.txt
- Open wwif/homework/locations.py (You will code your homework in this file)
- Save As locations.py as your_name.py (I would save as eping.py.)
- Using the locations in locations_list.txt to write
- 4 new location commands
- 3 new connection commands, and
- 1 command to create a player
REMEMBER: CTRL-C to copy, CTRL-V to paste.
Use the The Handy Dandy Guide to Locations and Connections for step-by-step instructions
- Open IDLE
- Open wwif/homework/items_list.txt
- Open wwif/homework/items.py (You will code your homework in this file)
- Save As items.py as your_name2.py (I would save as eping2.py. DO NOT OVERWRITE YOUR LOCATIONS HOMEWORK)
- Using the items in items_list.txt to write
- 2 new object commands (1 key and 1 ball)
- 1 add phrase commands, and (to bounce the ball)
- 1 make requirement command (to make the key required to open a door)
Use the The Handy Dandy Guide to Items for step-by-step instructions
-
Open IDLE
-
Open wwif/homework/actors.py (You will code your homework in this file)
-
Save As actors.py as your_name3.py (I would save as eping3.py. DO NOT OVERWRITE YOUR LOCATIONS OR ITEMS HOMEWORK)
-
Add an Actor to the game and attach a special phrase using:
- 1 Actor command
- 1 set_location command
- 1 add_phrase command
- 1 add_actor command
-
Add an Animal to the game that wanders around the game using
- 1 Animal command
- 1 set_location command
- 1 set_allowed_locations command
- 1 add_phrase command
- 1 add_actor command
-
Optional. (Advanced): Add a custom action to the character using
- 1 def custom_action definition
- 1 add_phrase command using the Verb command instead of the Say command