mirror of
				https://github.com/LDDestroier/CC/
				synced 2025-10-31 07:22:59 +00:00 
			
		
		
		
	Update tron.lua
This commit is contained in:
		
							
								
								
									
										4
									
								
								tron.lua
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tron.lua
									
									
									
									
									
								
							| @@ -857,6 +857,7 @@ local deadAnimation = function(doSend) | ||||
| 	if deadGuys[you] or deadGuys[nou] then | ||||
| 		termsetTextColor(colors.white) | ||||
| 		if deadGuys[you] and deadGuys[nou] then | ||||
| 			os.queueEvent("tron_complete", "tie") | ||||
| 			scrollToPosition(player[nou].x, player[nou].y) | ||||
| 			scrollToPosition(player[you].x, player[you].y) | ||||
| 			parallel.waitForAny(function() imageAnim(images.tie) end, waitForKey) | ||||
| @@ -864,10 +865,12 @@ local deadAnimation = function(doSend) | ||||
| 		else | ||||
| 			if deadGuys[you] then | ||||
| 				scrollX, scrollY = player[nou].x - scr_x / 2, player[nou].y - scr_y / 2 | ||||
| 				os.queueEvent("tron_complete", "lose") | ||||
| 				scrollToPosition(player[you].x, player[you].y) | ||||
| 				parallel.waitForAny(function() imageAnim(images.lose) end, waitForKey) | ||||
| 				return "end" | ||||
| 			elseif deadGuys[nou] then | ||||
| 				os.queueEvent("tron_complete", "win") | ||||
| 				scrollToPosition(player[nou].x, player[nou].y) | ||||
| 				parallel.waitForAny(function() imageAnim(images.win) end, waitForKey) | ||||
| 				return "end" | ||||
| @@ -935,6 +938,7 @@ local game = function() | ||||
| 				evt, tID = os.pullEvent() | ||||
| 			until evt == "move_tick" or (evt == "timer" and tID == timeoutID) | ||||
| 			if evt == "timer" then | ||||
| 				os.queueEvent("tron_complete", "timeout") | ||||
| 				parallel.waitForAny(function() imageAnim(images.timeout) end, waitForKey) | ||||
| 				return | ||||
| 			end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 LDDestroier
					LDDestroier