wall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WallSetFlat = []WallInfo{
	wallLoose,
	wallSemitight,
	wallSemiloose,
	wallAbovesurface,
}
View Source
var WallSetFlatHard = []WallInfo{
	wallTight,
	wallAbovesurface,
}
View Source
var WallSetFly1 = []WallInfo{
	wallLooseFly1,
	wallSemiloose1,
	wallMediumFly1,
}
View Source
var WallSetFly2 = []WallInfo{
	wallTightFly1,
}
View Source
var WallSetFly3 = []WallInfo{
	wallLooseFly3,
	wallLooseRow3,
	wallTightFall2,
}
View Source
var WallSetFly4 = []WallInfo{
	wallLoose4,
}
View Source
var WallSetFly5 = []WallInfo{}

Functions

This section is empty.

Types

type Wall

type Wall struct {
	X        float64
	Y        float64
	IsInDirt bool // special wall that is shorter at the bottom to player doesn't collide with it
}

Wall describes how a wall is spawned

type WallInfo

type WallInfo struct {
	WallList           []Wall
	TimeTillNext       int
	TimeTillNextRandom int
}

WallInfo is the data structure used to describe a spawned in piece of wall data

Jump to

Keyboard shortcuts

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