Documentation ¶
Index ¶
- Constants
- type Dir
- type Field
- func (f *Field) Conflicts(rect image.Rectangle, dir Dir) bool
- func (f *Field) Draw(screen *ebiten.Image)
- func (f *Field) InElevator(rect image.Rectangle) bool
- func (f *Field) StartPosition() (x, y int)
- func (f *Field) TouchesElevator(rect image.Rectangle, dir Dir) bool
- func (f *Field) TouchesGoal(rect image.Rectangle, dir Dir) bool
- func (f *Field) Update(context scene.Context)
- type GameScene
- type Object
- type ObjectElevator
- type ObjectFF
- type ObjectGoal
- type ObjectWall
- type Player
Constants ¶
View Source
const PlayerUnit = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) StartPosition ¶
type ObjectElevator ¶
type ObjectElevator struct {
// contains filtered or unexported fields
}
func (*ObjectElevator) Draw ¶
func (o *ObjectElevator) Draw(screen *ebiten.Image)
func (*ObjectElevator) OverlapsWithDir ¶
func (o *ObjectElevator) OverlapsWithDir(rect image.Rectangle, dir Dir) bool
func (*ObjectElevator) Update ¶
func (o *ObjectElevator) Update(context scene.Context)
type ObjectFF ¶
type ObjectFF struct {
// contains filtered or unexported fields
}
func (*ObjectFF) OverlapsWithDir ¶
type ObjectGoal ¶
type ObjectGoal struct {
// contains filtered or unexported fields
}
func (*ObjectGoal) Draw ¶
func (o *ObjectGoal) Draw(screen *ebiten.Image)
func (*ObjectGoal) OverlapsWithDir ¶
func (o *ObjectGoal) OverlapsWithDir(rect image.Rectangle, dir Dir) bool
func (*ObjectGoal) Update ¶
func (o *ObjectGoal) Update(context scene.Context)
type ObjectWall ¶
type ObjectWall struct {
// contains filtered or unexported fields
}
func (*ObjectWall) Draw ¶
func (o *ObjectWall) Draw(screen *ebiten.Image)
func (*ObjectWall) OverlapsWithDir ¶
func (o *ObjectWall) OverlapsWithDir(rect image.Rectangle, dir Dir) bool
func (*ObjectWall) Update ¶
func (o *ObjectWall) Update(context scene.Context)
Click to show internal directories.
Click to hide internal directories.