@@ -0,0 +1,3236 @@
+import javax.swing.*;%0Aimport java.awt.*;%0Aimport java.awt.event.*;%0Aimport java.awt.image.*;%0Aimport java.applet.*;%0A%0Apublic class GamePanel extends JPanel%0A%7B%0A   private static final ImageIcon BACKGROUND = new ImageIcon(%22Untitled with changing colors.png%22);%0A   ImageIcon playerSprite = new ImageIcon(%22test sprite.png%22);%0A   private BufferedImage myImage;%0A   private Graphics g;%0A   private boolean leftPressed = false;%0A   private boolean rightPressed = false;%0A   private boolean upPressed = false;%0A   public Player player;%0A   public JumpThread jumpThread;   %0A   public GamePanel()%0A   %7B   %0A      //AudioClip aud = Sound.getClip(%22Insight.wav%22);%0A   %0A      //Sound.play(aud);%0A   %0A      //try%0A      //%7B%0A         //Thread.sleep(1000);%0A      //%7D%0A      //catch(Exception e)%0A      //%7B%0A         //e.printStackTrace();%0A      //%7D%0A      %0A      //Sound.stop(aud);%0A   %0A   %0A      player = new Player();  %0A      repaint();%0A      %0A      addKeyListener(new Key());%0A      setFocusable(true);%0A   %7D%0A   public void paintComponent(Graphics g)%0A   %7B%0A      g.drawImage(BACKGROUND.getImage(), 0, 0, getWidth(), getHeight(), null); //IT WERKS AND IS SCALED AND STUFF%0A      //for the untitled png the green starts at (x, 520)%0A      player.draw(g);%0A   %7D%0A   private class Key extends KeyAdapter%0A   %7B%0A      public void keyPressed(KeyEvent e)%0A      %7B%0A         if(e.getKeyCode()==KeyEvent.VK_RIGHT)%0A         %7B%0A            rightPressed = true;%0A            player.moveRight();%0A            repaint();%0A         %7D%0A         if(e.getKeyCode()==KeyEvent.VK_LEFT)%0A         %7B%0A            leftPressed = true;%0A            player.moveLeft();%0A            repaint();%0A         %7D%0A         if(e.getKeyCode()==KeyEvent.VK_UP)%0A         %7B%0A            if(upPressed == false)%0A            %7B%0A               upPressed = true;%0A               if(rightPressed == true)%0A                  jumpThread = new JumpThread(%22right%22);%0A               else if(leftPressed == true)%0A                  jumpThread = new JumpThread(%22left%22);%0A               else%0A                  jumpThread = new JumpThread(%22none%22);%0A               jumpThread.start();%0A               jumpThread = null;%0A            %7D%0A         %7D%0A      %7D%0A      public void keyReleased(KeyEvent e)%0A      %7B%0A         if(e.getKeyCode()==KeyEvent.VK_RIGHT)%0A            rightPressed = false;%0A         if(e.getKeyCode()==KeyEvent.VK_LEFT)%0A            leftPressed = false;%0A         if(e.getKeyCode()==KeyEvent.VK_UP)%0A            upPressed = false;%0A      %7D%0A   %7D%0A   private class JumpThread extends Thread%0A   %7B%0A      private String direction;%0A      public JumpThread(String d)%0A      %7B%0A         super();%0A         direction = d;%0A      %7D%0A      public void run()%0A      %7B%0A         for(int x = 1; x %3C= 20; x++)%0A         %7B%0A            player.jump(direction);%0A            repaint();%0A            try%0A            %7B%0A               sleep(20);%0A            %7D%0A            catch(Exception e)%0A            %7B%0A               System.out.println(%22E%22);%0A            %7D%0A         %7D%0A         while(player.getY() %3C 700)%0A         %7B%0A            player.down(direction);%0A            repaint();%0A            try%0A            %7B%0A               sleep(20);%0A            %7D%0A            catch(Exception e)%0A            %7B%0A               System.out.println(e);%0A            %7D%0A         %7D%0A         return;%0A      %7D%0A   %7D%0A%7D%0A

Create GamePanel.java