- 
      
- 
        Save Exegetech/8217f427fb45d4abb1b08792bde849fb to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public void displayGame(String mode, Consumer<Integer> setColorDepth, BiConsumer<Screen, Integer> drawRect) { | |
| if (mode.equals("small")) { | |
| setColorDepth.accept(8); | |
| drawRect.accept(screen, 1024, 768); | |
| } else if (mode.equals("medium")) { | |
| setColorDepth.accept(16); | |
| drawRect.accept(screen, 1600, 1200); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment