running on top when near a bomb

This commit is contained in:
Bluub
2021-06-18 21:34:54 +02:00
parent 5565a15ab3
commit 341e9cd302
4 changed files with 29 additions and 5 deletions
+7 -2
View File
@@ -130,12 +130,17 @@ function getPathToSafeSpace(player)
end
------ Update
function Update(mapinfo)
function Update()
log("NEW FRAME")
print("a")
local dangerMap = getDanger()
local path = getPath(0, 0, 16, 16);
--local path = getPath(0, 0, 16, 16);
local player = getPlayer();
local playerRound = getPlayerRound();
PrintMap(dangerMap, 17, 17);
if isPlayerInDanger() then
return 1, 1, false, false
end
---- sjould send Map Danger and MaxX MaxY
--MaxX = 0
--MaxY = 0