Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update() to Entity #33

Open
CoreyHendrey opened this issue Nov 22, 2017 · 2 comments
Open

Add update() to Entity #33

CoreyHendrey opened this issue Nov 22, 2017 · 2 comments

Comments

@CoreyHendrey
Copy link
Contributor

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
Copy link
Owner

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 ?

@CoreyHendrey
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants