Please sign in to comment.
Finished Entity System
- Entities are now a common thread to connect digital data into the virtual world - Update and render functions are bound to every entity, and are the only ways in which the data changes - More work is required to change the update and render functions but right now things work okay, more later - Guy is an example of an entity, he has extra functionality - He doesnt move right now so it's hard to test, but every frame his velocity adds to his position - The update function takes a Guy and a CDouble. We already know the Guy, and so he is curried in the function - This way, we are saving data to the function allowing for something like an entity-component system
- Loading branch information
Showing with 92 additions and 79 deletions.
Oops, something went wrong.