Documentación

Home

GameClasses

Classes

EntityComponent

Inherits from object

Base component class

Methods

Nombre Descripción Parámetros Valor de retorno
update
Nombre Descripción
entity Owner of self component
None
name
Nombre Descripción
name
call_on_update
Nombre Descripción
component has to be called on update? False by default
call_on_render
Nombre Descripción
component has to be called on render? False by default
isColider
Nombre Descripción
component has to be called on colisions? False by default

MeshComponent

Inherits from EntityComponent

Contains mesh data

Methods

Nombre Descripción Parámetros Valor de retorno
set_model
Nombre Descripción
vi tuple of vertices and face indices
None

TextureComponent

Inherits from EntityComponent

Contains texture data

Methods

Nombre Descripción Parámetros Valor de retorno

ShaderComponent

Inherits from EntityComponent

Contains shader program

Methods

Nombre Descripción Parámetros Valor de retorno

Renderable

Inherits from EntityComponent

Manages renderable related components

Methods

Nombre Descripción Parámetros Valor de retorno
mesh
Nombre Descripción
mesh vertices and mesh indices
shader
Nombre Descripción
shader program and texture

SpriteAnimator

Inherits from Renderable

Renderable able to change uv coordinates over time

Methods

Nombre Descripción Parámetros Valor de retorno
set_frames
Nombre Descripción
frames Arraylike containing uv coordinates for sprites
None
set_states
Nombre Descripción
states Arraylike containing Arraylike sequence of frames per state
None
set_active_state
Nombre Descripción
index index of the state
begin
Nombre Descripción

EntityComponentRenderable

Inherits from EntityComponent

Deprecated renderable component

Methods

Nombre Descripción Parámetros Valor de retorno

ColiderComponent

Inherits from EntityComponent

Manages any colision related event

Methods

Nombre Descripción Parámetros Valor de retorno
dump_data
Nombre Descripción
data ray data
impact impact method
datap mesh data
translocated_data
Nombre Descripción
pivot point of reference
data with new point of reference
translocated_rays
Nombre Descripción
pivot point of reference
ray with new point of reference
impact
Nombre Descripción
ray ray
pivot pivot
ray colides with mesh?