This example will mostly involve taking code we've already written and moving it to a new file. Be sure to follow along carefully so we don't move any code we don't want to move.
class Cycle(DirectObject): def __init__(self):
WorldClass_01.py, and paste them into the
__init__method of the
self.speed = 0 self.throttle = 0 self.maxSpeed = 200 self.accel = 25 self.handling = 20