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 29 30 31 32 33 34
|
const char *activities[] = {
"Pencil and paper HMS1.png",
"Pencil and paper HMS2.png",
"Pencil and paper HMS3.png",
"Pencil and paper HMS4.png",
"Pencil and paper HMS5.png",
"Pencil and paper HMS6.png",
"Pencil and paper HMS7.png",
"Pencil and paper HMS8.png"
"Pencil and paper HMS9.png",
"Pencil and paper HMS10.png",
"Pencil and paper HMS11.png",
"Pencil and paper HMS12.png",
};
auto Pcov = AutoPolygon::generatePolygon("Pencil cover.png");
auto stencil = Sprite::create(Pcov);
stencil->setScale(2, 3);
stencil->runAction(MoveBy::create(3, Point(1000, 0)));
stencil->setPosition(Vec2(-1270, -1230));
clipper->setStencil(stencil);
clipper->setInverted(true);
auto fiUscore = Sprite::create(activities[rand() % 11]);
fiUscore->setPosition(Vec2(-810, -1230));
fiUscore->setScale(0.8);
clipper->addChild(fiUscore);
auto seUscore = Sprite::create(activities[rand() % 11]);
seUscore->setPosition(Vec2(-930, -1230));
seUscore->setScale(0.8);
clipper->addChild(seUscore);
| |