gameobjtype

package
v0.0.0-...-7f6afe6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LongLife = 3600 * 24 * 365
View Source
const (
	// MaxRadius need quad tree boundary
	MaxRadius = 32
)

Variables

View Source
var Attrib = [GameObjType_Count]struct {
	Radius         float64
	RadiusToCenter float64 // from main ball center
	SpeedLimit     float64 // speed pixel/sec or rad/sec
	FramePerSec    float64 // animation speed
	LifeTick       int64
}{
	Ball:          {16, 0, 300, 0, int64(time.Second) * LongLife},
	Shield:        {8, 28, math.Pi, 0, int64(time.Second) * LongLife},
	SuperShield:   {8, 48, math.Pi, 30, int64(time.Second) * 60},
	HommingShield: {8, 0, 50, 30, int64(time.Second) * 60},
	Bullet:        {8, 0, 500, 0, int64(time.Second) * LongLife},
	SuperBullet:   {16, 0, 600, 30, int64(time.Second) * LongLife},
	HommingBullet: {8, 0, 300, 30, int64(time.Second) * 60},
}

Functions

func InteractTo

func InteractTo(srcType, dstType GameObjType) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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