game

package
v1.95.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package game はメインゲームの実装を提供する。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWorld

func InitWorld(minGameWidth int, minGameHeight int) (w.World, error)

InitWorld はゲームワールドを初期化する

Types

type MainGame

type MainGame struct {
	World        w.World
	StateMachine es.StateMachine
}

MainGame はebiten.Game interfaceを満たす

func (*MainGame) Draw

func (game *MainGame) Draw(screen *ebiten.Image)

Draw はゲームの描画処理を行う

func (*MainGame) Layout

func (game *MainGame) Layout(_, _ int) (int, int)

Layout はinterface methodのため、シグネチャは変更できない

func (*MainGame) Update

func (game *MainGame) Update() error

Update はゲームの更新処理を行う

Jump to

Keyboard shortcuts

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