constants

package
v0.0.0-...-a481a7d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: AGPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// ScreenWidth is width of screen in number of pixels
	ScreenWidth = 320
	// ScreenHeight is height of screen in number of pixels
	ScreenHeight = 240

	// MapWidth is width of the map in number of columns
	MapWidth = ScreenWidth / PlayerWidth
	// MapHeight is height of the map in number of rows
	MapHeight = ScreenHeight / PlayerWidth

	SizeFactor      = 1.5
	GameTitle       = "YasamSim"
	Gravity         = 0.1
	JumpSpeed       = 2
	MovementSpeed   = 2
	ProjectileSpeed = 2
	// LayerCollisionDifference is half the thickness of every object.
	LayerCollisionDifference = 5
	ProjectileLatency        = 8
	CollisionDistance        = 30

	KharediWidth     = 16
	KharediHeight    = 24
	PlayerWidth      = 16
	PlayerHeight     = 24
	ProjectileWidth  = 8
	ProjectileHeight = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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