-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
executable file
·51 lines (41 loc) · 1.12 KB
/
main.cpp
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string>
#include "Rosalila/Rosalila.h"
#include "RosalilaFootsies/Footsies.h"
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
rosalila()->init();
Footsies *footsies = new Footsies();
footsies->gameLoop();
/*
vector<Node*> character_nodes = rosalila()->parser->getNodes(assets_directory+"config.xml")->getNodeByName("Characters")->getNodesByName("Character");
for(int i=0;i<(int)character_nodes.size();i++)
cout<<character_nodes[i]->attributes["name"]<<endl;
Image* background = rosalila()->graphics->getTexture(assets_directory+"menu/character_select_bg.png");
while(true)
{
rosalila()->graphics->draw2DImage
( background,
background->getWidth(),background->getHeight(),
0,0,
1.0,
0.0,
false,
0,0,
Color(255,255,255,255),
0,0,
false,
FlatShadow());
if(rosalila()->receiver->isKeyPressed(SDLK_RETURN))
{
Footsies *footsies = new Footsies();
footsies->gameLoop();
}
rosalila()->update();
}*/
return 0;
}