MarsEngine

package module
v0.0.0-...-1c56d4d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCollision

func AddCollision(name string)

func CheckCollision

func CheckCollision() (name1, name2 string)

func CheckObjectsOnCor

func CheckObjectsOnCor(x int, y int) string

func CreateObject

func CreateObject(name string, texture string, posX float64, posY float64, angle int, demonstration bool)

func FPS

func FPS() float64

func KeyboardHandler

func KeyboardHandler(key string) bool

func MouseHandler

func MouseHandler(button string) bool

func MousePos

func MousePos() (x, y int)

func MoveObject

func MoveObject(name string, posX float64, posY float64)

func ObjectAngle

func ObjectAngle(name string) (angle int)

func ObjectDemo

func ObjectDemo(name string) bool

func ObjectPosX

func ObjectPosX(name string) float64

func ObjectPosY

func ObjectPosY(name string) float64

func ObjectSize

func ObjectSize(name string) (x, y int)

func RotateObject

func RotateObject(name string, angle int)

func SetObjectAngle

func SetObjectAngle(name string, angle int)

func SetObjectDemo

func SetObjectDemo(name string, demo bool)

func SetObjectPos

func SetObjectPos(name string, posX float64, posY float64)

func SetObjectTexture

func SetObjectTexture(name string, texture string)

func Start

func Start()

func SyncFrame

func SyncFrame()

func WindowName

func WindowName(name string)

func WindowSize

func WindowSize(width int, height int)

Types

type Game

type Game struct{}

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Game) Update

func (g *Game) Update() error

Jump to

Keyboard shortcuts

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