assets

package
v0.0.0-...-e9df9b9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 15 Imported by: 0

README

Assets

Images

Textures are from https://matlib.gpuopen.com/main/materials/all, they are partial and stored in /assets/images folder.

Documentation

Index

Constants

View Source
const (
	ShapeSize    = logic.ScreenHeight
	ShapeOffsetX = logic.ScreenWidth/2 - ShapeSize/2
)
View Source
const (
	ShapeIndexPortal = iota
	ShapeIndexLine
	ShapeIndexCross
	ShapeIndexEmptyLine
	ShapeIndexEmptyCross
	ShapeIndexHalfQuad
	ShapeIndexThinEmptyCross
	ShapeIndexPizzaSlice
)

Variables

View Source
var (
	ColorNone  = color.RGBA{0, 0, 0, 0}
	ColorSouth = color.RGBA{
		R: 255,
		G: 16,
		B: 0,
		A: 255,
	}
	ColorNorth = color.RGBA{
		R: 51,
		G: 0,
		B: 128,
		A: 255,
	}
)
View Source
var (
	DefaultFontFace      font.Face
	DefaultSmallFontFace font.Face
)
View Source
var (
	WallTextures []*ebiten.Image
	CursorImage  *ebiten.Image

	SplashImage *ebiten.Image
)
View Source
var (
	PlayerShader *ebiten.Shader

	TunnelShader *ebiten.Shader

	RingShader *ebiten.Shader

	CircleShader *ebiten.Shader
)
View Source
var (
	ShapeCircleMaskImage = ebiten.NewImage(ShapeSize, ShapeSize)
)
View Source
var (
	TriangleShapes = [][]*geom.Triangle{
		ShapeIndexPortal:         trianglesPortal,
		ShapeIndexLine:           trianglesLine,
		ShapeIndexCross:          trianglesCross,
		ShapeIndexEmptyLine:      trianglesEmptyLine,
		ShapeIndexEmptyCross:     trianglesEmptyCross,
		ShapeIndexHalfQuad:       trianglesHalfQuad,
		ShapeIndexThinEmptyCross: trianglesThinEmptyCross,
		ShapeIndexPizzaSlice:     trianglesPizzaSlice,
	}
)

Functions

func PlayDashSound

func PlayDashSound()

func PlayDeathSound

func PlayDeathSound()

func PlayPortalSound

func PlayPortalSound()

func PlaySlideSound

func PlaySlideSound()

func ReplayGameMusic

func ReplayGameMusic()

func ResumeGameMusic

func ResumeGameMusic()

func StopDashSound

func StopDashSound()

func StopGameMusic

func StopGameMusic()

func StopSlideSound

func StopSlideSound()

Types

type BoneSet

type BoneSet byte
const (
	BoneSetFalling BoneSet = iota
	BoneSetSliding
	BoneSetDashing
)

func (BoneSet) GetBones

func (b BoneSet) GetBones() *Bones

type Bones

type Bones struct {
	LegLeft0  []float32
	LegLeft1  []float32
	LegRight0 []float32
	LegRight1 []float32
	ArmLeft0  []float32
	ArmLeft1  []float32
	ArmRight0 []float32
	ArmRight1 []float32
}

func (*Bones) AppendUniforms

func (b *Bones) AppendUniforms(uniforms map[string]interface{}) map[string]interface{}

Jump to

Keyboard shortcuts

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