I forgor to push the entire fucking project

This commit is contained in:
Jan van der Weide 2025-02-15 19:20:49 +01:00
parent d7da162f84
commit 48f9a4cd9c
73 changed files with 1543 additions and 0 deletions

23
Scripts/character.gd Normal file
View file

@ -0,0 +1,23 @@
extends TextureRect
@export var positive_states: Array[Texture2D]
@export var neutral_states: Array[Texture2D]
@export var negative_states: Array[Texture2D]
var abstraction: int
func _next_page_pos() -> void:
self.texture = positive_states[abstraction]
func _next_page_neu() -> void:
self.texture = neutral_states[abstraction]
func _next_page_neg() -> void:
self.texture = negative_states[abstraction]
func increase() -> void:
if abstraction < neutral_states.size() - 1:
abstraction += 1
func decrease() -> void:
if abstraction > 0:
abstraction -= 1

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://cous3jf1kjrlq"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="1_cnxoo"]
[ext_resource type="Texture2D" uid="uid://c45v02wdjoo2b" path="res://Art/CharacterArt/base_negative.png" id="1_q2era"]
[ext_resource type="Texture2D" uid="uid://cpagb45dckv5l" path="res://Art/CharacterArt/base_neutral.png" id="1_y0rj1"]
[ext_resource type="Texture2D" uid="uid://d3hghpw5pp0an" path="res://Art/CharacterArt/base_positive.png" id="3_h38el"]
[resource]
script = ExtResource("1_cnxoo")
positive_sprite = ExtResource("3_h38el")
neutral_sprite = ExtResource("1_y0rj1")
negative_sprite = ExtResource("1_q2era")

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://c7ylitc7icx46"]
[ext_resource type="Texture2D" uid="uid://c22aws76vqltv" path="res://Art/CharacterArt/first_neutral.png" id="1_d885d"]
[ext_resource type="Texture2D" uid="uid://u4nb6tklytda" path="res://Art/CharacterArt/first_negative.png" id="1_ys21e"]
[ext_resource type="Texture2D" uid="uid://djs8kjnuqdd0x" path="res://Art/CharacterArt/first_positive.png" id="2_vrmib"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="4_d7vfg"]
[resource]
script = ExtResource("4_d7vfg")
positive_sprite = ExtResource("2_vrmib")
neutral_sprite = ExtResource("1_d885d")
negative_sprite = ExtResource("1_ys21e")

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://d08m1j6223bsa"]
[ext_resource type="Texture2D" uid="uid://k0brbg2l14fj" path="res://Art/CharacterArt/second_negative.png" id="1_ga8gw"]
[ext_resource type="Texture2D" uid="uid://d3qnu71uuk81f" path="res://Art/CharacterArt/second_neutral.png" id="1_mxgbt"]
[ext_resource type="Texture2D" uid="uid://b7uibrol7mjof" path="res://Art/CharacterArt/second_positive.png" id="2_uqptd"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="4_eeg5e"]
[resource]
script = ExtResource("4_eeg5e")
positive_sprite = ExtResource("2_uqptd")
neutral_sprite = ExtResource("1_mxgbt")
negative_sprite = ExtResource("1_ga8gw")

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://dl8ix0rnccpe0"]
[ext_resource type="Texture2D" uid="uid://b28v08u5vd322" path="res://Art/CharacterArt/third_negative.png" id="1_6dqvd"]
[ext_resource type="Texture2D" uid="uid://brtlccuaqlum3" path="res://Art/CharacterArt/third_neutral.png" id="1_7g1ls"]
[ext_resource type="Texture2D" uid="uid://cinah0tewvn4" path="res://Art/CharacterArt/third_positive.png" id="2_yxqjg"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="4_23qle"]
[resource]
script = ExtResource("4_23qle")
positive_sprite = ExtResource("2_yxqjg")
neutral_sprite = ExtResource("1_7g1ls")
negative_sprite = ExtResource("1_6dqvd")

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://b1f2mmv1gqy84"]
[ext_resource type="Texture2D" uid="uid://b7pxammtfl1a6" path="res://Art/CharacterArt/fourth_neutral.png" id="1_a2mx4"]
[ext_resource type="Texture2D" uid="uid://b782p7xrru1l0" path="res://Art/CharacterArt/fourth_negative.png" id="1_bqmes"]
[ext_resource type="Texture2D" uid="uid://b780e6ide8ova" path="res://Art/CharacterArt/fourth_positive.png" id="2_jcggh"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="4_e0tmu"]
[resource]
script = ExtResource("4_e0tmu")
positive_sprite = ExtResource("2_jcggh")
neutral_sprite = ExtResource("1_a2mx4")
negative_sprite = ExtResource("1_bqmes")

View file

@ -0,0 +1,12 @@
[gd_resource type="Resource" load_steps=5 format=3 uid="uid://d0axc337vdit6"]
[ext_resource type="Texture2D" uid="uid://dh6cig7bc3d33" path="res://Art/CharacterArt/fith_neutral.png" id="1_0k3xp"]
[ext_resource type="Texture2D" uid="uid://ba1y8d5bgitko" path="res://Art/CharacterArt/fith_negative.png" id="1_7sf0n"]
[ext_resource type="Script" path="res://Scripts/character_state_logic.gd" id="1_kir0d"]
[ext_resource type="Texture2D" uid="uid://cpcynjgfm4am3" path="res://Art/CharacterArt/fith_positive.png" id="2_qs5d6"]
[resource]
script = ExtResource("1_kir0d")
positive_sprite = ExtResource("2_qs5d6")
neutral_sprite = ExtResource("1_0k3xp")
negative_sprite = ExtResource("1_7sf0n")

View file

@ -0,0 +1,10 @@
extends Resource
@export var positive_sprite: Texture
@export var neutral_sprite: Texture
@export var negative_sprite: Texture
func _init(p_positive_sprite = Texture.new(), p_neutral_sprite = Texture.new(), p_negative_sprite = Texture.new()) -> void:
positive_sprite = p_positive_sprite
neutral_sprite = p_neutral_sprite
negative_sprite = p_negative_sprite

35
Scripts/gameplay_scene.gd Normal file
View file

@ -0,0 +1,35 @@
extends Control
var character
var text_label
var positive_button
var neutral_button
var negative_button
var end = false
func _ready() -> void:
character = get_node("Character")
text_label = get_node("HBoxContainer/VBoxContainer/Button")
positive_button = get_node("HBoxContainer/VBoxContainer/Positive")
neutral_button = get_node("HBoxContainer/VBoxContainer/Neutral")
negative_button = get_node("HBoxContainer/VBoxContainer/Negative")
positive_button.button_up.connect(_increase_abstraction)
neutral_button.button_up.connect(_further_story)
negative_button.button_up.connect(_decrease_abstraction)
func _increase_abstraction() -> void:
character.increase()
_further_story()
func _decrease_abstraction() -> void:
character.decrease()
_further_story()
func _further_story() -> void:
text_label.next_page()
positive_button.next_page()
neutral_button.next_page()
negative_button.next_page()

7
Scripts/quit_game.gd Normal file
View file

@ -0,0 +1,7 @@
extends Button
func _ready() -> void:
self.button_up.connect(on_button_up)
func on_button_up():
get_tree().quit()

12
Scripts/start_game.gd Normal file
View file

@ -0,0 +1,12 @@
extends Button
var gameplayScene: PackedScene
func _ready() -> void:
self.button_up.connect(on_button_up)
func on_button_up() -> void:
disabled = true
gameplayScene = load("res://Scenes/gameplay_scene.tscn")
get_tree().change_scene_to_packed(gameplayScene)

101
Scripts/story_button.gd Normal file
View file

@ -0,0 +1,101 @@
extends Button
@onready var character = get_node("/root/GameplayScene/Character")
@export var vibe: String
var text_array: Array[String]
var page = 0
func _ready() -> void:
if self.name == "Positive":
set_text_array_positive()
elif self.name == "Neutral":
set_text_array_neutral()
elif self.name == "Negative":
set_text_array_negative()
character._next_page_neu()
set_text_to_page()
func set_text_to_page() -> void:
self.text = text_array[page]
func next_page() -> void:
if page < text_array.size() - 1:
page += 1
set_text_to_page()
character._next_page_neu()
func set_text_array_positive() -> void:
text_array.push_back("Hey Autumn.\n
I love your name, its perfect for this season.\n
So, what do you do in your daily life?")
text_array.push_back("Thats wonderful!\n
My family always had pets, so naturally I love animals!\n
What do you like to do for fun?")
text_array.push_back("Interesting, you already struck me as the outdoors type who loves nature, I appreciate that.\n
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
text_array.push_back("Thats fascinating,\n
I cant say I have met anyone before who is into taxidermy,\n
but I think its very admirable.")
text_array.push_back("Aww, aside from when it gets a bit scary at night, that sounds very sweet.\n
Anyway, aside from taxidermy, what about being outdoors do you like?")
text_array.push_back("I know what you mean, it always feels so magical when youre in harmony with your surroundings.")
text_array.push_back("Im all about reading too! Getting lost in a good book is such a good way to unwind.")
text_array.push_back("The feeling is mutual, Autumn!\n
I love how passionate you are about what you do.\n
Id love to chat more soon.")
func set_text_array_neutral() -> void:
text_array.push_back("Hey Autumn.\n
Nice to meet you.\n
So, what do you do in your daily life?")
text_array.push_back("Wow, you sound… ambitious.\n
I dont have any pets, but I guess you could say I do like animals.\n
What do you like to do for fun?")
text_array.push_back("Get out of my head, me too!\n
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
text_array.push_back("That sounds cool, do you have a favorite piece?")
text_array.push_back("You seem very passionate, I respect that.\n
Anyway, aside from taxidermy, what about being outdoors do you like?")
text_array.push_back("Well, I know a few trails myself.\n
Maybe youd like to go on a hike together sometimes?")
text_array.push_back("I dont think I would last more than an hour without access to the internet")
text_array.push_back("It was nice to meet you too. I hope you have a good time with your next dates.")
func set_text_array_negative() -> void:
text_array.push_back("Hey “Autumn?”\n
Is that your real name or just some nickname for the season?\n
So, what do you do in your daily life?")
text_array.push_back("That sounds hectic.\n
I dont really like animals, especially sick ones.\n
What do you like to do for fun?")
text_array.push_back("Wow, run of the mill with you it seems.\n
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
text_array.push_back("Taxidermy? Thats kind of weird.\n
By the way, is it me or did you also hear the alarm go off just now?")
text_array.push_back("So in the honor of an old man, youre stuck with a scary lion?\n
How unfortunate.")
text_array.push_back("If I had to walk a long distance with nothing in sight but trees I would be bored out of my mind!")
text_array.push_back("A book? I dont know, I get bored pretty quickly.")
text_array.push_back("Yeah, thanks for the chat. Good luck with the taxidermy, I guess.")

54
Scripts/story_label.gd Normal file
View file

@ -0,0 +1,54 @@
extends Button
var text_array: Array[String]
var page = 0
func _ready() -> void:
set_text_array()
set_text_to_page()
func set_text_to_page() -> void:
self.text = text_array[page]
func next_page() -> void:
if page < text_array.size() - 1:
page += 1
set_text_to_page()
else:
var character = get_node("/root/GameplayScene/Character")
if character.abstraction > 3:
var winScene = load("res://Scenes/win_screen.tscn")
get_tree().change_scene_to_packed(winScene)
else:
var lossScene = load("res://Scenes/loss_screen.tscn")
get_tree().change_scene_to_packed(lossScene)
func set_text_array() -> void:
text_array.push_back("[Autumn]: Hi, Im Autumn.")
text_array.push_back("[Autumn]: I study veterinary medicine and have a part-time job as a veterinary assistant.\n
I handle all sorts of things around the clinic ranging from procedures to comforting pets and making sure things run smoothly.\n
I wouldnt trade it for anything though.\n
Are you an animal person?")
text_array.push_back("[Autumn]: In my spare time I love to go shopping, do yoga and go hiking in nature.\n
My recent addictions include flavored ChapSticks and Pumpkin-Spice Latte.")
text_array.push_back("[Autumn]: Well, I do have a peculiar hobby… its taxidermy.\n
I know its unusual, but I am just fascinated by animals and their anatomy.\n
I collect pieces to appreciate it up close.\n
A lot of people think its strange, but to me its a way to respect the animals and preserve their natural state.")
text_array.push_back("[Autumn]: My favorite piece is that of a lion I inherited from my grandfather.\n
I think part of the reason why I am so fond of it is the memory I have of my grandfather telling me the story of the lions life and how it ended.\n
I must say, the lion can be a bit scary at night though, haha.")
text_array.push_back("[Autumn]: I love the fresh air and being surrounded by nature.\n
When I go hiking it really helps me re-align with nature in contrast to the chaos that working at the clinic can bring.\n
If youre quiet enough during a hike, you might even spot a few animals!")
text_array.push_back("[Autumn]: Sometimes though,\n
Id like to have a little picknick or maybe throw down a blanket and read a good book.")
text_array.push_back("[Autumn]: Thanks, It was a pleasure to meet you.")