krgauthi / Broids

3 stars 2 forks source link

Move setting thrust bool down to CoreLogic #55

Closed ntpeters closed 12 years ago

ntpeters commented 12 years ago

Currently the boolean for thrust is being set in GameScreen.handleOutput() in two locations. This should be moved down into CoreLogic.execute(). Since CoreLogic.execute() is being called again from GameScreen.update() by passing in a NULL direction. This should be changed to save a "last direction" variable in GameScreen and pass it into any call to CoreLogic.execute().

ntpeters commented 12 years ago

@krgauthi, ejrinkus, could this be handled when input handling is moved out of the CoreLogic.execute method the way we were talking about?

krgauthi commented 12 years ago

possibly if I switch the polling around it should work i.e. if I check for left and right and then check for forward backward other wise the way it polls now it would be set back to false when hitting left and right

krgauthi commented 12 years ago

I did this on the way down to to acm sorry! Ill push it up soon