Aidos icon indicating copy to clipboard operation
Aidos copied to clipboard

Add update() to Entity

Open CoreyHendrey opened this issue 7 years ago • 2 comments

I think we should also add an update function to Entity.

This will be where all the logic gets called for each entity every tick. Moving, placing bombs, collision detection etc.

Keeping it separate from draw() would be a good idea I think.

CoreyHendrey avatar Nov 22 '17 07:11 CoreyHendrey

Sounds good to me. Update method would update instance variables of entities.

We should include a update method for changing the variables related to game as a whole too. What do you think ?

ashish2199 avatar Nov 22 '17 17:11 ashish2199

Sounds like a good idea to me. @dostertag Did you wanna have a crack at adding the Update() to entities? :)

CoreyHendrey avatar Nov 22 '17 23:11 CoreyHendrey