pkulev / xoinvader

Python space game in terminal
http://mmap.me
MIT License
12 stars 1 forks source link

Input abstraction #72

Open pkulev opened 6 years ago

pkulev commented 6 years ago

We can provide some sort of input abstraction and reuse it for both backends. Instead of getting raw key and making all math in game objects' update methods we can use something like Input.axis(...).