mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Language Integration + Chapter 8 Init
Language Integration + Chapter 8 Init
This commit is contained in:
parent
76505194c1
commit
932c4f36d0
28 changed files with 139 additions and 29 deletions
C000_Intro
C007_LunchBreak/Outro
C008_DramaClass
Intro
JuliaIntro
C999_Common
GameLoad
GameSave
|
@ -10,6 +10,7 @@ Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
|
|||
10,0,0,,第五章|体育课,,10,0,0,"LoadChapter(""C005_GymClass"")"
|
||||
10,0,0,,第六章|独立监禁,,10,0,0,"LoadChapter(""C006_Isolation"")"
|
||||
10,0,0,,第七章|午餐时间,,10,0,0,"LoadChapter(""C007_LunchBreak"")"
|
||||
10,0,0,,Drama Class,,10,0,0,"LoadChapter(""C008_DramaClass"")"
|
||||
10,0,0,,主菜单,欢迎来到束缚学院。|希望各位绅士玩得开心,不断找到新惊喜。,0,0,0,
|
||||
20,0,0,,英文,,0,0,0,"SetLanguage(""EN"")"
|
||||
20,0,0,,法文 (暂时只有第一章)|感谢gottspende!,,0,0,0,"SetLanguage(""FR"")"
|
|
|
@ -10,7 +10,8 @@ Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
|
|||
10,0,0,,Chapter 5|Gym Class,,10,0,0,"LoadChapter(""C005_GymClass"")"
|
||||
10,0,0,,Chapter 6|Isolation,,10,0,0,"LoadChapter(""C006_Isolation"")"
|
||||
10,0,0,,Chapter 7|Lunch Break,,10,0,0,"LoadChapter(""C007_LunchBreak"")"
|
||||
10,0,0,,Chapter 8|Drama Class,,10,0,0,"LoadChapter(""C008_DramaClass"")"
|
||||
10,0,0,,Main Menu,"Welcome to the Bondage College.|Have fun, be curious and be kinky.",0,0,0,
|
||||
20,0,0,,English,,0,0,0,"SetLanguage(""EN"")"
|
||||
20,0,0,,French (Chapter 1 only)|Thanks to gottspende!,,0,0,0,"SetLanguage(""FR"")"
|
||||
20,0,0,,Chinese (Menu only)|Thanks to asdcvbgf!,,0,0,0,"SetLanguage(""CN"")"
|
||||
20,0,0,,French (Chapter 1 & 2)|Thanks to gottspende!,,0,0,0,"SetLanguage(""FR"")"
|
||||
20,0,0,,Chinese (Chapter 5)|Thanks to asdcvbgf!,,0,0,0,"SetLanguage(""CN"")"
|
||||
|
|
|
|
@ -10,7 +10,8 @@ Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
|
|||
10,0,0,,Chapitre 5|Le cours de Gym,,10,0,0,"LoadChapter(""C005_GymClass"")"
|
||||
10,0,0,,Chapitre 6|L'isolement,,10,0,0,"LoadChapter(""C006_Isolation"")"
|
||||
10,0,0,,Chapitre 7|La pause déjeuner,,10,0,0,"LoadChapter(""C007_LunchBreak"")"
|
||||
10,0,0,,Chapitre 8|Le cours de Théâtre,,10,0,0,"LoadChapter(""C008_DramaClass"")"
|
||||
10,0,0,,Menu principal,"Bienvenue à l'Université du Bondage.|Amusez-vous bien, soyez curieux(se) et coquin(e).",0,0,0,
|
||||
20,0,0,,Anglais,,0,0,0,"SetLanguage(""EN"")"
|
||||
20,0,0,,Français (Chapitre 1)|Merci à gottspende!,,0,0,0,"SetLanguage(""FR"")"
|
||||
20,0,0,,Chinois (Menu seulement)|Merci à asdcvbgf!,,0,0,0,"SetLanguage(""CN"")"
|
||||
20,0,0,,Français (Chapitre 1 & 2)|Merci à gottspende!,,0,0,0,"SetLanguage(""FR"")"
|
||||
20,0,0,,Chinois (Chapitre 5)|Merci à asdcvbgf!,,0,0,0,"SetLanguage(""CN"")"
|
||||
|
|
|
6
C000_Intro/Intro/Text_CN.csv
Normal file
6
C000_Intro/Intro/Text_CN.csv
Normal file
|
@ -0,0 +1,6 @@
|
|||
Tag,Content
|
||||
Intro1,Welcome to the Bondage College (Click to continue)
|
||||
Intro2,The game isn't finished so there might be bugs or paths that lead nowhere.
|
||||
Intro3,"There's no goal, you play a girl student on her first day in a kinky college."
|
||||
Intro4,"Reload your browser if you need to restart, you can save between chapters."
|
||||
Intro5,"Be curious and click everywhere, you never know what you will find."
|
|
|
@ -24,35 +24,31 @@ function C007_LunchBreak_Outro_Run() {
|
|||
// Text for eating alone
|
||||
if (C007_LunchBreak_ActorSelect_Actor == "") {
|
||||
if (TextPhase >= 0) DrawText(ctx, GetText("EatAlone1"), 400, 150, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("EatAlone2"), 400, 250, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("EatAlone3"), 400, 350, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("EatAlone4"), 400, 450, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("EatAlone2"), 400, 300, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("EatAlone3"), 400, 450, "White");
|
||||
}
|
||||
|
||||
// Text for no food leave
|
||||
if ((C007_LunchBreak_ActorSelect_Actor != "") && C007_LunchBreak_ActorSelect_NoFood) {
|
||||
if (TextPhase >= 0) DrawText(ctx, GetText("NoFood1"), 400, 150, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("NoFood2"), 400, 250, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("NoFood3"), 400, 350, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("NoFood4"), 400, 450, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("NoFood2"), 400, 300, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("NoFood3"), 400, 450, "White");
|
||||
}
|
||||
|
||||
// Text for early/evil leave
|
||||
if ((C007_LunchBreak_ActorSelect_Actor != "") && (C007_LunchBreak_ActorSelect_EarlyLeave || C007_LunchBreak_ActorSelect_EvilEnding) && !C007_LunchBreak_ActorSelect_NoFood) {
|
||||
if ((TextPhase >= 0) && !C007_LunchBreak_ActorSelect_EvilEnding) DrawText(ctx, GetText("Early1"), 400, 150, "White");
|
||||
if ((TextPhase >= 0) && C007_LunchBreak_ActorSelect_EvilEnding) DrawText(ctx, GetText("Evil1"), 400, 150, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("EvilEarly2"), 400, 250, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("EvilEarly3"), 400, 350, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("EvilEarly4"), 400, 450, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("EvilEarly2"), 400, 300, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("EvilEarly3"), 400, 450, "White");
|
||||
}
|
||||
|
||||
// Text for eating with someone
|
||||
if ((C007_LunchBreak_ActorSelect_Actor != "") && !C007_LunchBreak_ActorSelect_EarlyLeave && !C007_LunchBreak_ActorSelect_EvilEnding && !C007_LunchBreak_ActorSelect_NoFood) {
|
||||
if (TextPhase >= 0) DrawText(ctx, GetText("RegularBonus1"), 400, 150, "White");
|
||||
if ((TextPhase >= 1) && C007_LunchBreak_ActorSelect_BonusDone) DrawText(ctx, GetText("Bonus2"), 400, 250, "White");
|
||||
if ((TextPhase >= 1) && !C007_LunchBreak_ActorSelect_BonusDone) DrawText(ctx, GetText("Regular2"), 400, 250, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("RegularBonus3"), 400, 350, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("RegularBonus4"), 400, 450, "White");
|
||||
if ((TextPhase >= 1) && C007_LunchBreak_ActorSelect_BonusDone) DrawText(ctx, GetText("Bonus2"), 400, 300, "White");
|
||||
if ((TextPhase >= 1) && !C007_LunchBreak_ActorSelect_BonusDone) DrawText(ctx, GetText("Regular2"), 400, 300, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("RegularBonus3"), 400, 450, "White");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,8 +60,8 @@ function C007_LunchBreak_Outro_Click() {
|
|||
TextPhase++;
|
||||
|
||||
// Jump to lunch on phase 3
|
||||
if (TextPhase >= 4) {
|
||||
//SaveMenu("C008", "Intro");
|
||||
if (TextPhase >= 3) {
|
||||
SaveMenu("C008_DramaClass", "Intro");
|
||||
}
|
||||
|
||||
}
|
|
@ -2,18 +2,14 @@ Tag,Content
|
|||
EatAlone1,"Unable or too shy to find a friend, you eat lunch alone."
|
||||
EatAlone2,You find a restaurant near the school and sit by yourself.
|
||||
EatAlone3,"Once your meal is over, you head back for your next class."
|
||||
EatAlone4,The next class will be available in another version.
|
||||
Evil1,You turn around with a grin while she struggles.
|
||||
Early1,"Tired or annoyed, you leave from your lunch break."
|
||||
EvilEarly2,You walk back to the lockers and the bell rings.
|
||||
EvilEarly3,Hurry up! Better not be late for your next class.
|
||||
EvilEarly4,The next class will be available in another version.
|
||||
RegularBonus1,"The bell rings, and you both walk back to school."
|
||||
Regular2,You wave each other goodbye and go to the lockers.
|
||||
Bonus2,"Right before splitting, she blows you a sweet kiss."
|
||||
RegularBonus3,Hurry up! Better not be late for your next class.
|
||||
RegularBonus4,The next class will be available in another version.
|
||||
NoFood1,You're released and the bell rings while you walk back.
|
||||
NoFood2,Your stomach grumbles but there's not enough time.
|
||||
NoFood3,Hurry up! Better not be late for your next class.
|
||||
NoFood4,The next class will be available in another version.
|
||||
|
|
|
BIN
C008_DramaClass/Intro/Background.jpg
Normal file
BIN
C008_DramaClass/Intro/Background.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 129 KiB |
28
C008_DramaClass/Intro/Script.js
Normal file
28
C008_DramaClass/Intro/Script.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Chapter 8 - Drama Class Load
|
||||
function C008_DramaClass_Intro_Load() {
|
||||
|
||||
// Time is always 13:00 on the intro, no timer
|
||||
StopTimer(13.00 * 60 * 60 * 1000);
|
||||
|
||||
}
|
||||
|
||||
// Chapter 8 - Drama Class Run
|
||||
function C008_DramaClass_Intro_Run() {
|
||||
|
||||
// Paints the background
|
||||
var ctx = document.getElementById("MainCanvas").getContext("2d");
|
||||
DrawImage(ctx, CurrentChapter + "/" + CurrentScreen + "/Background.jpg", 0, 0);
|
||||
|
||||
// Write the chapter introduction
|
||||
DrawText(ctx, GetText("Intro1"), 600, 150, "White");
|
||||
if (TextPhase >= 1) DrawText(ctx, GetText("Intro2"), 600, 250, "White");
|
||||
if (TextPhase >= 2) DrawText(ctx, GetText("Intro3"), 600, 350, "White");
|
||||
if (TextPhase >= 3) DrawText(ctx, GetText("Intro4"), 600, 450, "White");
|
||||
|
||||
}
|
||||
|
||||
// Chapter 8 - Drama Class Click
|
||||
function C008_DramaClass_Intro_Click() {
|
||||
TextPhase++;
|
||||
if (TextPhase >= 4) SetScene(CurrentChapter, "JuliaIntro");
|
||||
}
|
5
C008_DramaClass/Intro/Text_EN.csv
Normal file
5
C008_DramaClass/Intro/Text_EN.csv
Normal file
|
@ -0,0 +1,5 @@
|
|||
Tag,Content
|
||||
Intro1,Chapter 8 - Drama Class (Click to continue)
|
||||
Intro2,"After a long lunch break, it's back to classes."
|
||||
Intro3,Your first class this afternoon is Dramaturgy.
|
||||
Intro4,You enter an old theater where Julia is waiting.
|
|
5
C008_DramaClass/JuliaIntro/Intro_EN.csv
Normal file
5
C008_DramaClass/JuliaIntro/Intro_EN.csv
Normal file
|
@ -0,0 +1,5 @@
|
|||
Stage,LoveReq,SubReq,VarReq,IntroText,Image
|
||||
0,0,0,,OooOOOoh! The new pupil!|Can I have a big hug from you?,Julia.jpg
|
||||
10,0,0,,,JuliaHug.jpg
|
||||
20,0,0,,OooOOOoh! The new pupil!|Welcome to the Drama class!,Julia.jpg
|
||||
30,0,0,,,Julia.jpg
|
|
BIN
C008_DramaClass/JuliaIntro/Julia.jpg
Normal file
BIN
C008_DramaClass/JuliaIntro/Julia.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 70 KiB |
BIN
C008_DramaClass/JuliaIntro/JuliaHug.jpg
Normal file
BIN
C008_DramaClass/JuliaIntro/JuliaHug.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 90 KiB |
30
C008_DramaClass/JuliaIntro/Script.js
Normal file
30
C008_DramaClass/JuliaIntro/Script.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
var C008_DramaClass_JuliaIntro_CurrentStage = 0;
|
||||
|
||||
// Chapter 8 - Julia Intro Load
|
||||
function C008_DramaClass_JuliaIntro_Load() {
|
||||
|
||||
// Set the timer limits at 14:00
|
||||
StartTimer(14 * 60 * 60 * 1000, "C008_DramaClass", "Outro");
|
||||
|
||||
// Load the scene parameters
|
||||
ActorLoad("Julia", "");
|
||||
LoadInteractions();
|
||||
LeaveIcon = "";
|
||||
|
||||
// If Julia doesn't like the player, we skip the "hug" intro
|
||||
if (ActorGetValue(ActorLove) < 1) C008_DramaClass_JuliaIntro_CurrentStage = 20;
|
||||
|
||||
}
|
||||
|
||||
// Chapter 8 - Julia Intro Run
|
||||
function C008_DramaClass_JuliaIntro_Run() {
|
||||
BuildInteraction(C008_DramaClass_JuliaIntro_CurrentStage);
|
||||
}
|
||||
|
||||
// Chapter 8 - Julia Click
|
||||
function C008_DramaClass_JuliaIntro_Click() {
|
||||
|
||||
// Regular interactions
|
||||
ClickInteraction(C008_DramaClass_JuliaIntro_CurrentStage);
|
||||
|
||||
}
|
10
C008_DramaClass/JuliaIntro/Stage_EN.csv
Normal file
10
C008_DramaClass/JuliaIntro/Stage_EN.csv
Normal file
|
@ -0,0 +1,10 @@
|
|||
Stage,LoveReq,SubReq,VarReq,Interaction,Result,NextStage,LoveMod,SubMod,Function
|
||||
0,0,0,,Come here Julia!|(Hug Julia) (1 minute),Si! (She wraps her arms around|you and squeezes you on her chest.),10,1,0,
|
||||
0,0,0,,A hug? Are you sure?|(Hug Julia) (1 minute),So timid! (She wraps her arms around|you and squeezes you on her chest.),10,1,-1,
|
||||
0,0,0,,"Please, no hug.",Such a shy new pupil.|Welcome to drama class!,20,0,-1,
|
||||
0,0,0,,Forget it Julia.,(She frowns at you but quickly smiles again.)|Welcome to drama class new pupil!,20,-1,1,
|
||||
10,0,0,,That's a nice hug.,Si! I love to give warm hugs!|Welcome to drama class new pupil.,20,0,0,
|
||||
10,0,0,,You give the|best hugs.,Si! I love to give warm hugs!|Welcome to drama class new pupil.,20,0,0,
|
||||
10,0,0,,I cannot breath!,So sorry little new pupil.|Welcome to drama class!,20,0,-1,
|
||||
10,0,0,,(Kiss her breast.),"No, no, no, new pupil.|Welcome to drama class.",20,-1,0,
|
||||
20,0,0,,Drama class?,Si! Today you will repeat a role|for a theater act we are preparing.,30,0,0,
|
|
1
C008_DramaClass/JuliaIntro/Text_EN.csv
Normal file
1
C008_DramaClass/JuliaIntro/Text_EN.csv
Normal file
|
@ -0,0 +1 @@
|
|||
Tag,Content
|
|
Binary file not shown.
Before ![]() (image error) Size: 21 KiB After ![]() (image error) Size: 15 KiB ![]() ![]() |
|
@ -8,8 +8,13 @@ function C999_Common_GameLoad_Load() {
|
|||
|
||||
// Chapter Common - GameLoad Run
|
||||
function C999_Common_GameLoad_Run() {
|
||||
|
||||
// Build the game loading screen
|
||||
SaveStateSlotSummary();
|
||||
BuildInteraction(C999_Common_GameLoad_CurrentStage);
|
||||
BuildInteraction(C999_Common_GameLoad_CurrentStage);
|
||||
var ctx = document.getElementById("MainCanvas").getContext("2d");
|
||||
DrawText(ctx, GetText("LoadGame"), 900, 420, "black");
|
||||
|
||||
}
|
||||
|
||||
// Chapter Common - GameLoad Click
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Slot
|
||||
Chapter,Chapter
|
||||
LoadGame,Load a game
|
||||
|
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Slot
|
||||
Chapter,Chapter
|
||||
LoadGame,Load a game
|
||||
|
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Partie
|
||||
Chapter,Chapitre
|
||||
LoadGame,Charger une partie
|
||||
|
|
|
Binary file not shown.
Before ![]() (image error) Size: 24 KiB After ![]() (image error) Size: 15 KiB ![]() ![]() |
|
@ -11,8 +11,13 @@ function C999_Common_GameSave_Load() {
|
|||
|
||||
// Chapter Common - GameSave Run
|
||||
function C999_Common_GameSave_Run() {
|
||||
|
||||
// Build the game saving screen
|
||||
SaveStateSlotSummary();
|
||||
BuildInteraction(C999_Common_GameSave_CurrentStage);
|
||||
var ctx = document.getElementById("MainCanvas").getContext("2d");
|
||||
DrawText(ctx, GetText("SaveGame"), 900, 420, "black");
|
||||
|
||||
}
|
||||
|
||||
// Chapter Common - GameSave Click
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Slot
|
||||
Chapter,Chapter
|
||||
SaveGame,Save your game
|
||||
|
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Slot
|
||||
Chapter,Chapter
|
||||
SaveGame,Save your game
|
||||
|
|
|
|
@ -1 +1,4 @@
|
|||
Tag,Content
|
||||
Slot,Partie
|
||||
Chapter,Chapitre
|
||||
SaveGame,Sauvegarder votre partie
|
||||
|
|
|
|
@ -125,8 +125,8 @@ function ReadCSV(Array, FileName) {
|
|||
|
||||
// Returns a working language if translation isn't fully ready
|
||||
function GetWorkingLanguage() {
|
||||
if ((CurrentLanguageTag == "FR") && ((CurrentChapter == "C000_Intro") || (CurrentChapter == "C001_BeforeClass") || (CurrentChapter == "C999_Common"))) return "FR";
|
||||
if ((CurrentLanguageTag == "CN") && (CurrentChapter == "C000_Intro")) return "CN";
|
||||
if ((CurrentLanguageTag == "FR") && ((CurrentChapter == "C000_Intro") || (CurrentChapter == "C001_BeforeClass") || (CurrentChapter == "C002_FirstClass") || (CurrentChapter == "C999_Common"))) return "FR";
|
||||
if ((CurrentLanguageTag == "CN") && ((CurrentChapter == "C000_Intro") || (CurrentChapter == "C005_GymClass") || (CurrentChapter == "C999_Common"))) return "CN";
|
||||
return "EN";
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ function GetText(Tag) {
|
|||
Tag = Tag.trim().toUpperCase();
|
||||
for (var T = 0; T < CurrentText.length; T++)
|
||||
if (CurrentText[T][TextTag].trim().toUpperCase() == Tag)
|
||||
return CurrentText[T][TextContent];
|
||||
return CurrentText[T][TextContent].trim();
|
||||
|
||||
// Returns an error message
|
||||
return "MISSING TEXT FOR TAG: " + Tag;
|
||||
|
|
|
@ -19,7 +19,7 @@ function SaveStateGetSummary(SlotNumber) {
|
|||
if (localStorage.getItem("SaveGameVersion" + SN) == SaveGameVersion) {
|
||||
var SaveStateChapter = localStorage.getItem("CurrentChapter" + SN);
|
||||
var SaveStateDateTime = localStorage.getItem("SaveGameDateTime" + SN);
|
||||
Summary = "Slot " + SN + " - Chapter " + SaveStateChapter.substring(3, 4) + "|" + SaveStateDateTime;
|
||||
Summary = GetText("Slot") + " " + SN + " - " + GetText("Chapter") + " " + SaveStateChapter.substring(3, 4) + "|" + SaveStateDateTime;
|
||||
}
|
||||
|
||||
// Returns the summary
|
||||
|
@ -31,7 +31,7 @@ function SaveStateGetSummary(SlotNumber) {
|
|||
function SaveStateSlotSummary() {
|
||||
|
||||
// If the current stage is loaded
|
||||
if (CurrentStage != null)
|
||||
if ((CurrentStage != null) && (CurrentText != null))
|
||||
if (CurrentStage[1][StageInteractionText] == "Slot 1") {
|
||||
|
||||
// For each save slots, we load the summary
|
||||
|
|
|
@ -79,6 +79,8 @@
|
|||
<script src="C007_LunchBreak/Jennifer/Script.js"></script>
|
||||
<script src="C007_LunchBreak/JenniferTennis/Script.js"></script>
|
||||
<script src="C007_LunchBreak/Outro/Script.js"></script>
|
||||
<script src="C008_DramaClass/Intro/Script.js"></script>
|
||||
<script src="C008_DramaClass/JuliaIntro/Script.js"></script>
|
||||
<script src="C999_Common/GameLoad/Script.js"></script>
|
||||
<script src="C999_Common/GameSave/Script.js"></script>
|
||||
<script src="C999_Common/Player/Script.js"></script>
|
||||
|
|
Loading…
Add table
Reference in a new issue