Commits

mcc  committed 4e8a1a4

Animation fixes

  • Participants
  • Parent commits 9781a50

Comments (0)

Files changed (2)

File media/overlay/play/onLoad.lua

 	end
 end
 
-function levelend(success)
+function levelend(success, touched)
 	gm.player:setColor(0,0,0,0)
 	gm.dead = true
 	local top = a(gm.player:getPosition()).y < gm.level.ydim*gm.level.scale/2
 	else
 		local safeline = top and 21 or 0
 		gm.deadat = ticks
-		gm.fatal = _b
+		gm.fatal = touched
 		fill(dos, 0,safeline,40,3,"#")
 		dos:set_centered(0,safeline,40,   "DEAD!!!!#YOU#ARE#A#TERRIBLE PLAYER", false)
 		dos:set_centered(0,safeline+1,40, "PRESS#\010#TO#CONTINUE", false)
 		local b = _b.__ptr and gm.what[_b.__ptr]
 		if not gm.dead then
 			if b and not b.e and b.c == 2 then
-				levelend(false)
+				levelend(false, _b)
 			elseif b and b.e and b.c == 2 then
-					levelend(true)
+				levelend(true, _b)
 			elseif (not gm.lastjump) or ticks-gm.lastjump > km.jump_refract then
 				gm.canjump = true;
 			end

File media/overlay/play/onUpdate.lua

 	end
 	
 	for i,v in ipairs(gm.exits) do
-		local vary = math.abs(math.sin(ticks/90*math.pi))
+		local vary = math.abs(math.cos(ticks/90*math.pi))
 		if falloff then vary = vary * falloff end
 		local blue = vary * 0.7 + 0.3
 		v:setColor(0, blue, blue, 1)