diff --git a/dev/tests/example.lua b/dev/tests/example.lua index 99d4e6f7..89302aa4 100644 --- a/dev/tests/example.lua +++ b/dev/tests/example.lua @@ -1,17 +1,20 @@ test.set_setting("chunks.load-distance", 3) -test.set_setting("chunks.load-speed", 32) +test.set_setting("chunks.load-speed", 1) test.reconfig_packs({"base"}, {}) test.new_world("demo", "2019", "core:default") -local pid = player.create("Xerxes") +local pid1 = player.create("Xerxes") assert(player.get_name(pid) == "Xerxes") +local pid2 = player.create("Undefined") + for i=1,100 do if i % 10 == 0 then print(tostring(i).." % done") print("chunks loaded", world.count_chunks()) end - player.set_pos(pid, math.random() * 100 - 50, 100, math.random() * 100 - 50) + player.set_pos(pid1, math.random() * 100 - 50, 100, math.random() * 100 - 50) + player.set_pos(pid2, math.random() * 200 - 100, 100, math.random() * 200 - 100) test.tick() end