graphics_draw.chai 454 Bytes
Newer Older
RobLoach's avatar
RobLoach committed
1
2
3
4
5
6
7
8
9
10
11
class graphics_draw {
	var name;
	var x;
	var y;
	var image;

	def graphics_draw() {
		this.name = "graphics.draw()";
	}

	def load() {
RobLoach's avatar
RobLoach committed
12
13
14
		this.image = love.graphics.newImage("assets/graphics_draw.png");
		this.x = love.graphics.getWidth() / 2.0f - this.image.getWidth() / 2.0f;
		this.y = love.graphics.getHeight() / 2.0f - this.image.getHeight() / 2.0f;
RobLoach's avatar
RobLoach committed
15
16
17
	}

	def draw() {
RobLoach's avatar
RobLoach committed
18
		love.graphics.draw(this.image, this.x, this.y);
RobLoach's avatar
RobLoach committed
19
20
21
22
23
	}

	def update(delta) {
	}
};