Update flowchart, Add global SDL variables
- flowchart:
    - update menu.c
    - add notes for menu
- game.c:
    - add SDL variables to game struct,
     so menu.c can also render things to window
			
			
This commit is contained in:
		
							parent
							
								
									cc4f8f169f
								
							
						
					
					
						commit
						4159d4ff17
					
				
										
											Binary file not shown.
										
									
								
							| @ -4,6 +4,7 @@ | ||||
| #include "snake.h" | ||||
| #include "config.h" | ||||
| #include "map.h" | ||||
| #include "SDL.h" | ||||
| 
 | ||||
| 
 | ||||
| // Enum that defines the current game state
 | ||||
| @ -25,6 +26,8 @@ typedef struct gameData_t | ||||
|   int foodX, foodY;   // current position of food
 | ||||
|   int lifesRemaining; // not implemented
 | ||||
|   int timestampLastCycle; // time last game cycle started
 | ||||
|   SDL_Renderer* renderer; // used by render.c and menu.c
 | ||||
|   SDL_Window *window;     // used by render.c and menu.c
 | ||||
|   gameState_t gameState;  // state the game is in
 | ||||
| } gameData_t; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user