particles

package
v0.0.0-...-185e3b9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Particle

type Particle struct {
	// contains filtered or unexported fields
}

func (*Particle) UpdateRandomDir

func (p *Particle) UpdateRandomDir()

func (*Particle) UpdateUpDir

func (p *Particle) UpdateUpDir()

type ParticlesSystem

type ParticlesSystem struct {
	PosX          int
	PosY          int
	Creating      bool
	CurrentSprite *ebiten.Image
	// contains filtered or unexported fields
}

func NewExplosion

func NewExplosion(imgExplosion *ebiten.Image) *ParticlesSystem

func NewSmoke

func NewSmoke(imgSmoke *ebiten.Image) *ParticlesSystem

func (*ParticlesSystem) Draw

func (p *ParticlesSystem) Draw(screen *ebiten.Image)

func (*ParticlesSystem) MoveTo

func (p *ParticlesSystem) MoveTo(PosX int, PosY int)

func (*ParticlesSystem) SetImg

func (p *ParticlesSystem) SetImg(img *ebiten.Image)

func (*ParticlesSystem) UpdateExpanded

func (p *ParticlesSystem) UpdateExpanded() error

func (*ParticlesSystem) UpdateUp

func (p *ParticlesSystem) UpdateUp(randomWidth int) error

Jump to

Keyboard shortcuts

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