It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
65
NPCs/Faire/WanderingWombat/WanderingWombat.dialogue
Normal file
65
NPCs/Faire/WanderingWombat/WanderingWombat.dialogue
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
~ start
|
||||
do DialogueBoxManager.currentSpeaker.Stop_Walk()
|
||||
|
||||
if not get_save_value("PaxFlyQuestStarted", false):
|
||||
% Pax: This faire is filled with incredible amounts of fun.
|
||||
% Pax: Wednesday is my fav day of the week.
|
||||
% Pax: I love folk punk.
|
||||
% Pax: I wonder where they get the watermelons you can win from the wheel. I've never seen them anywhere else.
|
||||
% Pax: Faire food is the best food!
|
||||
% Pax: They charge grapes at the ticket booths, but there are boxes full of tickets in the back where you can easily scavenge them... It's like these animals don't even believe in capitalism. And neither do I!
|
||||
% Pax: My mom made this hat for me. Isn't it so cool?
|
||||
% Pax: People sometimes ask me if I really poop cubes. I do, but that's kinda a weird thing to ask, right?
|
||||
- Do you have a quest => questStart
|
||||
- See you Pax => END
|
||||
|
||||
elif not get_save_value("PaxFlyQuestFlag1", false):
|
||||
% Pax: This faire is filled with incredible amounts of fun.
|
||||
% Pax: Wednesday is my fav day of the week.
|
||||
% Pax: I love folk punk.
|
||||
% Pax: I wonder where they get the watermelons you can win from the wheel. I've never seen them anywhere else.
|
||||
% Pax: Faire food is the best food!
|
||||
% Pax: They charge grapes at the ticket booths, but there are boxes full of tickets in the back where you can easily scavenge them... It's like these animals don't even believe in capitalism. And neither do I!
|
||||
% Pax: My mom made this hat for me. Isn't it so cool?
|
||||
% Pax: People sometimes ask me if I really poop cubes. I do, but that's kinda a weird thing to ask, right?
|
||||
- I got you a balloon! [if DialogueBoxManager.currentSpeaker.balloon_check()] => balloonGive
|
||||
- See you Pax => END
|
||||
elif not get_save_value("PaxFlyQuestFlag2", false)
|
||||
do DialogueBoxManager.currentSpeaker.flying = false
|
||||
Pax: Here is your cloud!
|
||||
do DialogueBoxManager.currentSpeaker.give_cloud()
|
||||
do set_save_value("PaxFlyQuestFlag2", true)
|
||||
do DialogueBoxManager.currentSpeaker.complete_quest()
|
||||
else:
|
||||
% Pax: This faire is filled with incredible amounts of fun.
|
||||
% Pax: Wednesday is my fav day of the week.
|
||||
% Pax: I love folk punk.
|
||||
% Pax: I wonder where they get the watermelons you can win from the wheel. I've never seen them anywhere else.
|
||||
% Pax: Faire food is the best food!
|
||||
% Pax: They charge grapes at the ticket booths, but there are boxes full of tickets in the back where you can easily scavenge them... It's like these animals don't even believe in capitalism. And neither do I!
|
||||
% Pax: My mom made this hat for me. Isn't it so cool?
|
||||
% Pax: People sometimes ask me if I really poop cubes. I do, but that's kinda a weird thing to ask, right?
|
||||
- I got you another balloon! [if DialogueBoxManager.currentSpeaker.balloon_check()] => balloonGive
|
||||
- See you Pax => END
|
||||
=> END
|
||||
|
||||
~ questStart
|
||||
Pax: Well I would really like to try flying.
|
||||
Pax: Unfortunatly my ballon isnt enough to let me do that.
|
||||
Pax: One more ballon should be enough to take off though, would you mind helping me get one?
|
||||
- Of course!
|
||||
do set_save_value("PaxFlyQuestStarted", true)
|
||||
- Sorry maybe later
|
||||
=> END
|
||||
|
||||
~ balloonGive
|
||||
Pax: You got a balloon for me?
|
||||
Pax: Thank you!
|
||||
Pax: I can go get you some cloud!
|
||||
- Continue
|
||||
do DialogueBoxManager.currentSpeaker.take_balloon()
|
||||
do set_save_value("PaxFlew", false)
|
||||
do set_save_value("PaxFlyQuestFlag1", true)
|
||||
do set_save_value("PaxFlyQuestFlag2", false)
|
||||
do DialogueBoxManager.currentSpeaker.fly()
|
||||
=> END
|
||||
15
NPCs/Faire/WanderingWombat/WanderingWombat.dialogue.import
Normal file
15
NPCs/Faire/WanderingWombat/WanderingWombat.dialogue.import
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="dialogue_manager_compiler_11"
|
||||
type="Resource"
|
||||
uid="uid://cy473jl3vaedw"
|
||||
path="res://.godot/imported/WanderingWombat.dialogue-134467cc9ca0168f172167ef94da563e.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://NPCs/Faire/WanderingWombat/WanderingWombat.dialogue"
|
||||
dest_files=["res://.godot/imported/WanderingWombat.dialogue-134467cc9ca0168f172167ef94da563e.tres"]
|
||||
|
||||
[params]
|
||||
|
||||
defaults=true
|
||||
64
NPCs/Faire/WanderingWombat/WonderingWombat.gd
Normal file
64
NPCs/Faire/WanderingWombat/WonderingWombat.gd
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
extends NPC
|
||||
|
||||
var path
|
||||
var pathFollower
|
||||
|
||||
var movementSpeed = 90
|
||||
var stopped = false
|
||||
var flying = false
|
||||
|
||||
var lastX = 0
|
||||
|
||||
# temp sugar until balloon is added
|
||||
var balloonItem = preload("res://Items/Toys/Other/Balloon.gd")
|
||||
var cloudItem = preload("res://Items/Natural/Cloud.gd")
|
||||
|
||||
func _ready():
|
||||
characterName = "Pax"
|
||||
pronouns = "fae/faer"
|
||||
|
||||
pathFollower = get_parent()
|
||||
|
||||
func _process(delta):
|
||||
if stopped:
|
||||
return
|
||||
pathFollower.progress += movementSpeed * delta
|
||||
|
||||
if pathFollower.position.x < lastX:
|
||||
$Sprite.flip_h = false
|
||||
else:
|
||||
$Sprite.flip_h = true
|
||||
|
||||
lastX = pathFollower.position.x
|
||||
|
||||
func complete_quest():
|
||||
if !QuestManager.is_completed("Wombat in the Sky"):
|
||||
SaveManager.set_save_value("PaxFlyQuestCompleted", true)
|
||||
QuestManager.complete_quest("Wombat in the Sky")
|
||||
|
||||
func balloon_check():
|
||||
if InventoryManager.check_if_in_inventory(balloonItem.new()):
|
||||
return true
|
||||
else:
|
||||
return false
|
||||
|
||||
func take_balloon():
|
||||
InventoryManager.spend_item(balloonItem.new())
|
||||
|
||||
func fly():
|
||||
flying = true
|
||||
$AnimationPlayer.play("Fly")
|
||||
|
||||
func Stop_Walk():
|
||||
stopped = true
|
||||
$Sprite.stop()
|
||||
|
||||
func dialogue_cancel():
|
||||
if not flying:
|
||||
stopped = false
|
||||
$Sprite.play()
|
||||
|
||||
func give_cloud():
|
||||
InventoryManager.add_item_to_inventory(cloudItem.new())
|
||||
|
||||
|
||||
154
NPCs/Faire/WanderingWombat/WonderingWombat.tscn
Normal file
154
NPCs/Faire/WanderingWombat/WonderingWombat.tscn
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://vb2fwda5v6vt"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://doqfsp7yxools" path="res://NPCs/NPC.tscn" id="1_72tgs"]
|
||||
[ext_resource type="Script" path="res://NPCs/Faire/WanderingWombat/WonderingWombat.gd" id="2_to1ph"]
|
||||
[ext_resource type="Texture2D" uid="uid://bb5e3gx1wpt4v" path="res://NPCs/Faire/WanderingWombat/wombat.png" id="2_ys4ac"]
|
||||
[ext_resource type="Resource" uid="uid://cy473jl3vaedw" path="res://NPCs/Faire/WanderingWombat/WanderingWombat.dialogue" id="3_cmgp3"]
|
||||
[ext_resource type="Texture2D" uid="uid://mbtoll4cbme1" path="res://NPCs/Faire/WanderingWombat/wombat2.png" id="3_jc0yt"]
|
||||
[ext_resource type="Script" path="res://Utils/PlayOnReady.gd" id="4_yg3b3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5s8io2jx2j6o" path="res://Items/Toys/Other/Sprites/Balloon.png" id="7_jue8o"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_sjq6o"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_ys4ac")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_jc0yt")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1bp0g"]
|
||||
radius = 8.0
|
||||
height = 68.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ulkb0"]
|
||||
resource_name = "Fly"
|
||||
length = 5.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite/Balloon2:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 4.9),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [true, false]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Sprite:scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 2.5, 5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1), Vector2(1.5, 1.5), Vector2(1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Sprite:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 2.5, 5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(-1, -67), Vector2(-1, -1000), Vector2(-1, -67)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_t5eme"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite/Balloon2:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Sprite:scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Sprite:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(-1, -67)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_eskml"]
|
||||
_data = {
|
||||
"Fly": SubResource("Animation_ulkb0"),
|
||||
"RESET": SubResource("Animation_t5eme")
|
||||
}
|
||||
|
||||
[node name="WanderingWombat" instance=ExtResource("1_72tgs")]
|
||||
script = ExtResource("2_to1ph")
|
||||
dialogueResource = ExtResource("3_cmgp3")
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
position = Vector2(-1, -67)
|
||||
sprite_frames = SubResource("SpriteFrames_sjq6o")
|
||||
frame_progress = 0.899393
|
||||
script = ExtResource("4_yg3b3")
|
||||
|
||||
[node name="Balloon2" type="Sprite2D" parent="Sprite" index="0"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
position = Vector2(9, -7)
|
||||
scale = Vector2(2.05, 1.7)
|
||||
texture = ExtResource("7_jue8o")
|
||||
|
||||
[node name="Panel" parent="Interactable" index="1"]
|
||||
offset_left = -51.0
|
||||
offset_top = -41.0
|
||||
offset_right = 51.0
|
||||
offset_bottom = 22.0
|
||||
|
||||
[node name="InteractionArea" parent="Talkable" index="0"]
|
||||
visible = false
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="3"]
|
||||
position = Vector2(7, 12)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_1bp0g")
|
||||
disabled = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="4"]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_eskml")
|
||||
}
|
||||
|
||||
[editable path="Interactable"]
|
||||
[editable path="Interactable/ActionMenu"]
|
||||
[editable path="Talkable"]
|
||||
BIN
NPCs/Faire/WanderingWombat/wombat.png
Normal file
BIN
NPCs/Faire/WanderingWombat/wombat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
34
NPCs/Faire/WanderingWombat/wombat.png.import
Normal file
34
NPCs/Faire/WanderingWombat/wombat.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bb5e3gx1wpt4v"
|
||||
path="res://.godot/imported/wombat.png-e57636e0cb3986eb775fc76cbdcf33f9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://NPCs/Faire/WanderingWombat/wombat.png"
|
||||
dest_files=["res://.godot/imported/wombat.png-e57636e0cb3986eb775fc76cbdcf33f9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
NPCs/Faire/WanderingWombat/wombat2.png
Normal file
BIN
NPCs/Faire/WanderingWombat/wombat2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
34
NPCs/Faire/WanderingWombat/wombat2.png.import
Normal file
34
NPCs/Faire/WanderingWombat/wombat2.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://mbtoll4cbme1"
|
||||
path="res://.godot/imported/wombat2.png-1a7f756a4ed0ab5d47eaca81685196d5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://NPCs/Faire/WanderingWombat/wombat2.png"
|
||||
dest_files=["res://.godot/imported/wombat2.png-1a7f756a4ed0ab5d47eaca81685196d5.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
NPCs/Faire/WanderingWombat/wombat3.png
Normal file
BIN
NPCs/Faire/WanderingWombat/wombat3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
34
NPCs/Faire/WanderingWombat/wombat3.png.import
Normal file
34
NPCs/Faire/WanderingWombat/wombat3.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d1hibnkvfd0iv"
|
||||
path="res://.godot/imported/wombat3.png-3497b19ea7e4de8480109d68e5c388ad.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://NPCs/Faire/WanderingWombat/wombat3.png"
|
||||
dest_files=["res://.godot/imported/wombat3.png-3497b19ea7e4de8480109d68e5c388ad.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue