summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 4435ad954a898ba8ad5af71b358eeab95760f87a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "main.hpp"

int main()
{
	Window main;
	//Creature testcreature(main, "img/Cbasic.png");
	//Resource testresource(main, "img/Rbasic.png");
	List(main);
	Event e;

	while(e.gRun())
	{
		while(e.Poll())
		{
			if(e.gEventType() == SDL_QUIT)
				e.off();
			//else if(e.gEventType() == SDL_KEYDOWN)
			//	eventHandle(e.gEvent());
		}
		main.Clear();
		
		//testcreature.Behavior();
		//testcreature.Place();
		//testresource.Place();
		
		main.Render();
		SDL_Delay(10);
	}

	main.Destroy();
	return 0;
}