Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- import java.awt.Graphics;
- import java.util.LinkedList;
- public class EnemyBullet extends Bullet{
- public EnemyBullet(float x, float y, ID id) {
- super(x,y,id);
- width = 8;
- height = 8;
- }
- public void render(Graphics g) {
- g.setColor(Color.RED);
- g.fillRect((int)x, (int)y, 8, 8);
- g.setColor(Color.YELLOW);
- g.drawRect((int)x, (int)y, width, height);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement