refactored code and added win/lose popups
This commit is contained in:
		
							parent
							
								
									40ec4fa09a
								
							
						
					
					
						commit
						4746f34537
					
				
					 6 changed files with 353 additions and 146 deletions
				
			
		| 
						 | 
				
			
			@ -1,13 +1,16 @@
 | 
			
		|||
{
 | 
			
		||||
	"touchscreen": {
 | 
			
		||||
		"enabled": true,
 | 
			
		||||
		"mode": "swipe",
 | 
			
		||||
		"deadzone": 50,
 | 
			
		||||
		"buffer": false
 | 
			
		||||
	},
 | 
			
		||||
	"keyboard": {
 | 
			
		||||
		"enabled": true,
 | 
			
		||||
		"buffer": false
 | 
			
		||||
	},
 | 
			
		||||
	"gamepad": {
 | 
			
		||||
		"enabled": true,
 | 
			
		||||
		"deadzone": 0.5,
 | 
			
		||||
		"buffer": true
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,7 +12,8 @@
 | 
			
		|||
		"levelDisplay": "Level <n>",
 | 
			
		||||
		"levels": [
 | 
			
		||||
			1, 2, 3, 4, 5
 | 
			
		||||
		]
 | 
			
		||||
		],
 | 
			
		||||
		"nextLevel": true
 | 
			
		||||
	},
 | 
			
		||||
	"arcade": {
 | 
			
		||||
		"desc": "Have fun just like in the good ol' days, walls wrap around, fruits respawn and speed increases",
 | 
			
		||||
| 
						 | 
				
			
			@ -31,6 +32,7 @@
 | 
			
		|||
			"Survival",
 | 
			
		||||
			"Versus"
 | 
			
		||||
		],
 | 
			
		||||
		"nextLevel": false,
 | 
			
		||||
		"levelDesc": [
 | 
			
		||||
			"The old classic, try to get as high as a score as you can",
 | 
			
		||||
			"Get a score as high as you can in 30 seconds",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue