Skip to content

Commit

Permalink
feat(audio): play music lofi beat
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 15, 2024
1 parent 89dc4e0 commit d50bcca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Binary file added game/audio/lofi.ogg
Binary file not shown.
Binary file added game/audio/lofi_beat.ogg
Binary file not shown.
7 changes: 6 additions & 1 deletion game/personality_test.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ default extrovert = 0
default introvert = 0

label personality_test:
teacher "I’m going to ask a few questions to understand how you’re feeling. This will help me understand you better."
teacher "I’m going to ask you a few questions. This will help me understand you better."

menu:
"Sure!":
pass

teacher "It’s Friday night and raining. What are you thinking?"
menu:
Expand Down Expand Up @@ -38,5 +42,6 @@ label personality_test:
show teacher smile at scale(0.6), center
teacher "Thanks for your honesty. Remember that knowing yourself and taking care of your mental health is as important as taking care of your physical health."
teacher "See you later in class."
stop music fadeout 4

jump act_1
6 changes: 5 additions & 1 deletion game/script.rpy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
default affection = 0

label start:
play music "lofi.ogg" fadein 1.2

"I see my psychology teacher walking up to me..."

scene bg uni
Expand All @@ -11,12 +13,14 @@ label start:

# Ask the player for a name.
python:
player_name = renpy.input("Hey there! What’s your name?", length=32)
player_name = renpy.input("Hi there! What’s your name?", length=32)
player_name = player_name.strip()

if not player_name:
player_name = "Player"

queue music "lofi_beat.ogg"

show teacher smile at scale(0.6), center

teacher "Nice to meet you, [player_name]!"
Expand Down

0 comments on commit d50bcca

Please sign in to comment.