asset

package
v0.0.0-...-8d8ddab Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImgRobotPart

func ImgRobotPart(p RobotPart) *ebiten.Image

func LoadSounds

func LoadSounds() error

func PlaySound

func PlaySound(s Sound)

func StopSound

func StopSound(s Sound)

Types

type Img

type Img string
const (
	ImgGameplayBg       Img = "g_bg.png"
	ImgGameplayRobot    Img = "g_robot.png"
	ImgPrologueBg       Img = "p_bg.png"
	ImgPrologueDoctor   Img = "p_doctor.png"
	ImgPrologueMsg1     Img = "p_msg1.png"
	ImgPrologueMsg2     Img = "p_msg2.png"
	ImgResultBg         Img = "r_bg.png"
	ImgResultEnemy      Img = "r_enemy.png"
	ImgResultExplosion  Img = "r_explosion.png"
	ImgResultFlame      Img = "r_flame.png"
	ImgResultMsgfailed  Img = "r_msgfailed.png"
	ImgResultMsgvictory Img = "r_msgvictory.png"
	ImgResultToreplay   Img = "r_toreplay.png"
	ImgTitleBg          Img = "t_bg.png"
	ImgTitleRobot       Img = "t_robot.png"
)

func (Img) MustImage

func (i Img) MustImage() *ebiten.Image

type RobotPart

type RobotPart int
const (
	RobotPartBody RobotPart = iota
	RobotPartRightArm
	RobotPartLeftArm
	RobotPartTNT
	RobotPartEbitenN
	RobotPartEbitenS
	RobotPartLeftLeg
	RobotPartRightLeg
)

func (RobotPart) SubImageRect

func (p RobotPart) SubImageRect() image.Rectangle

type Sound

type Sound int
const (
	BGM1 Sound = iota
	BGM2
	BGM3
	SEFire
	SEFly
	SEExplosion
	SECombined
)

Jump to

Keyboard shortcuts

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