ashish2199 / Aidos

A beginner friendly project with aim of creating our own version of Bomberman.
GNU General Public License v3.0
41 stars 27 forks source link

Add update() to Entity #33

Open ItsStolas opened 6 years ago

ItsStolas commented 6 years ago

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.

ashish2199 commented 6 years ago

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 ?

ItsStolas commented 6 years ago

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