Skip to content

Commit

Permalink
chore(game): replace dialogue and images
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jun 13, 2024
1 parent 4b1e4e9 commit 8d95318
Show file tree
Hide file tree
Showing 21 changed files with 53 additions and 18 deletions.
Binary file added game/images/bg club.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/bg lecturehall.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/bg meadow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed game/images/bg panorama.webp
Binary file not shown.
Binary file added game/images/bg uni.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed game/images/eileen concerned.png
Binary file not shown.
Binary file removed game/images/eileen happy.png
Binary file not shown.
Binary file removed game/images/eileen vhappy.png
Binary file not shown.
Binary file removed game/images/lucy happy.png
Binary file not shown.
Binary file removed game/images/lucy mad.png
Binary file not shown.
Binary file removed game/images/placeholder boy.png
Binary file not shown.
Binary file removed game/images/placeholder girl.png
Binary file not shown.
Binary file added game/images/sylvie blue giggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie blue normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie blue smile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie blue surprised.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie green giggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie green normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie green smile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/images/sylvie green surprised.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 53 additions & 18 deletions game/script.rpy
Original file line number Diff line number Diff line change
@@ -1,33 +1,68 @@
# The script of the game goes in this file.
# Declare characters used by this game.
define alex = Character("Alex", color="#c8ffc8")
define player = Character("[player_name]", color="#c8c8ff")

# Declare characters used by this game. The color argument colorizes the
# name of the character.
# Variables.
default affection = 0

define e = Character("Eileen")
# The game starts here.
label start:
"I see a cute girl walking up to me..."

# Show a background.
scene bg uni
with fade

# The game starts here.
# Show a character sprite.
show sylvie blue normal
with dissolve

label start:
# Ask player for name.
python:
player_name = renpy.input("Hi there! What's your name?", length=32)
player_name = player_name.strip()

if not player_name:
player_name = "Player"
affection -= 1
else:
affection += 1

# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
show sylvie blue giggle

scene bg panorama
# Display lines of dialogue.
alex "Nice to meet you, [player_name]!"
alex "[player_name], do you want the good or bad ending?"

# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
menu:
"Good ending.":
$ affection += 1
show sylvie blue smile
jump good_ending

show eileen happy
"Bad ending.":
$ affection -= 1
show sylvie blue surprised
jump bad_ending

# These display lines of dialogue.
label good_ending:
if affection > 0:
"Affection: [affection]"

scene black
with dissolve

"{b}Good Ending{/b}."

return

e "You've created a new Ren'Py game."
label bad_ending:
if affection < 0:
"Affection: [affection]"

e "Once you add a story, pictures, and music, you can release it to the world!"
scene black
with dissolve

# This ends the game.
"{b}Bad Ending{/b}."

return

0 comments on commit 8d95318

Please sign in to comment.