game

package
v0.0.0-...-dfcd92b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type End

type End struct{}

End is the end of a game.

func (End) Render

func (End) Render()

Render ends the game.

type Renderer

type Renderer interface {
	Render()
}

Renderer renders something.

type Scene

type Scene struct {
	Image   string
	Body    string
	Actions map[string]Renderer
}

Scene is a game scene.

func (*Scene) Render

func (s *Scene) Render()

Render prints the scene to the terminal.

Jump to

Keyboard shortcuts

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