Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct { FrameImages []image.Image FrameTextures []*rl.Texture2D FrameDurations []time.Duration CurrentFrame int UntilNextFrame time.Duration }
Animation is a component that contains multiple images+textures, as well as frame durations and the current frame index that is being displayed
func (*Animation) ExportToLua ¶
ExportToLua exports the component into the given table, using the given lua state machine.
type ComponentFactory ¶
type ComponentFactory struct {
*akara.ComponentFactory
}
ComponentFactory is a wrapper for the generic component factory that returns Component component instances.
func (*ComponentFactory) Add ¶
func (concrete *ComponentFactory) Add(id akara.EID) *Component
Add adds a Component component to the given entity and returns it
func (*ComponentFactory) ExportToLua ¶
Click to show internal directories.
Click to hide internal directories.