jrheard / voke

a roguelite in clojurescript
MIT License
32 stars 2 forks source link

set entities' :motion :direction to nil when they come to a complete stop #19

Closed jrheard closed 7 years ago

jrheard commented 7 years ago

nvm, :direction doesn't mean "direction entity is currently moving in", it means "direction entity wants to move in"

so it's set to nil when eg the player lets go of all the movement keys