All pastes #764049 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-06 22:25 UTC
rendered paste body
SetBackground("images/bg/tutorial.png")
NextLevel("level7.lua")
ClearObjects()
SetText1("It's possible to do randomly generated levels.")
SetText2("There are no more so enjoy it.")

for x=0,32 do
	for y=0,32 do
		local i=math.random(3)
		if i==0 then
			AddObject("mover_up",x*32,y*32)
		elseif i==1 then
			AddObject("mover_down",x*32,y*32)
		elseif i==2 then
			AddObject("mover_left",x*32,y*32)
		elseif i==3 then
			AddObject("mover_right",x*32,y*32)
		elseif i==4 then
			AddObject("bumper",x*32,y*32)
		elseif i==5 then
			AddObject("mover_fastdown",x*32,y*32)
		elseif i==6 then
			AddObject("mover_fastleft",x*32,y*32)
		elseif i==7 then
			AddObject("mover_fastright",x*32,y*32)
		end
	end
end

AddObject("player",10,10)