summaryrefslogtreecommitdiffstats
path: root/pacman-c++/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/main.cpp')
-rw-r--r--pacman-c++/main.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/pacman-c++/main.cpp b/pacman-c++/main.cpp
index 0756684..cceb8f5 100644
--- a/pacman-c++/main.cpp
+++ b/pacman-c++/main.cpp
@@ -5,24 +5,24 @@
5 5
6int main(int argc, char **argv) 6int main(int argc, char **argv)
7{ 7{
8 QApplication app(argc, argv); 8 QApplication app(argc, argv);
9 9
10 QGraphicsScene scene(0, 0, 300, 300); 10 QGraphicsScene scene(0, 0, 300, 300);
11 scene.setBackgroundBrush(Qt::black); 11 scene.setBackgroundBrush(Qt::black);
12 12
13 Actor *actor1 = new Actor(Actor::Player1); 13 Actor *actor1 = new Actor(Actor::Player1);
14 scene.addItem(actor1); 14 scene.addItem(actor1);
15 15
16 QGraphicsView window(&scene); 16 QGraphicsView window(&scene);
17 window.setFrameStyle(0); 17 window.setFrameStyle(0);
18 window.setAlignment(Qt::AlignLeft | Qt::AlignTop); 18 window.setAlignment(Qt::AlignLeft | Qt::AlignTop);
19 window.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 19 window.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
20 window.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 20 window.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
21 21
22 window.resize(300, 300); 22 window.resize(300, 300);
23 window.show(); 23 window.show();
24 24
25 qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); 25 qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
26 26
27 return app.exec(); 27 return app.exec();
28} 28}