Skip to content

Commit

Permalink
obtacles`
Browse files Browse the repository at this point in the history
mmmm rocksa
  • Loading branch information
idahodruid committed May 1, 2023
1 parent 611868c commit babd62b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TankTest/Obstacles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Obstacles::Obstacles(QGraphicsItem* parent) : QObject(), QGraphicsPixmapItem() {
//setPos(randomNumberX, randomNumberY);
setZValue(-3);

setPixmap(QPixmap(":/images/rock.jpg"));
setPixmap(QPixmap(":/images/obs.png"));
setTransformOriginPoint(this->boundingRect().width() / 2, this->boundingRect().height() / 2);


Expand Down
2 changes: 1 addition & 1 deletion TankTest/Tank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void Tank::frame() {
}

// Spawns Boss tank when threshold has been met
if ((enemiesDestroyed >= 5) && (bossHasSpawned)) {
if ((enemiesDestroyed >= 2) && (bossHasSpawned)) {
disconnect(timer, SIGNAL(timeout()), this, SLOT(spawn()));
QList<QGraphicsItem*> allItems = scene()->items();
for (QGraphicsItem* item : allItems) {
Expand Down
Binary file added TankTest/erth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TankTest/obs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions TankTest/res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@
<file>yellowChassisNoDamageTwo.png</file>
<file>yellowChassisNoDamageOne.png</file>
<file>title.JPG</file>
<file>rocks1.png</file>
<file>erth.png</file>
<file>obs.png</file>
</qresource>
</RCC>
Binary file added TankTest/rocks1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit babd62b

Please sign in to comment.