You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
261 B
18 lines
261 B
2 years ago
|
#include "game.h"
|
||
|
#include <QGraphicsScene>
|
||
|
#include "tower.h"
|
||
|
|
||
|
Game::Game() {
|
||
|
scene = new QGraphicsScene(this);
|
||
|
|
||
|
setScene(scene);
|
||
|
|
||
|
// create a tower
|
||
|
Tower *t = new Tower();
|
||
|
|
||
|
// add tower
|
||
|
scene->addItem(t);
|
||
|
|
||
|
setFixedSize(800,600);
|
||
|
}
|