@@ -0,0 +1,1378 @@
+package platformer.entity;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Font;%0Aimport java.awt.Graphics2D;%0Aimport java.awt.geom.Point2D;%0Aimport java.util.Random;%0A%0Aimport platformer.effect.Particle;%0Aimport platformer.start.Start;%0A%0Apublic class EntityShooter extends Entity%7B%0Aint lives = 50;%0A%09@Override%0A%09public void draw(Graphics2D g) %7B%0A%09%09g.setColor(Color.DARK_GRAY);%0A%0A%09%09g.fill3DRect(posX-12, posY-15, 50+4, 10+4,true);%0Ag.setColor(Color.RED);%0A%09%09g.fillRect(posX-10, posY-13, lives, 10);%0A%09%09g.setColor(Color.BLACK);%0A%09%09g.setFont(new Font(%22Serif%22, Font.BOLD,12));%0A%0A%09%09g.drawString(lives+%22/50%22, posX, posY-5);%0A%09%09%09%09%0A%09%7D%0A%09Random r = new Random();%0Aint damageDealt = 0;%0A%09@Override%0A%09public void update() %7B%0A%09%09Object%5B%5D b =  Start.instance.world.entities.toArray();%0A%09%09for (Object bullet : b)%7B%0A%09%09%09if(bullet instanceof EntityBullet)%7B%0A%09%09%0A%09%09%09%09if(!((EntityBullet)bullet).dead && Point2D.distance(posX, posY, ((EntityBullet)bullet).posX, ((EntityBullet)bullet).posY)%3C80)%7B%0A%09%09%09%09%09((Entity)bullet).dead = true;%0A%09%09%09%09%09this.damageDealt =  Start.instance.p.itemHeld.damage+(r.nextInt(10)-5);%0A%09%09%09%09%09this.lives-=damageDealt;%0A%09%09%09%09%09Start.instance.world.addEntity(new Particle(%22%22+damageDealt,15,Color.WHITE), posX, posY);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%0A%09%09if(lives %3C= 0)%7B%0A%09%09%09Start.instance.world.setBlock(posX/32, posY/32, Start.instance.blockTypes%5B2%5D);%0A%09%09%09Start.instance.world.explosion(posX, posY, 100);%0A%09%09%09%0A%09%09%09dead = true;%0A%09%09%7D%09%09%0A%09%7D%0A%0A%7D%0A

Create EntityShooter.java