dummy

package
v0.0.0-...-1f00af5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dummy implements a dummy doodads.Drawing.

Package dummy implements a dummy doodads.Drawing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawing

type Drawing struct {
	Drawing *doodads.Drawing
}

Drawing is a dummy doodads.Drawing that has no data.

func NewDrawing

func NewDrawing(id string, doodad *doodads.Doodad) *Drawing

NewDrawing creates a new dummy drawing.

func NewPlayer

func NewPlayer() *Drawing

NewPlayer creates a dummy player object.

func (*Drawing) Grounded

func (d *Drawing) Grounded() bool

Grounded satisfies the collision.Actor interface.

func (*Drawing) Hitbox

func (d *Drawing) Hitbox() render.Rect

Hitbox satisfies the collision.Actor interface.

func (*Drawing) MoveTo

func (d *Drawing) MoveTo(to render.Point)

MoveTo changes the drawing's position.

func (*Drawing) Position

func (d *Drawing) Position() render.Point

Position satisfies the collision.Actor interface.

func (*Drawing) SetGrounded

func (d *Drawing) SetGrounded(v bool)

SetGrounded satisfies the collision.Actor interface.

func (*Drawing) Size

func (d *Drawing) Size() render.Rect

Size returns the size of the underlying doodads.Drawing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL