node

package
v0.0.0-...-8db07eb Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package node implements standard render-time aggregates. Render-time aggregates should be synced with a typical logic-time models only with some system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrawFunc

type DrawFunc func(gid.ID, *ebiten.Image)

DrawFunc is a callback for drawing specific node type.

type Node

type Node struct {
	Draw     DrawFunc
	Position image.Point
	Size     image.Point
	ZIndex   int
}

Node is a basic render-time component. All render-time repositories should create a node inside.

type Sprite

type Sprite struct {
	Image    *ebiten.Image
	Position image.Point
	ZIndex   int
	Mirror   bool
}

Sprite is a basic useful render-time aggregate that incapsulate an image rendering.

Jump to

Keyboard shortcuts

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