mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2026-05-04 15:20:53 +00:00
Reupload part 2
Reupload part 2
This commit is contained in:
parent
faa00bc1f9
commit
d4e23d4384
1411 changed files with 13253 additions and 0 deletions
33
C001_BeforeClass/Intro/Script.js
Normal file
33
C001_BeforeClass/Intro/Script.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Chapter 1 - Intro Load
|
||||
function C001_BeforeClass_Intro_Load() {
|
||||
|
||||
// Time is always 7:40 on the intro, no timer
|
||||
StopTimer(7.66666667 * 60 * 60 * 1000);
|
||||
|
||||
}
|
||||
|
||||
// Chapter 1 - Intro Run
|
||||
function C001_BeforeClass_Intro_Run() {
|
||||
|
||||
// Draw the background and player
|
||||
var ctx = document.getElementById("MainCanvas").getContext("2d");
|
||||
if (TextPhase <= 2) DrawImage(ctx, CurrentChapter + "/" + CurrentScreen + "/Background1.jpg", -150, 0);
|
||||
else DrawImage(ctx, CurrentChapter + "/" + CurrentScreen + "/Background2.jpg", -150, 0);
|
||||
DrawImage(ctx, CurrentChapter + "/" + CurrentScreen + "/Player.jpg", 900, 0);
|
||||
|
||||
// Introduce chapter 1 with each clicks
|
||||
DrawText(ctx, GetText("Intro1"), 450, 50, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("Intro2"), 450, 150, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("Intro3"), 450, 250, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("Intro4"), 450, 350, "White");
|
||||
if (TextPhase >= 4) DrawText(ctx, GetText("Intro5"), 450, 450, "White");
|
||||
if (TextPhase >= 5) DrawText(ctx, GetText("Intro6"), 450, 550, "White");
|
||||
|
||||
}
|
||||
|
||||
// Chapter 1 - Intro Click
|
||||
function C001_BeforeClass_Intro_Click() {
|
||||
TextPhase++;
|
||||
if (TextPhase >= 6)
|
||||
SetScene(CurrentChapter, "Classroom");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue