|  |  | @@ -1,4 +1,5 @@ | 
		
	
		
			
			|  |  |  | --CALLING OTHER LUA FILES | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | require "src/dependencies" | 
		
	
		
			
			|  |  |  | io.stdout:setvbuf("no") | 
		
	
		
			
			|  |  |  | --CANCELLED ATTEMPETED SHADING (NOT WORKING) | 
		
	
	
		
			
				|  |  | @@ -15,7 +16,7 @@ doubleclick1 = false | 
		
	
		
			
			|  |  |  | doubleclick2 = false | 
		
	
		
			
			|  |  |  | hold1 = false | 
		
	
		
			
			|  |  |  | hold2 = false | 
		
	
		
			
			|  |  |  | debug = false | 
		
	
		
			
			|  |  |  | debug = true | 
		
	
		
			
			|  |  |  | paused = false | 
		
	
		
			
			|  |  |  | androidButtons = {} | 
		
	
		
			
			|  |  |  | pauseButtons = {} | 
		
	
	
		
			
				|  |  | @@ -25,6 +26,9 @@ showTouchControls = false | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | --0.9 VARIABLES | 
		
	
		
			
			|  |  |  | globalMessage = "none" | 
		
	
		
			
			|  |  |  | globalAnimation = "none" | 
		
	
		
			
			|  |  |  | globalMessageTime = 0 | 
		
	
		
			
			|  |  |  | isButtonAnimated = false | 
		
	
		
			
			|  |  |  | lowcpu = false | 
		
	
		
			
			|  |  |  | wallsLoadError = false | 
		
	
	
		
			
				|  |  | @@ -1025,11 +1029,18 @@ function love.update(dt) | 
		
	
		
			
			|  |  |  | --checking = checking + 1 | 
		
	
		
			
			|  |  |  | --print(checking) | 
		
	
		
			
			|  |  |  | --print("IMPORTANT!!!!!" .. globalState .. gameState) | 
		
	
		
			
			|  |  |  | if globalMessage ~= "none" then | 
		
	
		
			
			|  |  |  | globalMessageTime = globalMessageTime + dt | 
		
	
		
			
			|  |  |  | if globalMessageTime > 10 then | 
		
	
		
			
			|  |  |  | globalMessage = "none" | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | if not lowcpu then | 
		
	
		
			
			|  |  |  | if (love.timer.getFPS() < 50 and gameState ~= "animation") then | 
		
	
		
			
			|  |  |  | countinglowcpu = countinglowcpu + 1 | 
		
	
		
			
			|  |  |  | if countinglowcpu > 10 then | 
		
	
		
			
			|  |  |  | if countinglowcpu > 30 then | 
		
	
		
			
			|  |  |  | lowcpu = true | 
		
	
		
			
			|  |  |  | globalMessage = "[color=#00ff00][bounce]Low-end mode enabled[/bounce][/color]" | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | end | 
		
	
	
		
			
				|  |  | @@ -1059,7 +1070,6 @@ function love.update(dt) | 
		
	
		
			
			|  |  |  | musicController('norm', 1) | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | if globalState == "nettest" then | 
		
	
		
			
			|  |  |  | --print("Confcode: " .. confirmation) | 
		
	
		
			
			|  |  |  | if confirmation == "N" then | 
		
	
	
		
			
				|  |  | @@ -1867,13 +1877,9 @@ function love.draw(dt) | 
		
	
		
			
			|  |  |  | for i, touch in ipairs(touches) do | 
		
	
		
			
			|  |  |  | love.graphics.printf(touch.x, 0, VIRTUAL_HEIGHT / 2, VIRTUAL_WIDTH, "center") | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | if doubleclick1 then | 
		
	
		
			
			|  |  |  | TEXT = "DOUBLECLICK1" | 
		
	
		
			
			|  |  |  | elseif doubleclick2 then TEXT = "DOUBLECLICK2" | 
		
	
		
			
			|  |  |  | else TEXT = "NO" | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | showMessage() | 
		
	
		
			
			|  |  |  | if wallsLoadError then | 
		
	
		
			
			|  |  |  | love.graphics.setColor(1,0,0,1) | 
		
	
		
			
			|  |  |  | love.graphics.printf("Error loading map!", 0,0,VIRTUAL_WIDTH, "left") | 
		
	
	
		
			
				|  |  | @@ -2500,7 +2506,13 @@ end | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | return false | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | function showMessage() | 
		
	
		
			
			|  |  |  | print (globalMessage) | 
		
	
		
			
			|  |  |  | if globalMessage ~= "none" then | 
		
	
		
			
			|  |  |  | love.graphics.printf("Low CPU mode active", 0, VIRTUAL_WIDTH/2, VIRTUAL_HEIGHT/2, "center") | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | end | 
		
	
		
			
			|  |  |  | function resetButtonX(arr) | 
		
	
		
			
			|  |  |  | for i, buttons in ipairs(arr) do | 
		
	
		
			
			|  |  |  | buttons.x = 1300 | 
		
	
	
		
			
				|  |  | 
 |