Quick API Index¶
Window Module¶
Drawing Module¶
Classes¶
Texture
- __init__(texture_id
VertexBuffer
- __init__(vbo_id
Functions¶
create_ellipse()
create_rectangle()
draw_arc_filled()
draw_arc_outline()
draw_circle_filled()
draw_circle_outline()
draw_ellipse_filled()
draw_ellipse_outline()
draw_line()
draw_line_strip()
draw_lines()
draw_lrtb_rectangle_filled()
draw_lrtb_rectangle_outline()
draw_parabola_filled()
draw_parabola_outline()
draw_point()
draw_points()
draw_polygon_filled()
draw_polygon_outline()
draw_rectangle_filled()
draw_rectangle_outline()
draw_text()
draw_texture_rectangle()
draw_triangle_filled()
draw_triangle_outline()
draw_xywh_rectangle_filled()
draw_xywh_rectangle_outline()
draw_xywh_rectangle_textured()
load_texture()
load_textures()
make_transparent_color()
render_ellipse_filled()
render_rectangle_filled()
trim_image()
Geometry Module¶
Sprite Module¶
Classes¶
Sprite
- __init__(,
- append_texture(texture
- set_texture(texture_no
- get_texture() -> int
- set_position(center_x
- set_points(points
- get_points() -> List[List[float]]
- draw()
- update()
- update_animation()
- kill()
SpriteList
- __init__()
- append(item
- remove(item
- update()
- update_animation()
- draw(fast
- pop() -> Sprite
AnimatedTimeSprite
- __init__(scale
- update_animation()
AnimatedWalkingSprite
- __init__(scale
- update_animation()
Physics Engines Module¶
Classes¶
PhysicsEngineSimple
- __init__(player_sprite
- update()
PhysicsEnginePlatformer
- __init__(player_sprite
- can_jump() -> bool
- update()