You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
526 B
20 lines
526 B
# Character object for managing an individual character and its attributes,
|
|
# such as its location, speed and angle.
|
|
|
|
|
|
class Character:
|
|
def __init__(self,
|
|
x=0,
|
|
y=0,
|
|
x_speed=0.1,
|
|
y_speed=0.1,
|
|
angle=0,
|
|
radius=20,
|
|
char=' '):
|
|
self.x = x
|
|
self.y = y
|
|
self.x_speed = x_speed
|
|
self.y_speed = y_speed
|
|
self.angle = angle
|
|
self.radius = radius
|
|
self.char = char
|
|
|