@Override
	public void init(GameContainer arg0) throws SlickException {
		Music goodMusic;
		menu=false;
		arg0.setMouseCursor(new Image("res/Video Game Tiles - Pixel by Pixel/Cursor.png"), 0, 0);
		step1 = new Sound("res/sound/Step.wav");
		step2 = new Sound("res/sound/Step2.wav");
		lasersfx = new Sound("res/sound/Laser.wav");
		explosion = new Sound("res/sound/Explosion0.wav");
		screwsfx = new Sound("res/sound/ScrewStab.wav");
		sabersfx = new Sound("res/sound/SaberSwoosh.wav");
		player = new Player();
		x=0;
		y=0;
		timey = 0;
		pasta = false;
		HUD = new Image("res/Video Game Tiles - Pixel by Pixel/HUD.png");
		health = new Image("res/health/20hp.png");
		ItemHUD = new Image("res/Video Game Tiles - Pixel by Pixel/Inventory.png");
		item1 = new Image("res/Video Game Tiles - Pixel by Pixel/Screwdriver.png");
		item2 = new Image("res/Video Game Tiles - Pixel by Pixel/Energy Saber.png");
		titleDoor1 = new Image("res/Video Game Tiles - Pixel by Pixel/Top TL.png");
		titleDoor2 = new Image("res/Video Game Tiles - Pixel by Pixel/Door BR.png");
		menuButton = new Rectangle(660+272,340+238,86,32);
		resumeButton = new Rectangle(158,366,312,53);
		restartButton = new Rectangle(158,436,312,53);
		restartButton = new Rectangle(158,508,312,53);
		item1Button = new Rectangle(423,175,161,158);
		item2Button = new Rectangle(582,175,161,158);
		item3Button = new Rectangle(498,352,161,158);
		switch (level)
		{
		case 0:
			goodMusic = new Music("res/music/Drowning In The High Seas.wav");
			goodMusic.loop();
			grassMap = new TiledMap("res/Level 1.tmx");
			layers = 4;
			break;
		case 1:
			grassMap = new TiledMap("res/Level 1.tmx");
			goodMusic = new Music("res/music/LightHart.wav");
			goodMusic.loop();
			layers = 4;
			break;
		case 2:
			grassMap = new TiledMap("res/Level 2.tmx");
			layers = 4;
			goodMusic = new Music("res/music/LightHart.wav");
			goodMusic.loop();
			break;
		}

		for (int layer = 0;layer < layers;layer++)
		{
			for (int xAxis=0;xAxis<grassMap.getWidth(); xAxis++)
			{
				for (int yAxis=0;yAxis<grassMap.getHeight(); yAxis++)
				{
					int tileID = grassMap.getTileId(xAxis, yAxis,layer);
					String value = grassMap.getTileProperty(tileID, "blocked", "false");
					if (value.equals("true"))
					{
						walls.add(new Wall((xAxis*32)-820,(yAxis*32)-64,"grass"));
					}
				}
			}

		}
		mobs.add(new Sentry(1024,256));
		mobs.add(new Meleebot(1024,128));
	}