@@ -0,0 +1,1731 @@
+package tetris.game;%0A%0Aimport org.newdawn.slick.GameContainer;%0Aimport org.newdawn.slick.Music;%0Aimport org.newdawn.slick.SlickException;%0Aimport org.newdawn.slick.state.BasicGameState;%0Aimport org.newdawn.slick.state.StateBasedGame;%0A%0Apublic class Tetris extends StateBasedGame %7B%0A%09%09%09%0A//======================================================================%0A//%0A//--------------------------------Fields--------------------------------%0A//%0A//======================================================================%0A%09%0A%09BasicGameState tetrisGameState;%0A%09BasicGameState tetrisMenuState;%0A%09BasicGameState tetrisGameOverState;%0A%09%0A%09public static final int MENU_STATE = 0;%0A%09public static final int GAME_STATE = 1;%0A%09public static final int GAME_OVER_STATE = 2;%0A%09%0A//======================================================================%0A//%0A//-----------------------------Constructors-----------------------------%0A//%0A//======================================================================%0A%09%0A%09public Tetris(String name) throws SlickException %7B%0A%09%09super(name);%0A%09%09tetrisGameState = new TetrisGameState();%0A%09%09tetrisMenuState = new TetrisMenuState();%0A%09%09tetrisGameOverState = new TetrisGameOverState();%0A%09%09%0A%09%09Music music = new Music(%22C:%5C%5CUsers%5C%5Ccalreiter16%5C%5CDesktop%5C%5CAHA%5C%5CAHA 15-16%5C%5CAP Computer Science%5C%5CTetris2.0%5C%5CSlamtris.wav%22);%0A%09%09music.loop();%0A%09%7D%0A%09%0A//======================================================================%0A//%0A//-------------------------------Methods--------------------------------%0A//%0A//======================================================================%0A%0A%09@Override%0A%09public void initStatesList(GameContainer container) throws SlickException %7B%0A%09%09addState(tetrisMenuState);%0A%09%09addState(tetrisGameState);%0A%09%09addState(tetrisGameOverState);%0A%09%7D%0A%0A%7D%0A

Create Tetris.java