Reduced a graphical artifact, but it's still visible
|
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 738 B |
|
Before Width: | Height: | Size: 763 B After Width: | Height: | Size: 763 B |
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
|
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 270 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
|
Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 299 B |
|
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 385 B |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 383 B |
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 429 B |
|
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 400 B |
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 656 B |
|
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 680 B |
@@ -57,16 +57,24 @@ local function bunnySquare(creature)
|
|||||||
|
|
||||||
|
|
||||||
--is it time to change direction?
|
--is it time to change direction?
|
||||||
if os.time() - tonumber(timestamp) >= 1 then
|
if os.time() - tonumber(timestamp) >= 4 then
|
||||||
-- print("changing directions")
|
-- print("changing directions")
|
||||||
|
|
||||||
if string.match("south", direction) then
|
if string.match("south", direction) then
|
||||||
|
direction = "east"
|
||||||
|
creatureAPI.SetMotion(creature, 1, 0)
|
||||||
|
else
|
||||||
|
if string.match("east", direction) then
|
||||||
direction = "north"
|
direction = "north"
|
||||||
creatureAPI.SetMotion(creature, 0, -1)
|
creatureAPI.SetMotion(creature, 0, -1)
|
||||||
else
|
else
|
||||||
|
if string.match("north", direction) then
|
||||||
|
direction = "west"
|
||||||
|
creatureAPI.SetMotion(creature, -1, 0)
|
||||||
|
else --south is a default
|
||||||
direction = "south"
|
direction = "south"
|
||||||
creatureAPI.SetMotion(creature, 0, 1)
|
creatureAPI.SetMotion(creature, 0, 1)
|
||||||
end
|
end end end
|
||||||
timestamp = tostring(os.time())
|
timestamp = tostring(os.time())
|
||||||
ret = 1
|
ret = 1
|
||||||
end
|
end
|
||||||
|
|||||||