IndexWeblogRecipesProjectsLinks
AboutAtom

Categories

ThadeusBpython, ai, robots

Getting fresh with SQLAlchemy

Accessing an attribute of a record instance using the __dict__

Multiple Decorators for python functions

A little trick to effectively stacking multiple decorators with python functions.

pygame font and py2exe

If you get the errors at the bottom of this post while trying to use pygame.font.Font or pygame.font.SysFont and py2exe here is a simple fix. Be sure to include 'pygame' as a package to your py2exe script. Also you will need to copy SDL.dll and SDL_

Pygame Event Input Wrapper

The goal of this class is to make input easier, and globally accessible to the entire game for each loop. This also keeps track of whether an input has just been pressed, is being held down, and when it is released. Usage Wrapper for the pygame input m

Rotate Sprite Towards Point

Smoothly turn a sprite towards a desired located based on a turning speed. Implemented in python for use with pygame, however the concepts can easily be taken to any other programming language. Class a_sprite()