teora

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 6 Imported by: 0

README

Teora

Fan-made RPG based on GeoEXE's Gwain Saga.

NOTE: This project is neither affiliated with nor endorsed by GeoEXE.

Building

Running make should build teora without any fuss.

If necessary, you can (re)build teora's assets with make bootstrap.

However, it is recommended to build teora in debug mode using make DEBUG=1 for now. Among other things, it adds a TPS counter and builds teora as a console app so logs appear in the console (on Windows).

CGo is required, but cross-compiling from Linux to Windows works out of the box; The default Make target builds both a native and a Windows binary.

Credits

GeoEXE for creating Gwain Sage in the first place.

The following external resources are vendorised:

  • Hack: version 3.003

Documentation

Index

Constants

View Source
const Debug = false

Variables

This section is empty.

Functions

func NewIntro

func NewIntro() bento.Scene

func NewOpenWorld

func NewOpenWorld() bento.Scene

func NewStart

func NewStart() bento.Scene

Types

type Intro

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

Intro is the splash/startup screen.

func (*Intro) Draw

func (i *Intro) Draw(screen *ebiten.Image)

func (*Intro) Enter

func (i *Intro) Enter() bento.Animation

func (*Intro) Entities

func (i *Intro) Entities() []*bento.Entity

func (*Intro) Exit

func (i *Intro) Exit() bento.Animation

func (*Intro) Update

func (i *Intro) Update(stage *bento.Stage) error

type OpenWorld

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

func (*OpenWorld) Draw

func (w *OpenWorld) Draw(screen *ebiten.Image)

func (*OpenWorld) Enter

func (w *OpenWorld) Enter() bento.Animation

func (*OpenWorld) Entities

func (w *OpenWorld) Entities() []*bento.Entity

func (*OpenWorld) Exit

func (w *OpenWorld) Exit() bento.Animation

func (*OpenWorld) Update

func (w *OpenWorld) Update(stage *bento.Stage) error

type Scrollbox

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

Scrollbox is a box with scrolling text inside.

func NewScrollbox

func NewScrollbox(stream bento.Stream, font *bento.Font) *Scrollbox

NewScrollbox creates a new scrollbox from a stream.

func (*Scrollbox) Done

func (sb *Scrollbox) Done() bool

Done checks if the scrollbox has finished scrolling all text.

func (*Scrollbox) Render

func (sb *Scrollbox) Render(entity *bento.Entity, size image.Point) *ebiten.Image

func (*Scrollbox) Update

func (sb *Scrollbox) Update() error

type Start

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

func (*Start) Draw

func (s *Start) Draw(screen *ebiten.Image)

func (*Start) Enter

func (s *Start) Enter() bento.Animation

func (*Start) Entities

func (s *Start) Entities() []*bento.Entity

func (*Start) Exit

func (s *Start) Exit() bento.Animation

func (*Start) Update

func (s *Start) Update(stage *bento.Stage) error

Directories

Path Synopsis
assets handles loading of assets from the embedded filesystem.
assets handles loading of assets from the embedded filesystem.

Jump to

Keyboard shortcuts

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