Advertisement
Guest User

EnemyBullet

a guest
Aug 17th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Graphics;
  3. import java.util.LinkedList;
  4.  
  5. public class EnemyBullet extends Bullet{
  6.  
  7. public EnemyBullet(float x, float y, ID id) {
  8. super(x,y,id);
  9. width = 8;
  10. height = 8;
  11. }
  12.  
  13. public void render(Graphics g) {
  14.  
  15. g.setColor(Color.RED);
  16. g.fillRect((int)x, (int)y, 8, 8);
  17. g.setColor(Color.YELLOW);
  18. g.drawRect((int)x, (int)y, width, height);
  19. }
  20.  
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement