Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
To Do Break Down
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
breakdown
To Do Break Down
Commits
a4f53ad2
Commit
a4f53ad2
authored
Dec 07, 2021
by
Julia Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Banana now disappears after Do Lab cutscene
parent
86df6fd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
Event Handler.gd
Event Handler.gd
+3
-1
Test room 1.tscn
Main rooms/Test room 1.tscn
+5
-5
Terrarium.gd
Scripts/Terrarium.gd
+3
-3
No files found.
Event Handler.gd
View file @
a4f53ad2
...
@@ -93,6 +93,8 @@ func _start_lab(): # trying the lab the first time, adds the new quests
...
@@ -93,6 +93,8 @@ func _start_lab(): # trying the lab the first time, adds the new quests
quests.add("Feed Banana")
quests.add("Feed Banana")
newQuests = true
newQuests = true
movementHandle.finishTutorial()
movementHandle.finishTutorial()
#change sprite for terrarium
bedroom.get_node("Terrarium").flavorText = "OMG! Where did Banana go??"
func _add_quest(questName):
func _add_quest(questName):
print("Added "+questName)
print("Added "+questName)
...
@@ -126,7 +128,7 @@ func getClean():
...
@@ -126,7 +128,7 @@ func getClean():
return bathroomClean
return bathroomClean
func _foundBanana():
func _foundBanana():
quests.finishQuest("Find Banana")
#
quests.finishQuest("Find Banana")
foundBanana = true
foundBanana = true
# ----------------- Notebook puzzle events -----------------
# ----------------- Notebook puzzle events -----------------
func _enter_notebook_laundry(): # trying to engage in the notebook puzzle for doing laundry
func _enter_notebook_laundry(): # trying to engage in the notebook puzzle for doing laundry
...
...
Main rooms/Test room 1.tscn
View file @
a4f53ad2
...
@@ -26,10 +26,10 @@ load_path = "res://.import/placeholder item.png-cd6e4c1231156687d87915032ec4361d
...
@@ -26,10 +26,10 @@ load_path = "res://.import/placeholder item.png-cd6e4c1231156687d87915032ec4361d
[sub_resource type="RectangleShape2D" id=4]
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 16.0697, 9.41678 )
extents = Vector2( 16.0697, 9.41678 )
[sub_resource type="RectangleShape2D" id=
1
5]
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 16.0423, 12.4535 )
extents = Vector2( 16.0423, 12.4535 )
[sub_resource type="StreamTexture" id=
1
6]
[sub_resource type="StreamTexture" id=6]
flags = 4
flags = 4
load_path = "res://.import/trail 3.png-9960f4c5b964f5aca36ca6c97e309a5d.stex"
load_path = "res://.import/trail 3.png-9960f4c5b964f5aca36ca6c97e309a5d.stex"
...
@@ -103,7 +103,7 @@ __meta__ = {
...
@@ -103,7 +103,7 @@ __meta__ = {
"_edit_group_": true
"_edit_group_": true
}
}
interactable = true
interactable = true
flavorText = "
OMG! Where did Banana go??
"
flavorText = "
Hello, my little yellow daughter.
"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Terrarium"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Terrarium"]
position = Vector2( -0.433167, 2.2196 )
position = Vector2( -0.433167, 2.2196 )
...
@@ -149,13 +149,13 @@ interactable = true
...
@@ -149,13 +149,13 @@ interactable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Laptop"]
position = Vector2( -16.4264, -2.27527 )
position = Vector2( -16.4264, -2.27527 )
scale = Vector2( 5, 5 )
scale = Vector2( 5, 5 )
shape = SubResource(
1
5 )
shape = SubResource( 5 )
[node name="Sprite" type="Sprite" parent="Laptop/CollisionShape2D"]
[node name="Sprite" type="Sprite" parent="Laptop/CollisionShape2D"]
visible = false
visible = false
position = Vector2( -0.277301, -0.137165 )
position = Vector2( -0.277301, -0.137165 )
scale = Vector2( 0.0197574, 0.0197574 )
scale = Vector2( 0.0197574, 0.0197574 )
texture = SubResource(
1
6 )
texture = SubResource( 6 )
[node name="Bathroom door" type="StaticBody2D" parent="."]
[node name="Bathroom door" type="StaticBody2D" parent="."]
position = Vector2( 588.187, 226.932 )
position = Vector2( 588.187, 226.932 )
...
...
Scripts/Terrarium.gd
View file @
a4f53ad2
...
@@ -7,10 +7,10 @@ func _ready():
...
@@ -7,10 +7,10 @@ func _ready():
func mouseInteraction():
func mouseInteraction():
.mouseInteraction()
.mouseInteraction()
if flavorText
!= "Okay... if I were a lizard, where would I be
?":
if flavorText
== "OMG! Where did Banana go?
?":
emit_signal("checked", "Find Banana")
#
emit_signal("checked", "Find Banana")
flavorText = "Okay... if I were a lizard, where would I be?"
flavorText = "Okay... if I were a lizard, where would I be?"
func passEvent(handler):
func passEvent(handler):
connect("checked", handler,"_add_quest")
#
connect("checked", handler,"_add_quest")
pass
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment