First off, here is the code I am working with so far.
import random
from livewires import games, color
games.init(screen_width = 640, screen_height = 480, fps = 50)
controls = "Use The Arrow Keys to Move and the Spacebar to Shoot"
game_controls = games.Message(value = controls,
When I run some of my games on python, I notice they seem to lag and take
up a large portion of my CPU when the game itself is actually pretty simple.
why does this happen? I run a window XP and my computer should have no
problems with this simple of a game. Is the problem in my programming? Are
t
When i tried to run my program, i was given this message
(this is the message in part)
file "C:Python25\lib\site-packages\livewires\games.py", line 503, in_tick
self.position = ((self._x + self._dx), (self._y + self._dy))
TypeError: unsopported opernad type(s) for +: 'int' and type'
What is t
Python will not recognize the keyboard class of livewires. what is my
problem? (i have imported the modules and everything)
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
How does set the background to change on the press of a chosen key?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor