Why not add some Enemies
|
Magic writer is a game concept me and a group of other people are developing. In this you play as a magician that has a holiday on a tropical beach. Unfortunately he is interrupted by monster invading the beach. Ah no holiday this time. The magician is skilled in summoning magic. So he uses this to summon objects and throwing them with magic on the monsters. By doing this the monsters will be defeated and the oncoming tide halted. Summoning is done by typing in the word of the item displayed on the screen. I have worked with getting the monsters into the game and making them do what we want them to do. The monster are to move in five different lanes down towards the player. Their purpose to attack the beach and when reaching it the player loses a life. Monsters have a certain amount of life. The basic monster has ten hp, the speedy monster has one hp and our tank monster has five hp. Monsters have different weaknesses and if hit by an item with the same weakness property it takes more damages, normal damage is one. The basic monsters have a certain weakness throughout the game. The tank gets a random each time it spawn and the speedy has none since it dies on one hit. The first thing to begin with was creating a class that inherit from entity and are for monsters. In entity there is an enumerator (basically a list of numbers with a name) that specifies entity type. So monsters are set to entity type ENTITY_MONSTER. At least at first since later we will have different types of monsters and if they have different types they can have the same class but different properties depending on the type. But I feel it is better with a type for the monsters in their own class and they are set to that when created and has a set of properties for each of those. Different hp and movement speed for example. The monsters have five lanes that they use, so I use a class that I created to hold positions in the game and when activating a monster setting it to one of these lanes. The position is above the screen and gets a one of the five lanes at random. The speed is set at an initialize speed and increases the speed with the time passed. This to let the speed be dependant of the time so the game becomes more difficult the longer you play. The weakness and life part is not implemented yet, so the monsters dies after one hit. The enemies will have to spawn less frequently when that is implemented to better balance the game. |


