kf4x / zombie-house

Zombie House game for CS351 Fall 2015
0 stars 0 forks source link

Character movement #2

Closed kf4x closed 9 years ago

kf4x commented 9 years ago

Character movement

quick overview

  1. At start up the GameEngine (controller) will tell House how large the house needs to be.
  2. The model will generate a house and return a house back to GameEngine.
  3. The controller will then hand a Character to the House and the house will randomly place it.
  4. The GameEngine controller will then hand the house with everything placed to the render-er to which it will draw.
  5. After this ZombieHouse is going to start calling GameEngine's update() at ~60fps, in addition its imdidetatly going to start passing any events to the GameEngine.
  6. GameEngine will be passed ALL events and therefore need to be filtered/sifted through and only grab the one's we need.
  7. GameEngine Will then call methods of other controllers like CharacterController to rotate
  8. CharacterController is when the actual Character object's attributes should be updated. i.e. if the GameEngine calls the CharacterController's rotateLeft() then the controller will update its instance method of the Character character.rotate(180)

    Movements

    • Left
    • Right
    • Up
    • Down
    • Run
    • Pickup
    • Drop
kf4x commented 9 years ago

@esosebee http://gamedev.stackexchange.com/questions/36046/how-do-i-make-an-entity-move-in-a-direction

kf4x commented 9 years ago

I am pretty happy with the movement, Great job