@@ -0,0 +1,1330 @@
+package tetris.game;%0A%0Aimport java.awt.Font;%0A%0Aimport org.newdawn.slick.GameContainer;%0Aimport org.newdawn.slick.Graphics;%0Aimport org.newdawn.slick.Input;%0Aimport org.newdawn.slick.SlickException;%0Aimport org.newdawn.slick.TrueTypeFont;%0Aimport org.newdawn.slick.state.BasicGameState;%0Aimport org.newdawn.slick.state.StateBasedGame;%0A%0Apublic class TetrisGameOverState extends BasicGameState%7B%0A%09private String gameOver, gameOver2;%0A%09private TrueTypeFont awtFont;%0A%09%0A%09@Override%0A%09public void init(GameContainer container, StateBasedGame game) throws SlickException %7B%0A%09%09gameOver = %22Game Over%22;%0A%09%09gameOver2 = %22Press (ESC) to return to the menu.%22;%0A%09%09awtFont = new TrueTypeFont( new Font(%22Times New Roman%22, Font.BOLD, 25), true);%0A%09%7D%0A%09%0A%09@Override%0A%09public void update(GameContainer c, StateBasedGame sbg, int delta) throws SlickException %7B%0A%09%09%09%09%0A%09%09if(c.getInput().isKeyPressed(Input.KEY_ESCAPE))%7B%0A%09%09%09c.getInput().clearKeyPressedRecord();%0A%09%09%09sbg.enterState(Tetris.MENU_STATE);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public void render(GameContainer c, StateBasedGame arg1, Graphics g) throws SlickException %7B%0A%09%09awtFont.drawString(c.getWidth()/2 - gameOver.length() * 7, c.getHeight()/2 - 50, gameOver);%0A%09%09awtFont.drawString(c.getWidth()/2 - gameOver.length() * 20, c.getHeight()/2, gameOver2);%0A%09%7D%0A%09%0A%09@Override%0A%09public int getID() %7B%0A%09%09return Tetris.GAME_OVER_STATE;%0A%09%7D%0A%0A%7D%0A

Create TetrisGameOverState.java