Documentation
¶
Index ¶
Constants ¶
View Source
const ( EVENT_PlayerMove = 1 EVENT_PlayerJoined = 2 EVENT_PlayerId = 3 EVENT_PlayerDead = 4 EVENT_PlayerShoot = 5 EVENT_PlayerKey = 6 EVENT_PlayerLeave = 7 EVENT_NewBullet = 8 EVENT_NewPeon = 9 )
View Source
const ( KEY_Up = 1 KEY_Down = 2 KEY_Left = 3 KEY_Right = 4 KEY_RightUp = 5 KEY_RightDown = 6 KEY_LeftUp = 7 KEY_LeftDown = 8 KEY_Space = 9 )
View Source
const MAP_SIZE_X = 500
View Source
const MAP_SIZE_Y = 500
Variables ¶
This section is empty.
Functions ¶
func LevelRoutine ¶
Types ¶
type Collision ¶
func NewCollisionCenter ¶
func NewCollisionCenter() (collision *Collision)
func (*Collision) CollisionRoutine ¶
func (c *Collision) CollisionRoutine()
type Room ¶
type Room struct {
Name string
Map Map
InChannel chan string
OutChannel chan string
InPlayer chan *Player
OutPlayer chan *Player
EntityChan chan Event
// contains filtered or unexported fields
}
func CreateRoom ¶
func (*Room) FindPlayer ¶
func (*Room) RemovePlayer ¶
Click to show internal directories.
Click to hide internal directories.