Add gravity and player-seeking AI to zombies
This commit is contained in:
parent
7af0acd3a3
commit
09a694daf5
5 changed files with 89 additions and 7 deletions
|
|
@ -44,6 +44,8 @@ func (h *handler) serve() {
|
|||
defer cancel() // stops the streamer when the read loop ends
|
||||
h.ctx = ctx
|
||||
|
||||
defer h.srv.RemovePlayerPosition(h.conn.Profile.Name)
|
||||
|
||||
for {
|
||||
pkt, err := h.conn.ReadPacket()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue