app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

Game implements ebiten.Game interface

func New

func New(doomGame doom.GameEngine, scale int) *Game

New creates a new game instance

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

Draw renders the game screen

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)

Layout returns the screen dimensions

func (*Game) Scale

func (g *Game) Scale() int

Scale returns the scale factor

func (*Game) ScreenHeight

func (g *Game) ScreenHeight() int

ScreenHeight returns the screen height

func (*Game) ScreenWidth

func (g *Game) ScreenWidth() int

ScreenWidth returns the screen width

func (*Game) Update

func (g *Game) Update() error

Update is called every tick (1/60 second)

Jump to

Keyboard shortcuts

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