@@ -0,0 +1,1025 @@
+package platformer.entity;%0A%0Aimport java.awt.Graphics2D;%0Aimport java.awt.event.KeyEvent;%0A%0Aimport platformer.resources.ImageLoader;%0Aimport platformer.start.Start;%0A%0Apublic  class EntitySpaceship extends Entity%7B%0Aboolean hasPlayerMounted = false;%0A%09public void draw(Graphics2D g) %7B%0A%09%09g.drawImage(ImageLoader.loadImage(getClass(), %22/textures/misc/spaceship.png%22), posX, posY, null);%0A%09%7D%0A%0A%09public void update() %7B%0A%09%09if(Start.in.mousePressed&& Start.in.mouseX %3E posX && Start.in.mouseX %3C posX+256&&Start.in.mouseY %3E posY && Start.in.mouseY %3C posY+128)%7B%0A%09%09%09hasPlayerMounted = true;%0A%09%09%7D%0A%09%09%0A%09%09if(hasPlayerMounted && Start.in.isKeyDown(KeyEvent.VK_SHIFT))%7B%0A%09%09%09hasPlayerMounted = false;%0A%09%09%7D%0A%09%09if(hasPlayerMounted)%7B%0A%09%09%09Start.instance.p.posX = posX+100;%0A%09%09%09Start.instance.p.posY = posY+30;%0A%09%09%7D%0A%09%09if(Start.in.isKeyDown(KeyEvent.VK_UP))%7B%0A%09%09%09posY-=10;%0A%09%09%7D%0A%09%09if(Start.in.isKeyDown(KeyEvent.VK_DOWN))%7B%0A%09%09%09posY+=10;%0A%09%09%7D%0A%09%09if(Start.in.isKeyDown(KeyEvent.VK_RIGHT))%7B%0A%09%09%09posX+=10;%0A%09%09%7D%0A%09%09if(Start.in.isKeyDown(KeyEvent.VK_LEFT))%7B%0A%09%09%09posX-=10;%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create EntitySpaceship.java