Game programming I – Week 4
|
This week we have been building on our second game – Araknoid. We have also started to discuss polymorphism which is what the name “virtual” stands for. Polymorphic objects are abstract and can therefor be reused by different parts of the program to do their own separate thing. Draw for example does different things depending on what state you are in. We also lightly discussed finite state machine which is the process in which the program constantly checks for information to create a sense of a smart AI. Finite state machine ranges from a building building things in a RTS to an AI checking if it can see the player and if the player is within its engagement range. Filed under: 5SD022, Game programming I – 5SD022, University Tagged: 5SD022, Game programming |
