Commit Graph

13 Commits

Author SHA1 Message Date
d97c956607 Cleanup of ListenerRegistry 2020-01-25 14:03:50 +04:00
90e5ff36e7 Move entity processing loop to systems
Store cache of interested entities in each system.

Perform entity activation, deactivation and removal outside of the update
loop.

Instead of throwing an exception when trying to get a Component from
ComponentBag that is out of range, just return null. This is to allow
systems to try getting a Component it isn't registered for.

Fixed ComponentType.isTypeInMask
2020-01-25 13:56:35 +04:00
d8b82c4fee Fix screen wrapping math
Rather than place entities directly on the screen edge boundary, add the
distance they were beyond the screen edge.

Store aabb in ModelComponent for use by multiple systems.
2020-01-25 13:18:38 +04:00
22fc504619 Add Event/Listener framework to common/ecs 2020-01-25 00:18:16 +04:00
83113f3afd Rotate at a frame time dependent rate (300 degrees / second) 2020-01-25 00:18:16 +04:00
3d9b62d455 Add screen wrapping system
Move model position/rotation updating to movement system
2020-01-25 00:17:14 +04:00
d7c55d72e3 Set up ECS on GameScreen: register components and systems, add player 2020-01-24 17:24:08 +04:00
6fb664adaf Add player/model components + input/render systems 2020-01-24 16:05:13 +04:00
e38b538a1e Add movement/acceleration/velocity components + movement system 2020-01-24 16:05:13 +04:00
89a7bc031c Add beginnings of game code. 2020-01-24 16:05:08 +04:00
909b50b47d Add base project files. 2020-01-24 12:03:04 +04:00
9ea154d8d6 Add android icon/styles. 2020-01-23 23:33:39 +04:00
c2e3b32278 Root commit. 2020-01-23 23:31:43 +04:00