ordoor

package
v0.0.0-...-16767da Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

package ordoor implements the full WH40K.EXE functionality, and is used from cmd/ordoor/main.go

Entrypoint is Run()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(configFile string, overrideX, overrideY int) error

Types

type Ordoor

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

func (*Ordoor) Cursor

func (o *Ordoor) Cursor() (*ebiten.Image, *ebiten.DrawImageOptions, error)

func (*Ordoor) DisplayImageFor

func (o *Ordoor) DisplayImageFor(d time.Duration, name string) error

func (*Ordoor) Draw

func (o *Ordoor) Draw(screen *ebiten.Image) error

func (*Ordoor) PlayMusic

func (o *Ordoor) PlayMusic(name string) error

Only one music track can play at a time. This is handled at the toplevel. FIXME: should take references from Sounds.dat FIXME: music probably properly belongs to flow. This package can just do initialization and wire the flow to the ship?

func (*Ordoor) PlaySkippableVideo

func (o *Ordoor) PlaySkippableVideo(name string)

func (*Ordoor) PlayUnskippableVideo

func (o *Ordoor) PlayUnskippableVideo(name string)

func (*Ordoor) PlayVideo

func (o *Ordoor) PlayVideo(name string, skippable bool)

func (*Ordoor) Run

func (o *Ordoor) Run() error

func (*Ordoor) Update

func (o *Ordoor) Update(screenX, screenY int) error

Jump to

Keyboard shortcuts

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