Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RyderKeeny committed Nov 5, 2024
2 parents 47b5bee + 619379c commit 47b0083
Show file tree
Hide file tree
Showing 51 changed files with 1,139 additions and 171 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Bytes of Love
on:
- push
- pull_request

jobs:
renpy-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Extract short commit hash
shell: bash
run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
id: ref

- name: Setup Ren'Py and Build
run: |
wget https://www.renpy.org/dl/8.3.2/renpy-8.3.2-sdk.tar.bz2
tar -xf renpy-8.3.2-sdk.tar.bz2
( cd renpy-8.3.2-sdk && ./renpy.sh launcher distribute ../BytesOfLove --destination ../dist --package win --package mac --package linux )
- name: Process Files
run: python .github/workflows/process.py ${{ steps.ref.outputs.git_hash }}

- name: Upload Linux Build
uses: actions/upload-artifact@v4
with:
name: BytesOfLove-linux-${{ steps.ref.outputs.git_hash }}
path: dist/BytesOfLove-linux-${{ steps.ref.outputs.git_hash }}.tar.bz2
compression-level: 0

- name: Upload Mac Build
uses: actions/upload-artifact@v4
with:
name: BytesOfLove-mac-${{ steps.ref.outputs.git_hash }}
path: dist/BytesOfLove-mac-${{ steps.ref.outputs.git_hash }}.zip
compression-level: 0

- name: Upload Windows Build
uses: actions/upload-artifact@v4
with:
name: BytesOfLove-win-${{ steps.ref.outputs.git_hash }}
path: dist/BytesOfLove-win-${{ steps.ref.outputs.git_hash }}
31 changes: 31 additions & 0 deletions .github/workflows/process.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import sys
from pathlib import Path
from zipfile import ZipFile

commit_hash = sys.argv[1]

files = Path("dist").glob('*')

for a_file in files:
if not a_file.is_file():
continue

if a_file.suffix == ".zip":
platform = a_file.stem.split("-")[-1].removesuffix(".zip")

if platform == "win":
print("Extracting", a_file)
with ZipFile(a_file, 'r') as zip_ref:
zip_ref.extractall(f"dist/BytesOfLove-{platform}-{commit_hash}")
print("Extracted", a_file)
else:
# due to https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss,
# we don't want to extract the file in the fears of losing certain permissions
# windows doesn't care though
print("Renaming", a_file)
a_file.rename(f"dist/BytesOfLove-{platform}-{commit_hash}.zip")

elif a_file.suffix == ".bz2":
# see above
print("Renaming", a_file)
a_file.rename("dist/BytesOfLove-linux-" + commit_hash + ".tar.bz2")
8 changes: 8 additions & 0 deletions BytesOfLove/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"files.exclude": {
"**/*.rpyc": true,
"**/*.rpa": true,
"**/*.rpymc": true,
"**/cache/": true
}
}
851 changes: 851 additions & 0 deletions BytesOfLove/dialogue.tab

Large diffs are not rendered by default.

Binary file added BytesOfLove/game/backgrounds/campus_pathway.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 BytesOfLove/game/backgrounds/dining-hall.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 BytesOfLove/game/backgrounds/driving-car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 BytesOfLove/game/backgrounds/hotel-buffet.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 BytesOfLove/game/backgrounds/hotel-room-day.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 BytesOfLove/game/backgrounds/hotel-room-night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 BytesOfLove/game/backgrounds/office.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 BytesOfLove/game/backgrounds/parking-lot.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 BytesOfLove/game/backgrounds/starting-car.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 BytesOfLove/game/backgrounds/statue-garden.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 BytesOfLove/game/backgrounds/vending-machine.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 12 additions & 6 deletions BytesOfLove/game/gui.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ define config.check_conflicting_properties = True
## The colors of text in the interface.

## An accent color used throughout the interface to label and highlight text.
define gui.accent_color = '#0099cc'
define gui.accent_color = '#ffcfb6'

## The color used for a text button when it is neither selected nor hovered.
define gui.idle_color = '#888888'
define gui.idle_color = '#FFB6C1'

## The small color is used for small text, which needs to be brighter/darker to
## achieve the same effect.
# //Ryan changed this code changed to Charcoal
define gui.idle_small_color = '#163D3F'
# //makes this text more visible
define gui.idle_small_color = '#f2f2f2'

## The color that is used for buttons and bars that are hovered.
define gui.hover_color = '#00F4FE'#ryan changed it
define gui.hover_color = '#f7e2f4'

## The color used for a text button when it is selected but not focused. A
## button is selected if it is the current screen or preference value.
Expand All @@ -55,7 +55,8 @@ define gui.hover_muted_color = '#005b7a'

#for pink text box
define gui.text_color = '#333333'
define gui.interface_text_color = '#333333'
#for menu text
define gui.interface_text_color = '#f7e2f4'

#DEFAULT
#define gui.text_color = '#ffffff'
Expand Down Expand Up @@ -218,6 +219,7 @@ define gui.choice_button_borders = Borders(150, 8, 150, 8)
define gui.choice_button_text_font = gui.text_font
define gui.choice_button_text_size = gui.text_size
define gui.choice_button_text_xalign = 0.5
define gui.choice_button_text_outlines = [(1, "#000", 1, 1)]
#define gui.choice_button_text_idle_color = '#888888'

#for the choice box font
Expand Down Expand Up @@ -485,3 +487,7 @@ init python:

gui.nvl_button_width = 1860
gui.nvl_button_xpos = 30

## bolds character names
init python:
style.say_label.outlines = [(1, "#000", 0, 0)]
Binary file modified BytesOfLove/game/gui/bar/bottom.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 modified BytesOfLove/game/gui/bar/left.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 modified BytesOfLove/game/gui/bar/right.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 modified BytesOfLove/game/gui/bar/top.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 modified BytesOfLove/game/gui/button/slot_hover_background.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 modified BytesOfLove/game/gui/button/slot_idle_background.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 modified BytesOfLove/game/gui/frame.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 modified BytesOfLove/game/gui/game_menu.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 modified BytesOfLove/game/gui/main_menu.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 modified BytesOfLove/game/gui/overlay/game_menu.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 modified BytesOfLove/game/gui/overlay/main_menu.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 modified BytesOfLove/game/gui/phone/overlay/game_menu.png
Binary file modified BytesOfLove/game/gui/phone/overlay/main_menu.png
Binary file modified BytesOfLove/game/gui/scrollbar/horizontal_hover_bar.png
Binary file modified BytesOfLove/game/gui/scrollbar/horizontal_hover_thumb.png
Binary file modified BytesOfLove/game/gui/scrollbar/horizontal_idle_bar.png
Binary file modified BytesOfLove/game/gui/scrollbar/horizontal_idle_thumb.png
Binary file modified BytesOfLove/game/gui/scrollbar/vertical_hover_bar.png
Binary file modified BytesOfLove/game/gui/scrollbar/vertical_hover_thumb.png
Binary file modified BytesOfLove/game/gui/scrollbar/vertical_idle_bar.png
Binary file modified BytesOfLove/game/gui/scrollbar/vertical_idle_thumb.png
Binary file modified BytesOfLove/game/gui/slider/horizontal_hover_bar.png
Binary file modified BytesOfLove/game/gui/slider/horizontal_hover_thumb.png
Binary file modified BytesOfLove/game/gui/slider/horizontal_idle_bar.png
Binary file modified BytesOfLove/game/gui/slider/horizontal_idle_thumb.png
Binary file modified BytesOfLove/game/gui/slider/vertical_hover_bar.png
Binary file modified BytesOfLove/game/gui/slider/vertical_hover_thumb.png
Binary file modified BytesOfLove/game/gui/slider/vertical_idle_bar.png
Binary file modified BytesOfLove/game/gui/slider/vertical_idle_thumb.png
26 changes: 24 additions & 2 deletions BytesOfLove/game/script.rpy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Transitions
# Transitions
define longer_fade = Fade(0.5, 1.0, 0.5)
define shorter_fade = Fade(0.5, 0.5, 0.5)

Expand Down Expand Up @@ -120,7 +120,7 @@ while true:
return
'''

image instruction_screen = "backgrounds/instruction_screen.png"
image w0_d1_hotel = "backgrounds/w0_d1_hotel.webp"
image w0_d1_vending = "backgrounds/w0_d1_vending.webp"
image w0_d2_sunnyhotel = "backgrounds/w1_d1_sunnyhotel.webp"
Expand All @@ -142,6 +142,27 @@ image w0_d2_statue = "backgrounds/statuev1.webp"
image w0_d3_buffet = "backgrounds/hotelBuffet.jpg"


#new backgrounds
image campus_pathway = "backgrounds/campus_pathway.PNG"
image dining_hall = "backgrounds/dining-hall.PNG"
image driving_car = "backgrounds/driving-car.png"
image empty_lecture_hall = "backgrounds/empty-lecture-hall.png"
image full_lecture_hall = "backgrounds/full-lecture-hall.png"
image hotel_buffet = "backgrounds/hotel-buffet.png"
image hotel_room_day = "backgrounds/hotel-room-day.png"
image hotel-room-night = "backgrounds/hotel-room-night.png"
image office = "backgrounds/office.PNG"
image parking_lot = "backgrounds/parking-lot.png"
image starting_car = "backgrounds/starting-car.png"
image statue_garden = "backgrounds/statue-garden.PNG"
image vending_machine = "backgrounds/vending-machine.PNG"







image w0_d3_Advisor = "backgrounds/ciseDungeon.png"

image w0_d3_parkingLot = "backgrounds/IMG_3556.jpg"
Expand Down Expand Up @@ -208,6 +229,7 @@ init python:
label start:
stop music fadeout 4
# PROLOUGUE
scene instruction_screen with shorter_fade
"Welcome to Bytes of Love! A visual novel currently being developed by the University of Florida's Open Source Club!"
"This is an educational dating simulator where you build relationships with other programming languages that are represented as anime-style characters."
"Throughout the game, these characters will immerse you into computer science and the college experience."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ label w0_d1:
label w0_d1_End:
scene w0_d1_hotel with longer_fade
mc "Man that hit the spot."
mc "What am I going to do with the rest of my night?"
mc "Now what should I do with the rest of my night?"
mc "I know I’ll play some Valorant. I’ve been grinding so I can go from silver to gold."
#Add clock below when it is made - Lazzy
scene w0_d1_hotel with shorter_fade
Expand Down
Loading

0 comments on commit 47b0083

Please sign in to comment.