Skip to content
Snippets Groups Projects

initiella filer

Merged Johanna Brådd requested to merge master into main
12 files
+ 627
0
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 21
0
 
package constants;
 
 
/**
 
* In this file we define some global constants.
 
*
 
* An interface is one way to store variables that are truly constants and not
 
* subject to change during run time.
 
*
 
* Please note that the problem with global variables is that anyone can change
 
* them whenever. This makes it extremely hard to reason about your code. But
 
* for constants, this is not a problem since we cannot change them, and
 
* therefore they stay the same during the entire execution of the program.
 
*/
 
public interface Constants {
 
 
/*
 
* Define the size of the window
 
*/
 
int SCREEN_WIDTH = 1000;
 
int SCREEN_HEIGHT = 800;
 
}
Loading