losescene art

mail@pastecode.io avatar
unknown
plain_text
a month ago
757 B
0
Indexable
Never
AddNewObject(new Engine::Image("lose/background.png", halfW, halfH, 0, 0, 0.5, 0.5));
AddNewObject(new Engine::Label("You Lose :(", "AykaPoTz.ttf", 60, halfW, halfH , 0, 0, 0, 255, 0.5, 0.5));
AddNewObject(new Engine::Image("lose/Site-logo.png", halfW-600, halfH * 7 / 4 - 50, 0, 0, 0.5, 0.5));
Engine::ImageButton* btn;
btn = new Engine::ImageButton("lose/lose.png", "lose/lose.png", halfW - 110, halfH * 7 / 4-80, 258, 153);
btn->SetOnClickCallback(std::bind(&LoseScene::BackOnClick, this, 2));
AddNewControlObject(btn);
AddNewObject(new Engine::Label("Back", "AykaPoTz.ttf", 48, halfW, halfH * 7 / 4-20, 255, 255, 255, 255, 0.5, 0.5));
bgmInstance = AudioHelper::PlaySample("background.wav", false, AudioHelper::BGMVolume, PlayScene::DangerTime);
Leave a Comment