About This Blog

I am a student at Futureworks currently in my first year of their Games Development Course. This blog largely comprises of work and illustrations made in relation to assignments, as well as the very occassional opinion pieces or information I happen to believe may be relevent to my fellow students on the course.

Tuesday 19 March 2013

Programming Assignment 2 - Conclusion

And some screenshots as well. Because I'm just that generous.

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.
I had a lot of trouble with this assignment, I won't lie about it. Mostly due to not grasping how classes function and interact with one another. Thanks to collegues in the classroom, I was able to eventually wrap my head around this particular difficulty.

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.
And that is pretty much all I really have to say. I'm going to take a break and finish off the last aspects of the programming course before the holidays, and then I'll try to get to grips on this and see if I can finally work out the enemies.

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