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.
|
#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); |
|
}
|
|
|