Week 4: SDL and Started creating my first game.
|
This week we started working on our final project for this course it is to make a remake off an old arcade game I am going to be working with https://axelvesterlund.wordpress.com/ and we have decided to make bomberman / Boom. We have been working on a Design document were we have listed all the objects and tried to write down every thing that is in the game. This document will help us during this final project and we will improve the document as we go. The document will work as a guide for us, because we will write it so we can always go to the document as see what needs to be done. We have also started by creating a template for the project. Were we have added a class for engine, a inputmanager for keyboard and mouse, Drawmanager and a we have started working on a Statemanager and a few different states. The StateManager has a state pointer that is pointing to the current state. The current state can be change using a method called update and then printed out on the screen using the method called draw. This means that when we have added more states and when we have an actual game to play we will be able to change what is happening in the game. For example we will be able to have a state for menu and then when we hit the button New Game you will start the gamestate. The code so far have been livecodede by our teacher Tommi and there for I am still trying to learn what every thing does in the code. There is lots of new stuff for me to learn this week since we started using SDL and also went through new stuff like polymorphism. Polymorphism seems really useful. If I get it correctly you can take a method that you have created in a class and then use it again in another class but you can also change it in the new class. So you are using the same method but it does another thing in the second class. |