diff options
Diffstat (limited to 'pacman-c++/main.cpp')
| -rw-r--r-- | pacman-c++/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pacman-c++/main.cpp b/pacman-c++/main.cpp index 4b88b44..3311429 100644 --- a/pacman-c++/main.cpp +++ b/pacman-c++/main.cpp | |||
| @@ -7,12 +7,12 @@ int 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, 500, 500); |
| 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 | actor1->setPos(100,100); | 15 | actor1->setPos(100, 100); |
| 16 | 16 | ||
| 17 | QGraphicsView window(&scene); | 17 | QGraphicsView window(&scene); |
| 18 | window.setFrameStyle(0); | 18 | window.setFrameStyle(0); |
| @@ -22,7 +22,7 @@ int main(int argc, char **argv) | |||
| 22 | 22 | ||
| 23 | QMainWindow mainWin; | 23 | QMainWindow mainWin; |
| 24 | mainWin.setCentralWidget(&window); | 24 | mainWin.setCentralWidget(&window); |
| 25 | mainWin.resize(300, 300); | 25 | mainWin.resize(500, 500); |
| 26 | mainWin.show(); | 26 | mainWin.show(); |
| 27 | 27 | ||
| 28 | qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); | 28 | qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); |
