piebiten

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package piebiten enables running your game using the Ebitengine backend.

Ebitengine is a cross-platform game engine that supports Windows, macOS, Linux, FreeBSD, web browsers, Android, iOS, and even Nintendo Switch.

To launch your game, use Run or RunOrErr.

This package also provides advanced functions for integrating Pi with your own Ebitengine-based game, such as CopyCanvasToEbitenImage.

Index

Constants

This section is empty.

Variables

View Source
var RememberWindow = false

RememberWindow determines whether the game should open at its last window position, size, and monitor when set to true

Functions

func CopyCanvasToEbitenImage

func CopyCanvasToEbitenImage(canvas pi.Canvas, dst *ebiten.Image)

CopyCanvasToEbitenImage copies the canvas to dst using the current palette in pi.Palette and the palette mapping in pi.PaletteMapping.

func Run

func Run()

Run starts the Ebitengine backend. It panics if something goes wrong.

If you want to handle errors gracefully, use RunOrErr instead.

This function must be called from the first goroutine (the main thread).

func RunOrErr

func RunOrErr() error

RunOrErr starts the Ebitengine backend and returns an error if something goes wrong.

This function must be called from the first goroutine (the main thread).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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