21 lines
342 B
Java
Raw Normal View History

2015-02-14 17:48:55 -05:00
package milleniumlegacy;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
public class player
{
int x, y;
BufferedImage player;
public player(int x, int y, ImageLoader IL)
{
this.x = x;
this.y = y;
player = IL.loadImage("Untitled.png");
}
public void render(Graphics g)
{
g.drawImage(player, x, y, null);
}
}