move player update to updateGame()
This commit is contained in:
		
							parent
							
								
									1f7b66ceb9
								
							
						
					
					
						commit
						6c380461bb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -144,8 +144,6 @@ end
 | 
			
		|||
 | 
			
		||||
function drawGame()
 | 
			
		||||
	map(0,0,30,17)
 | 
			
		||||
	p:direct()
 | 
			
		||||
	p:update()
 | 
			
		||||
	p:draw()
 | 
			
		||||
 | 
			
		||||
	-- Life
 | 
			
		||||
| 
						 | 
				
			
			@ -303,6 +301,8 @@ function updateGame()
 | 
			
		|||
	if btnp(5) then -- B (X key)
 | 
			
		||||
		currentState = GameState.gameover
 | 
			
		||||
	end
 | 
			
		||||
	p:direct()
 | 
			
		||||
	p:update()
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function updateMarket()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue