erikwatson / Bramble

A little JS game engine for jamming on prototypes.
MIT License
0 stars 1 forks source link

Input state should be passed into input #47

Closed erikwatson closed 2 months ago

erikwatson commented 2 months ago

We don't allow access to dt outside of the update function and we shouldn't give access to the input state either. It's also annoying to have to call getState for the input functions yourself.

Change it so the getInput functions are called first, and the states are just handed to your callback in the update arguments.