Feb 22 2008
Day four: entity types
Filed under Game development by Jussi Lepistö
Got more stuff done today. I started on entity types with a type database, added a simple texture manager and again structured and consolidated lots of code. Entities are all the visual and/or physical objects in the world: at the moment the terrain, units and shells. Entity types define properties for entities, and entities can be created from entity types. Two different tanks would be two different entity types, two tanks of the same type would be different entities but the same entity type.
Before I can get this done though, I think I need to formalize entity components a bit. At the moment I’m just adding arbitrary attributes to entities, but I’ll need to keep track of them somehow. Physics- and gameplay-related attributes could be collected to their own components. With the flow I’ve been in for a good part of the week though, I don’t expect this to be a serious problem.
Tomorrow will again be a bit busier in the real life department and on Saturday I’m probably going snowboarding with a few friends, but I’m still expecting at least some progress.
As a small statistics, the project has exceeded 1000 lines of code (including comments and empty lines).
Comments Off