[5SD033] Natural Disasters; Hurricane
|
Since last week I have started working on implementing one of three natural disasters we will have in our game, Datepocalypse. The first one is a hurricane disaster, like in real life, don’t quote me on this since I have never seen one in real life, the hurricane will in a predetermined pattern around the view-able playing area and in case of either of the avatars gets to close to the hurricane she will be sucked into the hurricane for a period of time, within this time frame you won’t able to control this character. Instead the avatar will be stuck inside the hurricane and will follow until you will get thrown away in a pseudo-random direction. In worst case scenario you will lose health. This is at least the plans for now, and nothing is written in stone yet. We also want to try a lot since this is a really import feature to your game, and will help us to add an apocalyptic feeling for your game. At this point in time, I have added a game object to the game. Which can be create using the enemy manager we have in place since earlier. I also did so you can create multiple hurricanes moving on the screen at the same time, and when they are set to inactive they will be recycled, in case of calling the creation function inside the enemy manager again. This game object will be responsible for rendering the graphical representation, right now it’s just a sprite, store data used by the collision system and both store and follow a predetermine path. The path contains a list with two-dimensional vectors, but might contain more in the future.
In the picture above you can see the hurricane (the white circular thing, I’m actually kind proud of this placeholder One thing that I haven’t had time to work on is implementing a way to generate path for the hurricanes, and this will probably be one of my tasks for next week. Firstly we to decide what kind of patterns they should move in, e.g: zig-zag, straight lines, curved and etc.. And after that I can start to implement something suitable. I also have to finish the collision detection between the avatars and the hurricanes, and maybe between enemies and hurricanes, that’s another question we have ask our self as a team. |

which I made #ProgrammerArt) in action.