Documentation ¶
Index ¶
- type CameraComponent
- type Entity
- type HitboxComponent
- type ImageRenderComponent
- type InteraktionComponent
- type KeyboardMovementComponent
- type KreisRenderComponent
- type Level
- type MoveToPositionComponent
- type MoveToPositionsComponent
- type PathfinderComponent
- type PathfinderComponentState
- type PortalComponent
- type Position
- type RectRenderComponent
- type RenderComponent
- type RenderLayer
- type RendererHitboxComponent
- type RigidbodyComponent
- type TouchInputComponent
- type VelocityComponent
- type World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CameraComponent ¶
type CameraComponent struct {
OffsetX, OffsetY float64
}
type Entity ¶
type Entity struct { Name string Tags map[string]struct{} Level Level Position Position Static bool HatVelocityComponent bool VelocityComponent VelocityComponent HatHitboxComponent bool HitboxComponent HitboxComponent HatRendererHitboxComponent bool RendererHitboxComponent RendererHitboxComponent HatRigidbodyComponent bool RigidbodyComponent RigidbodyComponent HatKeyboardMovementComponent bool KeyboardMovementComponent KeyboardMovementComponent HatTouchInputComponent bool TouchInputComponent TouchInputComponent HatInteraktionComponent bool InteraktionComponent InteraktionComponent HatMoveToPositionComponent bool MoveToPositionComponent MoveToPositionComponent HatMoveToPositionsComponent bool MoveToPositionsComponent MoveToPositionsComponent HatPathfinderComponent bool PathfinderComponent PathfinderComponent HatPortalComponent bool PortalComponent PortalComponent HatCameraComponent bool CameraComponent CameraComponent HatRenderComponent bool RenderComponent RenderComponent HatRectRenderComponent bool RectRenderComponent RectRenderComponent HatKreisRenderComponent bool KreisRenderComponent KreisRenderComponent HatImageRenderComponent bool ImageRenderComponent ImageRenderComponent }
type HitboxComponent ¶
type ImageRenderComponent ¶
type InteraktionComponent ¶
type KeyboardMovementComponent ¶
type KeyboardMovementComponent struct {
Unten, Oben, Links, Rechts ebiten.Key
Speed float64
}
type KreisRenderComponent ¶
type MoveToPositionComponent ¶
type PathfinderComponent ¶
type PathfinderComponent struct { DestinationPosition Position DestinationLevel Level Speed float64 State PathfinderComponentState }
type PathfinderComponentState ¶
type PathfinderComponentState byte
const ( PathfinderComponentStateNotStarted PathfinderComponentState = iota PathfinderComponentStateMovingToPortal PathfinderComponentStateMovingToDestination PathfinderComponentStateNoPath PathfinderComponentStateArrived )
type PortalComponent ¶
type RectRenderComponent ¶
type RenderComponent ¶
type RenderComponent struct {
Layer RenderLayer
}
type RenderLayer ¶
type RenderLayer int
type RendererHitboxComponent ¶
type RendererHitboxComponent struct{}
type RigidbodyComponent ¶
type RigidbodyComponent struct{}
type TouchInputComponent ¶
type VelocityComponent ¶
type World ¶
type World struct { Entities map[*Entity]struct{} Backgrounds map[Level]color.Color LevelNames map[Level]string // contains filtered or unexported fields }
func NewEmptyWorld ¶
func NewEmptyWorld() *World
func (*World) FindEntitiesWithTag ¶
func (*World) FindEntityWithName ¶
func (*World) SpawnEntity ¶
Click to show internal directories.
Click to hide internal directories.