-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
441 additions
and
42 deletions.
There are no files selected for viewing
Submodule assets
updated
6 files
+ − | graphics/characters/Friend.png | |
+ − | graphics/characters/ProDivMem.png | |
+ − | graphics/titlelogo.png | |
+3 −3 | maps/default.tsx | |
+13 −16 | maps/level1.tmx | |
+1 −1 | maps/level3.tmx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
core/src/me/srikavin/fbla/game/dialogue/callable/DialogueAnimal.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package me.srikavin.fbla.game.dialogue.callable | ||
|
||
import me.srikavin.fbla.game.dialogue.DialogueCallable | ||
|
||
class DialogueAnimal : DialogueCallable() { | ||
|
||
override fun run() { | ||
say("Do you like animals?") | ||
var index = getResponse(listOf("Kind of", "They're lovely", "I hate them")) | ||
|
||
if (index == 0) { | ||
updateScore(0) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
say("How much experience do you have with them?") | ||
index = getResponse(listOf("Enough", "None")) | ||
|
||
if (index == 0) { | ||
updateScore(1) | ||
} | ||
if (index == 1) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Why do you want to work with them?") | ||
index = getResponse(listOf("It's a passion of mine", "To further my progress in my award.", "No clue, I was told to show up here")) | ||
|
||
if (index == 0) { | ||
updateScore(1) | ||
} | ||
if (index == 1) { | ||
updateScore(0) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Which animals would you like to work with?") | ||
index = getResponse(listOf("Cats", "Dogs", "Horses")) | ||
|
||
if (index == 0) { | ||
updateScore(1) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(1) | ||
} | ||
|
||
say("Hope you have fun!") | ||
index = getResponse(listOf("Sure", "I will!", "I wish I would.")) | ||
|
||
if (index == 0) { | ||
updateScore(0) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
|
||
val score = getScore() | ||
if (score > 0) { | ||
say("You've completed your volunteering!") | ||
} | ||
if (score <= 0) { | ||
say("They kicked you out.") | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
core/src/me/srikavin/fbla/game/dialogue/callable/DialogueBlog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package me.srikavin.fbla.game.dialogue.callable | ||
|
||
import me.srikavin.fbla.game.dialogue.DialogueCallable | ||
|
||
class DialogueBlog : DialogueCallable() { | ||
|
||
override fun run() { | ||
say("Title?") | ||
var index = getResponse(listOf("The adventures of FBLA", "Business Achievement Award ultimate guide", "Funny blog")) | ||
|
||
if (index == 0) { | ||
updateScore(0) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Format?") | ||
index = getResponse(listOf("Organized", "Thrown Together")) | ||
|
||
if (index == 0) { | ||
updateScore(1) | ||
} | ||
if (index == 1) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Topic?") | ||
index = getResponse(listOf("BAA Award", "Every-day life of FBLA president", "Memes")) | ||
|
||
if (index == 0) { | ||
updateScore(1) | ||
} | ||
if (index == 1) { | ||
updateScore(0) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Color scheme?") | ||
index = getResponse(listOf("Green and purple", "Gold and blue", "Orange and yellow")) | ||
|
||
if (index == 0) { | ||
updateScore(-1) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
say("Ads?") | ||
index = getResponse(listOf("Sometimes", "No", "Yes")) | ||
|
||
if (index == 0) { | ||
updateScore(0) | ||
} | ||
if (index == 1) { | ||
updateScore(1) | ||
} | ||
if (index == 2) { | ||
updateScore(-1) | ||
} | ||
|
||
|
||
val score = getScore() | ||
if (score > 0) { | ||
say("You've successfully created a blog!") | ||
} | ||
if (score <= 0) { | ||
say("Time to start over!") | ||
} | ||
} | ||
} |
Oops, something went wrong.