mirror of
				https://github.com/LDDestroier/CC/
				synced 2025-10-31 23:43:00 +00:00 
			
		
		
		
	Update tron.lua
This commit is contained in:
		
							
								
								
									
										26
									
								
								tron.lua
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								tron.lua
									
									
									
									
									
								
							| @@ -97,7 +97,7 @@ local skynetPath = "skynet" | |||||||
| local skynetURL = "https://raw.githubusercontent.com/osmarks/skynet/master/client.lua" | local skynetURL = "https://raw.githubusercontent.com/osmarks/skynet/master/client.lua" | ||||||
|  |  | ||||||
| if argumentName then | if argumentName then | ||||||
| 	argumentName = argumentName:sub(1, 13) -- gotta enforce that limit | 	argumentName = argumentName:sub(1, 15) -- gotta enforce that limit | ||||||
| end | end | ||||||
|  |  | ||||||
| local modem, skynet | local modem, skynet | ||||||
| @@ -745,6 +745,7 @@ local render = function(useSetVisible, netTime) | |||||||
| 	term.setCursorPos(1,2) | 	term.setCursorPos(1,2) | ||||||
| 	if netTime and useSkynet then | 	if netTime and useSkynet then | ||||||
| 		ping = (os.epoch() - netTime) / round(72, 2) | 		ping = (os.epoch() - netTime) / round(72, 2) | ||||||
|  | 		term.setTextColor(colors.white) | ||||||
| 		term.write(" " .. tostring(ping) .. " ms") | 		term.write(" " .. tostring(ping) .. " ms") | ||||||
| 	end | 	end | ||||||
| 	term.setTextColor(colors.white) | 	term.setTextColor(colors.white) | ||||||
| @@ -893,9 +894,9 @@ local nameChange = function(scrollInfo) | |||||||
| 	local tID = os.startTimer(gameDelayInit) | 	local tID = os.startTimer(gameDelayInit) | ||||||
| 	local buff = {} | 	local buff = {} | ||||||
| 	local cpos = 1 | 	local cpos = 1 | ||||||
| 	local maxSize = 13 | 	local maxSize = 15 | ||||||
| 	local evt | 	local evt | ||||||
| 	-- this has no functional significance, I'm just messing around | 	-- this has no functional significance. just some shoutouts | ||||||
| 	local specialNames = { | 	local specialNames = { | ||||||
| 		["blu"] = colors.blue, | 		["blu"] = colors.blue, | ||||||
| 		["red"] = colors.red, | 		["red"] = colors.red, | ||||||
| @@ -909,7 +910,22 @@ local nameChange = function(scrollInfo) | |||||||
| 		["nothy"] = colors.lightGray, | 		["nothy"] = colors.lightGray, | ||||||
| 		["kepler"] = colors.cyan, | 		["kepler"] = colors.cyan, | ||||||
| 		["crazed"] = colors.lightBlue, | 		["crazed"] = colors.lightBlue, | ||||||
| 		["ape"] = colors.brown | 		["ape"] = colors.brown, | ||||||
|  | 		["everyos"] = colors.red, | ||||||
|  | 		["apemanzilla"] = colors.brown, | ||||||
|  | 		["osmarks"] = colors.green, | ||||||
|  | 		["gollark"] = colors.green, | ||||||
|  | 		["dece"] = colors.cyan, | ||||||
|  | 		["hpwebcamable"] = colors.lightGray, | ||||||
|  | 		["theoriginalbit"] = colors.blue, | ||||||
|  | 		["bombbloke"] = colors.red, | ||||||
|  | 		["kingofgamesyami"] = colors.lightBlue, | ||||||
|  | 		["pixeltoast"] = colors.lime, | ||||||
|  | 		["creator"] = colors.yellow, | ||||||
|  | 		["dannysmc"] = colors.purple, | ||||||
|  | 		["kingdaro"] = colors.blue, | ||||||
|  | 		["valithor"] = colors.orange, | ||||||
|  | 		["logandark"] = colors.lightGray | ||||||
| 	} | 	} | ||||||
| 	local prevName = argumentName or player[you].initName | 	local prevName = argumentName or player[you].initName | ||||||
| 	for x = 1, #prevName do | 	for x = 1, #prevName do | ||||||
| @@ -1009,7 +1025,7 @@ local titleScreen = function() | |||||||
| 				elseif choice == 2 then | 				elseif choice == 2 then | ||||||
| 					local newName = nameChange(scrollInfo) | 					local newName = nameChange(scrollInfo) | ||||||
| 					if #newName > 0 then | 					if #newName > 0 then | ||||||
| 						if newName:upper() == "BLU" or newName:upper() == "RED" then | 						if newName:upper() == "BLU" or newName:upper() == "RED" or newName:gsub(" ","") == "" then | ||||||
| 							argumentName = nil | 							argumentName = nil | ||||||
| 						else | 						else | ||||||
| 							argumentName = newName | 							argumentName = newName | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 LDDestroier
					LDDestroier