• entries
    383
  • comments
    1075
  • views
    352598

Processing Input

Sign in to follow this  

75 views



Here we have a 10x10 square that I can move around with the arrow keys - I've got input working, and a key mapping based on a dictionary that maps key codes to functions. The event system has been tweaked a bit and everything looks ready to go.

I've been spending much of my hacking time just figuring out the best Pythony way to manage the program. Python seems to lend itself to more globals than I'm used to. I'm not sure if that's good practice or not, but for this little trial I should try not to get to hung up over it.

I do find it amusing in retrospect that one of the first things I've coded up is a FPS counter for a text based program.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now