application

package
v0.0.0-...-ee5ac80 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MAP_HEIGHT = 15 // マップ全体の縦幅
View Source
const MAP_WIDTH = 30 // マップ全体の横幅

Variables

This section is empty.

Functions

func CreateMap

func CreateMap() *model.Map

新規マップを生成する

func CreatePlayer

func CreatePlayer() *model.Player

新規プレイヤーを作成する

func DrawMap

func DrawMap(m *model.Map, screen *ebiten.Image)

マップを描画する

func DrawPlayer

func DrawPlayer(player *model.Player, screen *ebiten.Image)

プレイヤーを描画する

func InitPlayerPosition

func InitPlayerPosition(player *model.Player)

プレイヤーの初期位置を決める関数

func SelectTileFromMap

func SelectTileFromMap() model.Position

マップの中からランダムなタイルを1枚選択する

Types

This section is empty.

Jump to

Keyboard shortcuts

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