Skip to content

Entity & Obejct

bluecri edited this page Sep 29, 2018 · 6 revisions

Entity & Object

Imgur


  • Entity has RigidbodyComponent & bindedGameSession

  • IGameObject inheritance Entity and has CollisionComponent & RenderObject

Need only rigidbody, then make class inheritancing entity (ex. Particle entity, Camera..)

Need collision component and RenderObject, then make class inheritancing IGameObject.(ex. LightGameObject, IPlane, IFieldItem…)

  • Entities are managed by GameSession class.

  • GameSession is managed by Scene class.

Program can have many scenes. (ex. GameScene, MenuScene..) Input is propagated to top scene and updating the scnee with deltaTime also result from scene state.


Imgur

Clone this wiki locally