Add gravity and player-seeking AI to zombies

This commit is contained in:
Master290 2026-06-27 21:16:39 +03:00
parent 7af0acd3a3
commit 09a694daf5
5 changed files with 89 additions and 7 deletions

View file

@ -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 {