sauvegarde 4
[PACMAN.git] / gameplay / main.cpp
blobe64f3c98f4ab4522260ee5b8d3423aa6edcdf461
1 #include "engines/thread_controller.h"
2 #include "engines/engine_graphics.h"
3 #include "engines/core_kernel.h"
4 #include "level.h"
5 #include "pacman.h"
6 #include "pacdot.h"
7 #include <QApplication>
8 #include <QPointF>
10 using namespace engine;
11 using namespace gameplay;
13 int main(int argc, char *argv[])
15 QApplication app(argc,argv);
17 Engine_graphics graph(":/ressources/pacman_layout.JPG");
19 QPoint pos(200,200);
20 Box box(15,15);
22 Pacman p(pos,box,":/ressources/pacman.png");
24 graph.add_entity(p);
28 QPoint pos_d1(310,310);
29 Box box_d1(15,15);
30 PacDot d1(pos_d1,box_d1,":/ressources/pacman.png");
31 graph.add_entity(d1);
33 Core_kernel ker;
34 ker.add_entity(&p);
35 ker.add_entity(&d1);
41 Thread_controller *t = new Thread_controller(ker);
43 return app.exec();