summaryrefslogtreecommitdiff
path: root/src/resource.cpp
blob: a087acaaff32162e1a9acf9836b4ad3ff9459c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "resource.hpp"

Resource::Resource(Window m, std::string s)
{
	texture = loadTexture(s, m);
	renderer = m.getRenderer();
	int zy = rand()%800;
	int zx = rand()%1200;
	y=zy;
	x=zx;
}

Location Resource::getLocation()
{
	Location L(x,y,2);
	return L;
}