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.
Click to show internal directories.
Click to hide internal directories.