I shall recap the assignment in question, if I have capped the assignment in the first place. Our task was 5 fold -:
- Use a two dimensional char array to create a maze
- Use classes to seperate functions while still running the program
- Restrict player movement to left and right directions unless there is a ladder to climb, and add environmental hazards that send the player back to the start if touched.
- Add enemies that move two squares left and right, which also push the player back to the start if contact is made
- Add a title and display the player's X and Y coordinates.
In the end, I was only able to achieve 4 of the objectives, and the one I didn't manage was the addition of enemies. Any attempt to add one ended up creating an alternate map. Maybe if I'd had a little more time to play around with the coding, I may have been able to find a way to resolve it, but managing four out of five tasks is nothing to be too disappointed by.
Items, Doors, Ladders, Title, Environmental Hazards, Coordinates, and as a bonus, Controls and Objective |
I actually designed the level in such a way that each room would have introduced new elements, like the first room simply featured opening a door with a key, and then the second room introduced the ladder... the third room introduced spike hazards, and the fourth room would have featured an enemy to avoid before the fifth room being all about combining everything into one challenge. As mentioned, no enemies made it and so this idea more or less flew out of the window.
I also made elaborate use of ASCII symbols to create something a little more visually complete... I wasn't content with using default dashes or dots to make up the game. I suppose that is the artist in me trying to break free once again.
Just a screenshot demonstrating that the keys/hearts disappear when picked up, along with the doors. Also showing off ladder use. |
Victory screen. And credit to those who helped me out in the assignment. |
I may go back and take some screenshots of the first assignment, the text adventure. I may. Or may not.
No comments:
Post a Comment