Documentation
¶
Index ¶
Constants ¶
View Source
const ZOMBIE_FOLLOW_RANGE int64 = 25
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { ID EntityId OldChunkX int64 OldChunkY int64 Inventory *inventory.Inventory Conn net.Conn LastMovementTime time.Time LastAttackTime time.Time Username string Gold int64 HP int64 ST int64 Speed byte // how many blocks per second the player can travel (water speed is Speed/2) AttackSpeed float32 // how many times the player can attack per second Hostile bool }
type Position ¶
func NewPositionComponent ¶
type Sprite ¶
type Sprite struct { Character rune Foreground tcell.Color Background tcell.Color }
func NewSpriteComponent ¶
Click to show internal directories.
Click to hide internal directories.