r6

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

README

r6 Go Bindings

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-only

SPDX-License-Identifier: GPL-3.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor added in v0.0.3

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

func (*Actor) GetPosition added in v0.0.3

func (a *Actor) GetPosition() Vec2

func (*Actor) GetSize added in v0.0.3

func (a *Actor) GetSize() Vec2

func (*Actor) SetPosition added in v0.0.3

func (a *Actor) SetPosition(x, y float32)

func (*Actor) Translate added in v0.0.3

func (a *Actor) Translate(x, y float32)

type Game

type Game struct{}

func (*Game) GetActor added in v0.0.3

func (g *Game) GetActor(id string) *Actor

func (*Game) GetFrameDeltaTime added in v0.0.3

func (g *Game) GetFrameDeltaTime() float32

func (*Game) GetVirtualWindowSize added in v0.0.3

func (g *Game) GetVirtualWindowSize() Vec2

func (*Game) Init

func (g *Game) Init() int

func (*Game) IsKeyPressed added in v0.0.3

func (g *Game) IsKeyPressed(key int) bool

func (*Game) LoadResources added in v0.0.3

func (g *Game) LoadResources(filename string) bool

func (*Game) Run

func (g *Game) Run() bool

func (*Game) SetActiveScene added in v0.0.3

func (g *Game) SetActiveScene(id string)

func (*Game) Shutdown

func (g *Game) Shutdown() int

type Vec2 added in v0.0.3

type Vec2 struct {
	X float32
	Y float32
}

Jump to

Keyboard shortcuts

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