Add goroutines to map renderer

This commit is contained in:
2024-08-29 21:12:18 +02:00
parent 696b827a7d
commit 842c41fdca
5 changed files with 160 additions and 62 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ func initPlayerColors() {
}
}
func handleInput(keyboard []uint8, bullets *[]*Bullet, player *Player, gameMap *GameMap, format *sdl.PixelFormat, players *[]*Player) (bool, bool) {
func handleInput(keyboard []uint8, bullets *[]*Bullet, player *Player, gameMap *GameMap, players *[]*Player) (bool, bool) {
if !player.local || player.shields <= 0 || player.shields > MaxShields {
return true, false
}