Top

core.Sprite module

Classes

class Circle

Ancestors (in MRO)

Static methods

def __init__(

self, x, y, radius, color, uuid)

Inheritance: Sprite.__init__

Initialize self. See help(type(self)) for accurate signature.

def apply_velocity(

self)

def draw(

self, screen)

def get_current_frame_bounding_box(

self)

def get_next_frame_bounding_box(

self)

def get_position(

self)

def get_velocity(

self)

def move(

self, vector)

def set_position(

self, new_pos)

def set_velocity(

self, velocity)

def uuid(

self)

def x(

self)

def y(

self)

class Image

Ancestors (in MRO)

Static methods

def __init__(

self, x, y, image, uuid, transparant=True)

Inheritance: Sprite.__init__

Initialize self. See help(type(self)) for accurate signature.

def apply_velocity(

self)

def draw(

self, screen)

def get_current_frame_bounding_box(

self)

def get_next_frame_bounding_box(

self)

def get_position(

self)

def get_velocity(

self)

def move(

self, vector)

def set_image(

self, image)

def set_position(

self, new_pos)

def set_velocity(

self, velocity)

def uuid(

self)

def x(

self)

def y(

self)

class Point

Point(x, y)

Ancestors (in MRO)

  • Point
  • builtins.tuple
  • builtins.object

Instance variables

var x

Alias for field number 0

var y

Alias for field number 1

class Rectangle

Ancestors (in MRO)

Static methods

def __init__(

self, x, y, width, height, color, uuid)

Inheritance: Sprite.__init__

Initialize self. See help(type(self)) for accurate signature.

def apply_velocity(

self)

def draw(

self, screen)

def get_current_frame_bounding_box(

self)

def get_next_frame_bounding_box(

self)

def get_position(

self)

def get_velocity(

self)

def move(

self, vector)

def set_position(

self, new_pos)

def set_velocity(

self, velocity)

def uuid(

self)

def x(

self)

def y(

self)

class Sprite

Ancestors (in MRO)

Static methods

def __init__(

self, x, y, width, height, color, uuid)

Initialize self. See help(type(self)) for accurate signature.

def apply_velocity(

self)

def get_current_frame_bounding_box(

self)

def get_next_frame_bounding_box(

self)

def get_position(

self)

def get_velocity(

self)

def move(

self, vector)

def set_position(

self, new_pos)

def set_velocity(

self, velocity)

def uuid(

self)

def x(

self)

def y(

self)

class Text

Ancestors (in MRO)

Static methods

def __init__(

self, x, y, text, color, uuid, font, size)

Inheritance: Sprite.__init__

Initialize self. See help(type(self)) for accurate signature.

def apply_velocity(

self)

def draw(

self, screen)

def get_current_frame_bounding_box(

self)

def get_next_frame_bounding_box(

self)

def get_position(

self)

def get_text(

self, text)

def get_velocity(

self)

def move(

self, vector)

def set_position(

self, new_pos)

def set_text(

self, text)

def set_velocity(

self, velocity)

def uuid(

self)

def x(

self)

def y(

self)

Index of links