Archive | January, 2006

31 January 2006 ~ 1 Comment

Printing a degree symbol in Python

While trying to show the ball angle in PyGame I fired up charmap in Windows, copied the degree symbol, and pasted it into my code. As expected, I got this error in Komodo while trying print:
DeprecationWarning: Non-ASCII character ‘\xb0′ in file Python-1.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
execfile(file, [...]

Continue Reading

31 January 2006 ~ 0 Comments

Guido: Django 1, Cheetah 0

Guido van Rossum follows up his critique of Python web frameworks with some thoughts regarding templating with Django and Cheetah.
Quoth Guido:
I finally got some time to play with Cheetah and Django templates. After maybe an hour with each, I like Django best. Hopefully people are still watching this space…
Oh, I’m sure people are watching quite [...]

Continue Reading

31 January 2006 ~ 0 Comments

Fast scrolling with PyGame

I found a PyGame mailing list thread on fast scrolling maps today. It’s from 2002, so it’s a little old. I think, however, that it might still be useful.
Quoth the original poster:
“Can anyone point me to a good example of a fast scrolling background (full-screen or nearly full-screen)?”
The subsequent thread has quite a few potential [...]

Continue Reading

31 January 2006 ~ 3 Comments

100th post

My first post was at 8:40:51 PM on November 23, 2005, this is already my 100th post. Amazing.
I’ve been having a lot of fun with the site, and I hope others have found it to be at least a tiny bit useful or informative as well. Thanks go to everyone who has been reading and [...]

Continue Reading

31 January 2006 ~ 4 Comments

Bounce

Tonight I finally created what could be called a true “game”, as opposed the basic PyGame proof-of-concept stuff I’ve been toying with:

Basically, you use the mouse to control the paddle (a la Breakout) and bounce the smiley face around the screen, with appropriate sound effects. If the smiley slips past you and hits the bottom, [...]

Continue Reading