Documentation ¶
Index ¶
- Variables
- func Destroy(e *donburi.Entry)
- type ActiveData
- type AlphaOverride
- type Animation
- type AnimatorData
- type BoundsData
- type BriefZoomData
- type CameraData
- type ColliderData
- type Collision
- type CollisionKey
- type ColorBlendOverride
- type ColorOverride
- type Debug
- type DebugUIData
- type DestroyedData
- type DialogOptionData
- type Dimensions
- type GameData
- type InputData
- type LayerData
- type LevelData
- type MovementBoundsData
- type POIData
- type ParticleData
- type PassageData
- type PreviousLevel
- type SpriteData
- type SpritePivot
- type StackedViewData
- type TagData
- type TextData
- type TextSize
- type TimeToLiveData
- type VelocityData
- type ViewportBounds
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActiveOptionIndicator = donburi.NewTag() Dialog = donburi.NewTag() DialogCamera = donburi.NewTag() DialogLog = donburi.NewTag() DialogLogCamera = donburi.NewTag() RecentParagraph = donburi.NewTag() // InnerCamera means the camera is placed inside another camera. InnerCamera = donburi.NewTag() LevelCamera = donburi.NewTag() Character = donburi.NewTag() Inventory = donburi.NewTag() ActivePOI = donburi.NewTag() POIImage = donburi.NewTag() )
View Source
var Active = donburi.NewComponentType[ActiveData]()
View Source
var Animator = donburi.NewComponentType[AnimatorData]()
View Source
var Bounds = donburi.NewComponentType[BoundsData]()
View Source
var BriefZoom = donburi.NewComponentType[BriefZoomData]()
View Source
var Camera = donburi.NewComponentType[CameraData]()
View Source
var Collider = donburi.NewComponentType[ColliderData]()
View Source
var DebugUI = donburi.NewComponentType[DebugUIData]()
View Source
var Destroyed = donburi.NewComponentType[DestroyedData]()
View Source
var DialogOption = donburi.NewComponentType[DialogOptionData]()
View Source
var Game = donburi.NewComponentType[GameData]()
View Source
var Input = donburi.NewComponentType[InputData]()
View Source
var Layer = donburi.NewComponentType[LayerData]()
View Source
var Level = donburi.NewComponentType[LevelData]()
View Source
var MovementBounds = donburi.NewComponentType[MovementBoundsData]()
View Source
var POI = donburi.NewComponentType[POIData]()
View Source
var Particle = donburi.NewComponentType[ParticleData]()
View Source
var Passage = donburi.NewComponentType[PassageData]()
View Source
var Sprite = donburi.NewComponentType[SpriteData]()
View Source
var StackedView = donburi.NewComponentType[StackedViewData]()
View Source
var Tag = donburi.NewComponentType[TagData]()
View Source
var Text = donburi.NewComponentType[TextData]()
View Source
var TimeToLive = donburi.NewComponentType[TimeToLiveData]()
View Source
var Velocity = donburi.NewComponentType[VelocityData]()
Functions ¶
Types ¶
type ActiveData ¶
type ActiveData struct {
Active bool
}
func (*ActiveData) Toggle ¶
func (a *ActiveData) Toggle()
type AlphaOverride ¶
type AlphaOverride struct {
A float64
}
type Animation ¶
type AnimatorData ¶
func (*AnimatorData) SetAnimation ¶
func (a *AnimatorData) SetAnimation(name string, anim *Animation)
type BoundsData ¶
type BriefZoomData ¶
type BriefZoomData struct {
OriginCamera *CameraData
}
type CameraData ¶
type CameraData struct { Viewport *ebiten.Image ViewportPosition math.Vec2 ViewportZoom float64 ViewportTarget *donburi.Entry ViewportBounds ViewportBounds Root *donburi.Entry Index int Mask *ebiten.Image TransitionOverlay *ebiten.Image TransitionAlpha float64 ColorOverride *ColorOverride AlphaOverride *AlphaOverride }
func (CameraData) Order ¶
func (d CameraData) Order() int
func (*CameraData) SetViewportPosition ¶
func (d *CameraData) SetViewportPosition(pos math.Vec2)
func (*CameraData) WorldPositionToViewportPosition ¶
func (d *CameraData) WorldPositionToViewportPosition(e *donburi.Entry) math.Vec2
type ColliderData ¶
type ColliderData struct { Rect engine.Rect Layer domain.ColliderLayer CollidesWith map[CollisionKey]Collision JustCollidedWith map[CollisionKey]struct{} JustOutOfCollisionWith map[CollisionKey]struct{} }
type CollisionKey ¶
type CollisionKey struct { Layer domain.ColliderLayer Other donburi.Entity }
type ColorBlendOverride ¶
type ColorBlendOverride struct { // Value is in range [0, 1] // 0 is monochrome, 1 is the original color Value float64 }
type ColorOverride ¶
type ColorOverride struct {
R, G, B float64
}
type DebugUIData ¶
type DestroyedData ¶
type DestroyedData struct{}
type DialogOptionData ¶
func (DialogOptionData) Order ¶
func (d DialogOptionData) Order() int
type Dimensions ¶
type GameData ¶
type GameData struct { Story *domain.Story // Can be saved to go "back" to the previous level, keeping the player's position PreviousLevel *PreviousLevel Dimensions Dimensions Debug Debug SwitchToTitle func() }
func MustFindGame ¶
type MovementBoundsData ¶
type MovementBoundsData struct {
Range engine.FloatRange
}
type PassageData ¶
type PreviousLevel ¶
type PreviousLevel struct { Name string CharacterPosition *domain.CharacterPosition }
type SpriteData ¶
type SpriteData struct { Image *ebiten.Image Pivot SpritePivot // The original rotation of the sprite // "Facing right" is considered 0 degrees OriginalRotation float64 FlipY bool Hidden bool ColorOverride *ColorOverride AlphaOverride *AlphaOverride ColorBlendOverride *ColorBlendOverride }
func (*SpriteData) Hide ¶
func (s *SpriteData) Hide()
func (*SpriteData) Show ¶
func (s *SpriteData) Show()
type SpritePivot ¶
type SpritePivot int
const ( SpritePivotTopLeft SpritePivot = iota SpritePivotCenter )
type StackedViewData ¶
type TimeToLiveData ¶
type VelocityData ¶
type ViewportBounds ¶
type ViewportBounds struct { X *engine.FloatRange Y *engine.FloatRange }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.