-
Notifications
You must be signed in to change notification settings - Fork 0
/
green_powerup.cpp
31 lines (24 loc) · 1.5 KB
/
green_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
26
27
28
#include "green_powerup.h"
Green_powerup::Green_powerup()
{
Consumable();
counterMax=11;
setcolor(":/images/resourses/images/glowing_green/green0.png");
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green0.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green1.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green2.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green3.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green4.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green5.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green6.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green7.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green8.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green9.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green10.png"));
powerUpImageList.append(new QPixmap(":/images/resourses/images/glowing_green/green11.png"));
connect(pixMapTimer, SIGNAL(timeout()), this, SLOT(animationCounter()));
pixMapTimer->start(200);
powerUpPixMap = powerUpImageList[0];
setPixmap(*powerUpPixMap);
setPos(restX,restY);
}