character

package
v0.0.0-...-57f8e72 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bullet

type Bullet struct {
	Position  *rl.Rectangle
	IsSpawned bool
	Speed     int32
	Size      int32
	Color     color.RGBA
	Direction int32
	Type      gameobject.ObjectType
	// contains filtered or unexported fields
}

func InitBullet

func InitBullet(X, Y float32, Direction int32, Issuer gameobject.ObjectType) *Bullet

func (*Bullet) DrawObject

func (bullet *Bullet) DrawObject()

func (*Bullet) GetHandlerByType

func (bullet *Bullet) GetHandlerByType(obType gameobject.ObjectType) gameobject.CollisionHandlerFunction

func (Bullet) GetMarkedForDestroy

func (bullet Bullet) GetMarkedForDestroy() bool

func (Bullet) GetObjectType

func (bullet Bullet) GetObjectType() gameobject.ObjectType

func (Bullet) GetObjectTypeString

func (bullet Bullet) GetObjectTypeString() string

func (Bullet) GetPosition

func (bullet Bullet) GetPosition() rl.Rectangle

func (Bullet) GetUuid

func (bullet Bullet) GetUuid() string

func (*Bullet) RenderBullet

func (bullet *Bullet) RenderBullet() bool

func (*Bullet) SetMarkedForDestroy

func (bullet *Bullet) SetMarkedForDestroy()

type Point

type Point struct {
	X int32
	Y int32
}

Jump to

Keyboard shortcuts

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