img

package
v0.0.0-...-cafaf1c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCollided

func IsCollided(hitBox1 *HitBox, position1 Position, hitBox2 *HitBox, position2 Position) bool

Types

type Asset

type Asset struct {
	Width  int32
	Height int32
	Data   []byte
}

type HitBox

type HitBox struct {
	Offset Position
	Width  int32
	Height int32
}

type ImageAsset

type ImageAsset struct {
	Asset  *Asset
	Offset []Position
	Width  int32
	Height int32
}

type Position

type Position struct {
	X int32
	Y int32
}

type Sprite

type Sprite struct {
	ImageAsset
	HitBox HitBox
}

Jump to

Keyboard shortcuts

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