Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- particles = { 1, 2, 4, 9, 11 }
- map = 0
- tfm.exec.newGame(map)
- tfm.exec.snow()
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoTimeLeft(true)
- function eventNewGame()
- if map >= 80 then
- map = 0
- end
- end
- function getMouseCount()
- local count = 0
- for name in pairs(tfm.get.room.playerList) do
- if not tfm.get.room.playerList[name].isDead then
- count = count + 1
- end
- end
- return count
- end
- function eventLoop(a, b)
- for i = 0, 75 do
- tfm.exec.displayParticle(particles[math.random(#particles)],math.random(0, 800), math.random(50, 350), 0, 0, 0, 0, nil)
- end
- local n = getMouseCount()
- if b <= 0 or n == 0 then
- map = map +1
- tfm.exec.newGame(map)
- end
- end
- function eventPlayerDied(name)
- removeObject(name)
- local i = 0
- for n,player in pairs(tfm.get.room.playerList) do
- if not player.isDead then
- i = i + 1
- end
- end
- if i == 0 then
- map = map + 1
- tfm.exec.newGame(map)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement