initial
This commit is contained in:
BIN
scenes/kq5style/00033-3744560947.png
LFS
Normal file
BIN
scenes/kq5style/00033-3744560947.png
LFS
Normal file
Binary file not shown.
34
scenes/kq5style/00033-3744560947.png.import
Normal file
34
scenes/kq5style/00033-3744560947.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dcet4nhkaieq4"
|
||||
path="res://.godot/imported/00033-3744560947.png-5b2fd6a3d9b748ded776fc895b1ee755.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kq5style/00033-3744560947.png"
|
||||
dest_files=["res://.godot/imported/00033-3744560947.png-5b2fd6a3d9b748ded776fc895b1ee755.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
scenes/kq5style/friendly-guy.png
LFS
Normal file
BIN
scenes/kq5style/friendly-guy.png
LFS
Normal file
Binary file not shown.
34
scenes/kq5style/friendly-guy.png.import
Normal file
34
scenes/kq5style/friendly-guy.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://33uf7jmqbixc"
|
||||
path="res://.godot/imported/friendly-guy.png-3405a0797478c3191d625d0d5ea23fc9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/kq5style/friendly-guy.png"
|
||||
dest_files=["res://.godot/imported/friendly-guy.png-3405a0797478c3191d625d0d5ea23fc9.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
|
||||
34
scenes/kq5style/kq5style.gd
Normal file
34
scenes/kq5style/kq5style.gd
Normal file
@@ -0,0 +1,34 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
var pasture = load("res://scenes/pasture/pasture.tscn")
|
||||
|
||||
func _on_forestexit_interacted():
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"pasture-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path)).and_then(ScriptBuilder.transition(self, pasture, "house-exit-point")).can_interrupt().build(self, "_on_script_complete"))
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func _on_Mushrooms_interacted():
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.say(self.ego, "Nice mushrooms!")).can_interrupt().build(self, "_on_script_complete"))
|
||||
|
||||
|
||||
func _on_friendlyguy_interacted():
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.say(self.ego, "hey simon!")).can_interrupt().build(self, "_on_script_complete"))
|
||||
78
scenes/kq5style/scene.tscn
Normal file
78
scenes/kq5style/scene.tscn
Normal file
@@ -0,0 +1,78 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bo5rug7hu3o4x"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/kq5style/kq5style.gd" id="1_riq82"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcet4nhkaieq4" path="res://scenes/kq5style/00033-3744560947.png" id="2_cbipp"]
|
||||
[ext_resource type="PackedScene" path="res://SetPiece.tscn" id="3_6km4x"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="4_i47w5"]
|
||||
[ext_resource type="Texture2D" uid="uid://bj528xb64cklt" path="res://dragon.png" id="5_ng4rg"]
|
||||
[ext_resource type="Texture2D" uid="uid://33uf7jmqbixc" path="res://scenes/kq5style/friendly-guy.png" id="6_sg6br"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="5"]
|
||||
vertices = PackedVector2Array(502, 423, 450, 515, 19, 509, 107, 455, 390, 403, 488, 392, 740, 396, 888, 513, 751, 509, 679, 430, 659, 340, 295, 325, 363, 325, 699, 302, 774, 298)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4, 5), PackedInt32Array(6, 7, 8, 9, 10), PackedInt32Array(4, 11, 12, 5), PackedInt32Array(13, 14, 6, 10), PackedInt32Array(10, 9, 0, 5)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(740, 396, 774, 298, 699, 302, 659, 340, 488, 392, 363, 325, 295, 325, 390, 403, 107, 455, 19, 509, 450, 515, 502, 423, 679, 430, 751, 509, 888, 513)])
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
position = Vector2(2, 3)
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("1_riq82")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_cbipp")
|
||||
centered = false
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("5")
|
||||
|
||||
[node name="pasture-exit" parent="." instance=ExtResource("3_6km4x")]
|
||||
position = Vector2(22, -475)
|
||||
color = Color(1, 1, 1, 0.392157)
|
||||
polygon = PackedVector2Array(655, 741, 657, 818, 810, 808, 799, 744)
|
||||
label = "To Pasture"
|
||||
|
||||
[node name="pasture-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(755, 310)
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(683, 310)
|
||||
script = ExtResource("4_i47w5")
|
||||
target_scale = 0.2
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(503, 545)
|
||||
script = ExtResource("4_i47w5")
|
||||
target_scale = 0.3
|
||||
|
||||
[node name="Dragon" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(2734, 1796)
|
||||
texture = ExtResource("5_ng4rg")
|
||||
offset = Vector2(3, -175)
|
||||
flip_h = true
|
||||
|
||||
[node name="default-starting-point" type="Node2D" parent="."]
|
||||
position = Vector2(680.5, 380)
|
||||
|
||||
[node name="Mushrooms" parent="." instance=ExtResource("3_6km4x")]
|
||||
position = Vector2(-2009, -1038)
|
||||
color = Color(1, 1, 1, 0.411765)
|
||||
polygon = PackedVector2Array(2567, 1356, 2417, 1335, 2354, 1386, 2501, 1444, 2661, 1426, 2656, 1360)
|
||||
label = "Mushrooms"
|
||||
|
||||
[node name="Friendly-guy" type="Sprite2D" parent="."]
|
||||
z_as_relative = false
|
||||
texture_filter = 1
|
||||
position = Vector2(192, 416.5)
|
||||
texture = ExtResource("6_sg6br")
|
||||
|
||||
[node name="friendlyguy" parent="Friendly-guy" instance=ExtResource("3_6km4x")]
|
||||
color = Color(1, 1, 1, 0.117647)
|
||||
polygon = PackedVector2Array(-21, -84, -63, -25, 59, -13, 36, -89)
|
||||
label = "simon"
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
|
||||
[connection signal="interacted" from="pasture-exit" to="." method="_on_forestexit_interacted"]
|
||||
[connection signal="interacted" from="Mushrooms" to="." method="_on_Mushrooms_interacted"]
|
||||
[connection signal="interacted" from="Friendly-guy/friendlyguy" to="." method="_on_friendlyguy_interacted"]
|
||||
Reference in New Issue
Block a user