asset

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImgWhiteSquare = newFilledImage(4, 4, color.White)
	ImgBlackSquare = newFilledImage(4, 4, color.Black)

	ImgWater = newFilledImage(16, 16, ColorWater)

	ImgCrosshair = LoadImage("image/crosshair.png")

	ImgFish = LoadImage("image/cozy-fishing/global.png")

	ImgPeepBody       = LoadImage("image/cozy-people/characters/char_all.png")
	ImgPeepGlasses    = LoadImage("image/cozy-people/acc/glasses.png")
	ImgPeepSunglasses = LoadImage("image/cozy-people/acc/glasses_sun.png")
	ImgPeepShirt      = LoadImage("image/cozy-people/clothes/basic.png")
	ImgPeepSpaghetti  = LoadImage("image/cozy-people/clothes/spaghetti.png")
	ImgPeepPants      = LoadImage("image/cozy-people/clothes/pants.png")
)
View Source
var (
	SoundMusic *audio.Player

	SoundFire *audio.Player

	SoundHit1 *audio.Player
	SoundHit2 *audio.Player
	SoundHit3 *audio.Player

	SoundLevelUp *audio.Player

	SoundDie *audio.Player
)
View Source
var ColorWater = color.RGBA{96, 160, 168, 255}

Functions

func BeachChairBottom

func BeachChairBottom(c int) *ebiten.Image

func BeachChairTop

func BeachChairTop(c int) *ebiten.Image

func FishImage

func FishImage(i int) *ebiten.Image

func FishTileXY

func FishTileXY(x, y int) *ebiten.Image

func LoadBytes

func LoadBytes(p string) []byte

func LoadImage

func LoadImage(p string) *ebiten.Image

func LoadOGG

func LoadOGG(context *audio.Context, p string, loop bool) *audio.Player

func LoadSounds

func LoadSounds(ctx *audio.Context)

func LoadWAV

func LoadWAV(context *audio.Context, p string) *audio.Player

func PeepImage

func PeepImage(tileset *ebiten.Image, i int, frame int) *ebiten.Image

func TrashImage

func TrashImage() *ebiten.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

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