Jump to content
  • entries
  • comments
  • views

Processing Input

Sign in to follow this  
Trapper Zoid


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  


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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!