CMPT 225 : Lab 5

... we will record when you play. Come in the lab (July 16 th. ) so that we can do the recording; you can also arrange for Wednesday (July 15 th. ) early afternoon.
25KB taille 4 téléchargements 355 vues
CMPT 225 : Lab 5 Heaps, sorting and hash tables Due date: July 15th 11:59PM. Online submission only.

Download the game (file Lab5.zip) and speak with the non-player characters (NPCs). They will give you quests, indicating what to do, which file to modify and how much the quest is worth. There are 10 coins to collect in total, and a bonus quest. Note that there is no music because it would make the file too heavy, but you can surely put your own (folder sound and format wav).

As in the turtle’s lab, a competition will be held for this lab. To participate to the competition, you must complete at least three quests, and write a new quest involving: • a new non-player character. Create it in Creature.People, looking at the other ones for examples. To add it to the game, in the Main, add a line to the function setUpCharacters. The two first parts are the coordinates and the 3rd one the appearance (from src/sprites/creatures). • at least two parts. You must first do one thing, the NPC will use the function writeData in the player to state that it has been completed, and it will give you another task. One part will involve a data structure; do whatever you want in the other(s). • at least three new graphic elements on the screen. Look for elements that are not used in src/sprites/decoration or src/sprites/creatures. To add them to the game, in src/levels, a map is followed by a list of decorations and monsters. The game will load them automatically. The best three quests will be awarded a bonus of 4.5 pts and other will receive 2 pts. In order to show your quest to the class, we will record when you play. Come in the lab (July 16th) so that we can do the recording; you can also arrange for Wednesday (July 15th) early afternoon.

Philippe Giabbanelli

1

CMPT 225