Attributes and Behaviours in game object design
Posted
by
Brukwa
on Game Development
See other posts from Game Development
or by Brukwa
Published on 2012-03-28T11:42:51Z
Indexed on
2012/03/28
17:46 UTC
Read the original article
Hit count: 219
Recently I have read interesting slides about game object design written by Marcin Chady Theory and Practice of the Game Object Component Architecture. I have prototyped quick sample that utilize all Attributes\Behaviour idea with some sample data.
Now I have faced a little problem when I added a RenderingSystem to my prototype application. I have created an object with RenderBehaviour which listens for messages (OnMessage function) like MovedObject in order to mark them as invalid and in OnUpdate pass I am inserting a new renderable object to rederer queue. I have noticed that rendering updates should be the last thing made in single frame and this causes RenderBehaviour to depend on any other Behaviour that changes object position (i.ex. PhysicsSystem and PhysicsBehaviour).
I am not even sure if I am doing this the way it should be. Do you have any clues that might put me on the right track?
© Game Development or respective owner