-
Notifications
You must be signed in to change notification settings - Fork 0
/
red_powerup.cpp
27 lines (20 loc) · 1.07 KB
/
red_powerup.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "red_powerup.h"
Red_powerup::Red_powerup()
{
Consumable();
setcolor(":/images/resourses/images/glowing_red/rp1.png");
counterMax=7;
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp1.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp2.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp3.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp4.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp5.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp6.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp7.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_red/rp8.png"));
connect(pixMapTimer, SIGNAL(timeout()), this, SLOT(animationCounter()));
pixMapTimer->start(200);
powerUpPixMap = powerUpImageList[0];
setPixmap(*powerUpPixMap);
setPos(restX,restY);
}