Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your team will design and implement a graphic adventure game using HTML5, CSS3 a

ID: 675102 • Letter: Y

Question

Your team will design and implement a graphic adventure game using HTML5, CSS3 and JavaScript. In this type of game, the player traverses a set of “rooms”, which can represent any location (e.g. an actual room, a corridor, outdoor space, etc.). This is typically done by displaying an image of the room along with a textual description and having the user type in different commands that allow for navigating the environment (e.g. “go north”). In each room, the player may perform certain actions that allow him/her to interact with the objects in the room. The typical actions are: “take” and “drop”. Taking an object inserts an item into the player’s inventory and dropping the item removes it. The player receives 1 point for dropping one item into a specially designated room (the repository). The goal of the game will be to achieve the maximum score (i.e. take all the items in all the rooms and drop them into the repository room). In order to prevent cheating, you need to make sure the player cannot pick anything up in the repository room. The actual number of rooms and items and hence the maximum score, will be up to you, but you should have at minimum 7 rooms and 4 items to collect.

Explanation / Answer

CODE :