mirror of
				https://github.com/LDDestroier/CC/
				synced 2025-10-31 07:22:59 +00:00 
			
		
		
		
	Update tron
This commit is contained in:
		
							
								
								
									
										40
									
								
								tron
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								tron
									
									
									
									
									
								
							| @@ -21,27 +21,31 @@ local player = { | ||||
| 	color = colors.blue | ||||
| } | ||||
|  | ||||
| local gridFore = { | ||||
| 	"               ", | ||||
| 	"               ", | ||||
| 	"               ", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| 	"   ############", | ||||
| } | ||||
| local gridBack = { | ||||
| 	"+-------", | ||||
| 	"|       ", | ||||
| 	"|       ", | ||||
| 	"|       ", | ||||
| 	"|       " | ||||
| } | ||||
| for y = 1, gridFore do | ||||
| 	gridFore[y] = gridFore[y]:gsub("#","\127") | ||||
|  | ||||
| --draws grid and background at scroll 'x' and 'y' | ||||
| local drawGrid = function(x, y) | ||||
| 	x, y = math.floor(x + 0.5), math.floor(y + 0.5) | ||||
| 	local gridBack = { | ||||
| 		"              ", | ||||
| 		"              ", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 		"  ############", | ||||
| 	} | ||||
| 	local gridFore = { | ||||
| 		"+-------", | ||||
| 		"|       ", | ||||
| 		"|       ", | ||||
| 		"|       ", | ||||
| 		"|       " | ||||
| 	} | ||||
| 	local bg = {{},{},{}} | ||||
| 	local foreX, foreY | ||||
| 	local backX, backY | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 LDDestroier
					LDDestroier