bondage-college-mirr/C101_KinbakuClub/Discipline/Script.js
Ben987 7e4d84a1ba Added a global MainCanvas to replace all the declared "ctx"
Added a global MainCanvas to replace all the declared "ctx"
2018-03-26 18:52:01 -04:00

41 lines
1.4 KiB
JavaScript

// Chapter 101 - Kinbaku Club Load
function C101_KinbakuClub_Discipline_Load() {
// Time is always 17:25:00 in the outro, unlock if needed
StopTimer(17.25 * 60 * 60 * 1000, CurrentChapter, "Discipline");
}
// Chapter 7 - Kinbaku Club Run
function C101_KinbakuClub_Discipline_Run() {
// Paints the background
DrawRect(0, 0, 800, 600, "black");
if (TextPhase >= 0) {
if (C101_KinbakuClub_Lauren_BullyCount >= 10) DrawImage(CurrentChapter + "/" + CurrentScreen + "/JennaGrab.jpg", 800, 0); // needs jenna grabbing player jpg
else DrawImage(CurrentChapter + "/" + CurrentScreen + "/JennaBlocking.jpg", 800, 0); // needs jenna blocking doorway jpg
}
if (TextPhase >= 1) DrawImage(CurrentChapter + "/" + CurrentScreen + "/BagBlack.jpg", 800, 0);
// Dialog depending on the outro situation
if (TextPhase >= 0) {
if (C101_KinbakuClub_Lauren_BullyCount >= 10) DrawText(GetText("Bully1"), 400, 120, "White");
else DrawText(GetText("Discipline1"), 400, 120, "White");
}
if (TextPhase >= 1) DrawText(GetText("Discipline2"), 400, 240, "White");
if (TextPhase >= 2) DrawText(GetText("Discipline3"), 400, 360, "White");
if (TextPhase >= 3) {
DrawText(GetText("Discipline4"), 400, 480, "White");
PlayerLockInventory("Rope");
}
}
// Chapter 101 - Kinbaku Club Click
function C101_KinbakuClub_Discipline_Click() {
// Jump to the next animation
TextPhase++;
// Jump to lunch on phase 3
//if (TextPhase >= 4) SaveMenu("C102_KinbakuDiscipline", "Intro");
}