Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BulletMover ¶
type BulletMover struct {
// contains filtered or unexported fields
}
func (*BulletMover) Update ¶
func (b *BulletMover) Update() error
type KeyboardController ¶
type KeyboardController struct {
// contains filtered or unexported fields
}
KeyboardController handles player movement
func NewKeyboardController ¶
func NewKeyboardController(container *sh2d.GameObject) *KeyboardController
func (*KeyboardController) Update ¶
func (k *KeyboardController) Update() error
type PlayerMouseController ¶
type PlayerMouseController struct {
// contains filtered or unexported fields
}
PlayerMouseController handles mouse input for the player
func NewPlayerMouseController ¶
func NewPlayerMouseController(container *sh2d.GameObject) *PlayerMouseController
NewPlayerMouseController creates a new PlayerMouseController
func (*PlayerMouseController) Draw ¶
func (controller *PlayerMouseController) Draw(screen *ebiten.Image) error
Draw draws the mouse controller
func (*PlayerMouseController) Update ¶
func (c *PlayerMouseController) Update() error
Update updates the controller every frame
Click to show internal directories.
Click to hide internal directories.