portal

package
v0.0.0-...-83b3ea5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Portal

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

Contient les deux teleporteur

func (*Portal) CanUseTeleporter

func (p *Portal) CanUseTeleporter(playeurX, playeurY int) (possible bool, newX int, newY int)

renvoie si le joueur peut se téléporter et où

func (*Portal) Draw

func (p *Portal) Draw(screen *ebiten.Image, camXPos, camYPos int, Xshift, Yshift int, width, height int, FluideX, FluideY bool)

func (*Portal) Init

func (p *Portal) Init()

func (*Portal) Interact

func (p *Portal) Interact(playeurX, playeurY int)

Permet de placer ou enlever un téléporteur

func (*Portal) Update

func (p *Portal) Update()

Jump to

Keyboard shortcuts

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