Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
eda6286cc2 | ||
|
3db440b7a9 | ||
|
41db52db5c | ||
|
01051a3205 | ||
|
614376e369 |
@ -1,7 +1,7 @@
|
|||||||
extends Camera2D
|
extends Camera2D
|
||||||
|
|
||||||
onready var topLeft = $Limits/TopLeft
|
@onready var topLeft = $Limits/TopLeft
|
||||||
onready var bottomRight = $Limits/BottomRight
|
@onready var bottomRight = $Limits/BottomRight
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
limit_top = topLeft.position.y
|
limit_top = topLeft.position.y
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
[node name="Camera2D" type="Camera2D"]
|
[node name="Camera2D" type="Camera2D"]
|
||||||
position = Vector2( 160, 90 )
|
position = Vector2( 160, 90 )
|
||||||
current = true
|
current = true
|
||||||
smoothing_enabled = true
|
position_smoothing_enabled = true
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="Limits" type="Node" parent="."]
|
[node name="Limits" type="Node" parent="."]
|
||||||
|
|
||||||
[node name="TopLeft" type="Position2D" parent="Limits"]
|
[node name="TopLeft" type="Marker2D" parent="Limits"]
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_gizmo_extents_": 10.2
|
"_gizmo_extents_": 10.2
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="BottomRight" type="Position2D" parent="Limits"]
|
[node name="BottomRight" type="Marker2D" parent="Limits"]
|
||||||
position = Vector2( 320, 180 )
|
position = Vector2( 320, 180 )
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
extends AnimatedSprite
|
extends AnimatedSprite2D
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
connect("animation_finished", self, "_on_animation_finished")
|
|
||||||
frame = 0
|
frame = 0
|
||||||
play("Animate")
|
play("Animate")
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/EnemyDeathEffect.png-b5f2aceef00ffbc3c194806ee7af6666.stex"
|
uid="uid://bmfqf7no8uc14"
|
||||||
|
path="res://.godot/imported/EnemyDeathEffect.png-b5f2aceef00ffbc3c194806ee7af6666.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Effects/EnemyDeathEffect.png"
|
source_file="res://Effects/EnemyDeathEffect.png"
|
||||||
dest_files=[ "res://.import/EnemyDeathEffect.png-b5f2aceef00ffbc3c194806ee7af6666.stex" ]
|
dest_files=["res://.godot/imported/EnemyDeathEffect.png-b5f2aceef00ffbc3c194806ee7af6666.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,63 +1,95 @@
|
|||||||
[gd_scene load_steps=15 format=2]
|
[gd_scene load_steps=15 format=3 uid="uid://bv2jjgk6veq4l"]
|
||||||
|
|
||||||
[ext_resource path="res://Effects/Effect.gd" type="Script" id=1]
|
[ext_resource type="Script" path="res://Effects/Effect.gd" id="1"]
|
||||||
[ext_resource path="res://Effects/EnemyDeathEffect.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://bmfqf7no8uc14" path="res://Effects/EnemyDeathEffect.png" id="2"]
|
||||||
[ext_resource path="res://Music and Sounds/EnemyDie.wav" type="AudioStream" id=3]
|
[ext_resource type="AudioStream" uid="uid://ceo7s8pddaqww" path="res://Music and Sounds/EnemyDie.wav" id="3"]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id="1"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 0, 0, 32, 32 )
|
region = Rect2(0, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id="2"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 32, 0, 32, 32 )
|
region = Rect2(32, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id="3"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 64, 0, 32, 32 )
|
region = Rect2(64, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=4]
|
[sub_resource type="AtlasTexture" id="4"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 96, 0, 32, 32 )
|
region = Rect2(96, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=5]
|
[sub_resource type="AtlasTexture" id="5"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 128, 0, 32, 32 )
|
region = Rect2(128, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=6]
|
[sub_resource type="AtlasTexture" id="6"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 160, 0, 32, 32 )
|
region = Rect2(160, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=7]
|
[sub_resource type="AtlasTexture" id="7"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 192, 0, 32, 32 )
|
region = Rect2(192, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=8]
|
[sub_resource type="AtlasTexture" id="8"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 224, 0, 32, 32 )
|
region = Rect2(224, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=9]
|
[sub_resource type="AtlasTexture" id="9"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 256, 0, 32, 32 )
|
region = Rect2(256, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=10]
|
[sub_resource type="AtlasTexture" id="10"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 288, 0, 32, 32 )
|
region = Rect2(288, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=11]
|
[sub_resource type="SpriteFrames" id="11"]
|
||||||
animations = [ {
|
animations = [{
|
||||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ],
|
"frames": [{
|
||||||
"loop": true,
|
"duration": 1.0,
|
||||||
"name": "Animate",
|
"texture": SubResource("1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("2")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("4")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("5")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("6")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("7")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("8")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("9")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("10")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"Animate",
|
||||||
"speed": 15.0
|
"speed": 15.0
|
||||||
} ]
|
}]
|
||||||
|
|
||||||
[node name="EnemyDeathEffect" type="AnimatedSprite"]
|
[node name="EnemyDeathEffect" type="AnimatedSprite2D"]
|
||||||
frames = SubResource( 11 )
|
sprite_frames = SubResource("11")
|
||||||
animation = "Animate"
|
animation = &"Animate"
|
||||||
offset = Vector2( 0, -8 )
|
offset = Vector2(0, -8)
|
||||||
script = ExtResource( 1 )
|
script = ExtResource("1")
|
||||||
|
|
||||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
stream = ExtResource( 3 )
|
stream = ExtResource("3")
|
||||||
autoplay = true
|
autoplay = true
|
||||||
|
|
||||||
|
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/GrassEffect.png-e13c4c94a67cb5ef9b389379ed46bf17.stex"
|
uid="uid://b7rtfcem8vbxx"
|
||||||
|
path="res://.godot/imported/GrassEffect.png-e13c4c94a67cb5ef9b389379ed46bf17.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Effects/GrassEffect.png"
|
source_file="res://Effects/GrassEffect.png"
|
||||||
dest_files=[ "res://.import/GrassEffect.png-e13c4c94a67cb5ef9b389379ed46bf17.stex" ]
|
dest_files=["res://.godot/imported/GrassEffect.png-e13c4c94a67cb5ef9b389379ed46bf17.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,39 +1,58 @@
|
|||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=9 format=3 uid="uid://mhvl6s2ugm6y"]
|
||||||
|
|
||||||
[ext_resource path="res://Effects/GrassEffect.png" type="Texture" id=1]
|
[ext_resource type="Texture2D" uid="uid://b7rtfcem8vbxx" path="res://Effects/GrassEffect.png" id="1"]
|
||||||
[ext_resource path="res://Effects/Effect.gd" type="Script" id=2]
|
[ext_resource type="Script" path="res://Effects/Effect.gd" id="2"]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id="1"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 0, 0, 32, 32 )
|
region = Rect2(0, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id="2"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 32, 0, 32, 32 )
|
region = Rect2(32, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id="3"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 64, 0, 32, 32 )
|
region = Rect2(64, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=4]
|
[sub_resource type="AtlasTexture" id="4"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 96, 0, 32, 32 )
|
region = Rect2(96, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=5]
|
[sub_resource type="AtlasTexture" id="5"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 128, 0, 32, 32 )
|
region = Rect2(128, 0, 32, 32)
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=6]
|
[sub_resource type="SpriteFrames" id="6"]
|
||||||
animations = [ {
|
animations = [{
|
||||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ],
|
"frames": [{
|
||||||
"loop": true,
|
"duration": 1.0,
|
||||||
"name": "Animate",
|
"texture": SubResource("1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("2")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("4")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("5")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"Animate",
|
||||||
"speed": 15.0
|
"speed": 15.0
|
||||||
} ]
|
}]
|
||||||
|
|
||||||
[node name="GrassEffect" type="AnimatedSprite"]
|
[node name="GrassEffect" type="AnimatedSprite2D"]
|
||||||
frames = SubResource( 6 )
|
sprite_frames = SubResource("6")
|
||||||
animation = "Animate"
|
animation = &"Animate"
|
||||||
|
frame = 1
|
||||||
|
frame_progress = 0.606911
|
||||||
centered = false
|
centered = false
|
||||||
offset = Vector2( -8, -8 )
|
offset = Vector2(-8, -8)
|
||||||
script = ExtResource( 2 )
|
script = ExtResource("2")
|
||||||
|
|
||||||
|
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/HitEffect.png-4a350a9d7635dd7543954c4499aead9c.stex"
|
uid="uid://bah6dkm2id"
|
||||||
|
path="res://.godot/imported/HitEffect.png-4a350a9d7635dd7543954c4499aead9c.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Effects/HitEffect.png"
|
source_file="res://Effects/HitEffect.png"
|
||||||
dest_files=[ "res://.import/HitEffect.png-4a350a9d7635dd7543954c4499aead9c.stex" ]
|
dest_files=["res://.godot/imported/HitEffect.png-4a350a9d7635dd7543954c4499aead9c.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,31 +1,39 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=7 format=3 uid="uid://bojbqk7e5s22v"]
|
||||||
|
|
||||||
[ext_resource path="res://Effects/Effect.gd" type="Script" id=1]
|
[ext_resource type="Script" path="res://Effects/Effect.gd" id="1"]
|
||||||
[ext_resource path="res://Effects/HitEffect.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://bah6dkm2id" path="res://Effects/HitEffect.png" id="2"]
|
||||||
[ext_resource path="res://Music and Sounds/Hit.wav" type="AudioStream" id=3]
|
[ext_resource type="AudioStream" uid="uid://ce47h2cdpm1l6" path="res://Music and Sounds/Hit.wav" id="3"]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id="1"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 0, 0, 24, 24 )
|
region = Rect2(0, 0, 24, 24)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id="2"]
|
||||||
atlas = ExtResource( 2 )
|
atlas = ExtResource("2")
|
||||||
region = Rect2( 24, 0, 24, 24 )
|
region = Rect2(24, 0, 24, 24)
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=3]
|
[sub_resource type="SpriteFrames" id="3"]
|
||||||
animations = [ {
|
animations = [{
|
||||||
"frames": [ SubResource( 1 ), SubResource( 2 ) ],
|
"frames": [{
|
||||||
"loop": true,
|
"duration": 1.0,
|
||||||
"name": "Animate",
|
"texture": SubResource("1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("2")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"Animate",
|
||||||
"speed": 10.0
|
"speed": 10.0
|
||||||
} ]
|
}]
|
||||||
|
|
||||||
[node name="HitEffect" type="AnimatedSprite"]
|
[node name="HitEffect" type="AnimatedSprite2D"]
|
||||||
frames = SubResource( 3 )
|
sprite_frames = SubResource("3")
|
||||||
animation = "Animate"
|
animation = &"Animate"
|
||||||
offset = Vector2( 0, -8 )
|
offset = Vector2(0, -8)
|
||||||
script = ExtResource( 1 )
|
script = ExtResource("1")
|
||||||
|
|
||||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||||
stream = ExtResource( 3 )
|
stream = ExtResource("3")
|
||||||
autoplay = true
|
autoplay = true
|
||||||
|
|
||||||
|
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
extends KinematicBody2D
|
extends CharacterBody2D
|
||||||
|
|
||||||
const EnemyDeathEffect = preload("res://Effects/EnemyDeathEffect.tscn")
|
const EnemyDeathEffect = preload("res://Effects/EnemyDeathEffect.tscn")
|
||||||
|
|
||||||
export var ACCELERATION = 300
|
@export var ACCELERATION = 300
|
||||||
export var MAX_SPEED = 50
|
@export var MAX_SPEED = 50
|
||||||
export var FRICTION = 200
|
@export var FRICTION = 200
|
||||||
export var WANDER_TARGET_RANGE = 4
|
@export var WANDER_TARGET_RANGE = 4
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IDLE,
|
IDLE,
|
||||||
@ -14,24 +14,26 @@ enum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var knockback = Vector2.ZERO
|
var knockback = Vector2.ZERO
|
||||||
var velocity = Vector2.ZERO
|
#var velocity = Vector2.ZERO
|
||||||
|
|
||||||
var state = IDLE
|
var state = IDLE
|
||||||
|
|
||||||
onready var sprite = $AnimatedSprite
|
@onready var sprite = get_node("AnimatedSprite2D")
|
||||||
onready var stats = $Stats
|
@onready var stats = get_node("Stats")
|
||||||
onready var playerDetectionZone = $PlayerDetectionZone
|
@onready var playerDetectionZone = get_node("PlayerDetectionZone")
|
||||||
onready var hurtbox = $Hurtbox
|
@onready var hurtbox = get_node("Hurtbox")
|
||||||
onready var softCollision = $SoftCollision
|
@onready var softCollision = get_node("SoftCollision")
|
||||||
onready var wanderController = $WanderController
|
@onready var wanderController = get_node("WanderController")
|
||||||
onready var animationPlayer = $AnimationPlayer
|
@onready var animationPlayer = get_node("AnimationPlayer")
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
state = pick_new_state([IDLE,WANDER])
|
state = pick_new_state([IDLE,WANDER])
|
||||||
|
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
knockback = knockback.move_toward(Vector2.ZERO, 200 * delta)
|
knockback = knockback.move_toward(Vector2.ZERO, 200 * delta)
|
||||||
knockback = move_and_slide(knockback)
|
set_velocity(knockback)
|
||||||
|
move_and_slide()
|
||||||
|
knockback = velocity
|
||||||
|
|
||||||
match state:
|
match state:
|
||||||
IDLE:
|
IDLE:
|
||||||
@ -58,7 +60,9 @@ func _physics_process(delta):
|
|||||||
|
|
||||||
if softCollision.is_colliding():
|
if softCollision.is_colliding():
|
||||||
velocity += softCollision.get_push_vector() * delta * 400
|
velocity += softCollision.get_push_vector() * delta * 400
|
||||||
velocity = move_and_slide(velocity)
|
set_velocity(velocity)
|
||||||
|
move_and_slide()
|
||||||
|
velocity = velocity
|
||||||
|
|
||||||
func accelerate_towards_point(point,delta):
|
func accelerate_towards_point(point,delta):
|
||||||
var direction = global_position.direction_to(point)
|
var direction = global_position.direction_to(point)
|
||||||
@ -67,7 +71,7 @@ func accelerate_towards_point(point,delta):
|
|||||||
|
|
||||||
func update_wander():
|
func update_wander():
|
||||||
state = pick_new_state([IDLE, WANDER])
|
state = pick_new_state([IDLE, WANDER])
|
||||||
wanderController.start_wander_timer(rand_range(1,3))
|
wanderController.start_wander_timer(randf_range(1,3))
|
||||||
|
|
||||||
func seek_player():
|
func seek_player():
|
||||||
if playerDetectionZone.can_see_player():
|
if playerDetectionZone.can_see_player():
|
||||||
@ -87,7 +91,7 @@ func _on_Hurtbox_area_entered(area):
|
|||||||
|
|
||||||
func _on_Stats_no_health():
|
func _on_Stats_no_health():
|
||||||
queue_free()
|
queue_free()
|
||||||
var enemyDeathEffect = EnemyDeathEffect.instance()
|
var enemyDeathEffect = EnemyDeathEffect.instantiate()
|
||||||
get_parent().add_child(enemyDeathEffect)
|
get_parent().add_child(enemyDeathEffect)
|
||||||
enemyDeathEffect.global_position = global_position
|
enemyDeathEffect.global_position = global_position
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/Bat.png-38405154cd5b8ff1c5e2fcf1cef1c3e6.stex"
|
uid="uid://sia0qera1a0e"
|
||||||
|
path="res://.godot/imported/Bat.png-38405154cd5b8ff1c5e2fcf1cef1c3e6.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Enemies/Bat.png"
|
source_file="res://Enemies/Bat.png"
|
||||||
dest_files=[ "res://.import/Bat.png-38405154cd5b8ff1c5e2fcf1cef1c3e6.stex" ]
|
dest_files=["res://.godot/imported/Bat.png-38405154cd5b8ff1c5e2fcf1cef1c3e6.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,169 +1,197 @@
|
|||||||
[gd_scene load_steps=26 format=2]
|
[gd_scene load_steps=27 format=3 uid="uid://cqhkluf5uxn11"]
|
||||||
|
|
||||||
[ext_resource path="res://Enemies/Bat.png" type="Texture" id=1]
|
[ext_resource type="Texture2D" uid="uid://sia0qera1a0e" path="res://Enemies/Bat.png" id="1"]
|
||||||
[ext_resource path="res://Shadows/SmallShadow.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://cp46k48acfh6k" path="res://Shadows/SmallShadow.png" id="2"]
|
||||||
[ext_resource path="res://Overlap/Hurtbox.tscn" type="PackedScene" id=3]
|
[ext_resource type="PackedScene" path="res://Overlap/Hurtbox.tscn" id="3"]
|
||||||
[ext_resource path="res://Enemies/Bat.gd" type="Script" id=4]
|
[ext_resource type="Script" path="res://Enemies/Bat.gd" id="4"]
|
||||||
[ext_resource path="res://Stats.tscn" type="PackedScene" id=5]
|
[ext_resource type="PackedScene" path="res://Stats.tscn" id="5"]
|
||||||
[ext_resource path="res://Enemies/PlayerDetectionZone.tscn" type="PackedScene" id=6]
|
[ext_resource type="PackedScene" path="res://Enemies/PlayerDetectionZone.tscn" id="6"]
|
||||||
[ext_resource path="res://Overlap/Hitbox.tscn" type="PackedScene" id=7]
|
[ext_resource type="PackedScene" path="res://Overlap/Hitbox.tscn" id="7"]
|
||||||
[ext_resource path="res://Overlap/SoftCollision.tscn" type="PackedScene" id=8]
|
[ext_resource type="PackedScene" path="res://Overlap/SoftCollision.tscn" id="8"]
|
||||||
[ext_resource path="res://Overlap/WanderController.tscn" type="PackedScene" id=9]
|
[ext_resource type="PackedScene" path="res://Overlap/WanderController.tscn" id="9"]
|
||||||
[ext_resource path="res://WhiteColor_shader.tres" type="Shader" id=10]
|
[ext_resource type="Shader" uid="uid://c8kh0c6pydtym" path="res://WhiteColor_shader.tres" id="10"]
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id=12]
|
[sub_resource type="ShaderMaterial" id="12"]
|
||||||
resource_local_to_scene = true
|
resource_local_to_scene = true
|
||||||
shader = ExtResource( 10 )
|
shader = ExtResource("10")
|
||||||
shader_param/active = false
|
shader_parameter/active = false
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id="1"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 0, 0, 16, 24 )
|
region = Rect2(0, 0, 16, 24)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id="2"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 16, 0, 16, 24 )
|
region = Rect2(16, 0, 16, 24)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id="3"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 32, 0, 16, 24 )
|
region = Rect2(32, 0, 16, 24)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=4]
|
[sub_resource type="AtlasTexture" id="4"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 48, 0, 16, 24 )
|
region = Rect2(48, 0, 16, 24)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=5]
|
[sub_resource type="AtlasTexture" id="5"]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource("1")
|
||||||
region = Rect2( 64, 0, 16, 24 )
|
region = Rect2(64, 0, 16, 24)
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=6]
|
[sub_resource type="SpriteFrames" id="6"]
|
||||||
animations = [ {
|
animations = [{
|
||||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ) ],
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("1")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("2")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("4")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("5")
|
||||||
|
}],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "Fly",
|
"name": &"Fly",
|
||||||
"speed": 10.0
|
"speed": 10.0
|
||||||
} ]
|
}]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=7]
|
[sub_resource type="CircleShape2D" id="7"]
|
||||||
radius = 4.12311
|
radius = 4.12311
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=8]
|
[sub_resource type="CapsuleShape2D" id="8"]
|
||||||
radius = 7.0
|
radius = 4.0
|
||||||
height = 6.0
|
height = 16.0
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=9]
|
[sub_resource type="CircleShape2D" id="9"]
|
||||||
radius = 61.0328
|
radius = 61.0328
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=10]
|
[sub_resource type="CircleShape2D" id="10"]
|
||||||
radius = 5.0
|
radius = 5.0
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=11]
|
[sub_resource type="CircleShape2D" id="11"]
|
||||||
radius = 5.0
|
radius = 5.0
|
||||||
|
|
||||||
[sub_resource type="Animation" id=13]
|
[sub_resource type="Animation" id="13"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("AnimatedSprite:material:shader_param/active")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("AnimatedSprite2D:material:shader_param/active")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"times": PoolRealArray( 0 ),
|
"times": PackedFloat32Array(0),
|
||||||
"transitions": PoolRealArray( 1 ),
|
"transitions": PackedFloat32Array(1),
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ false ]
|
"values": [false]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=14]
|
[sub_resource type="Animation" id="14"]
|
||||||
resource_name = "Start"
|
resource_name = "Start"
|
||||||
length = 0.2
|
length = 0.2
|
||||||
loop = true
|
loop_mode = 1
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("AnimatedSprite:material:shader_param/active")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("AnimatedSprite2D:material:shader_param/active")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"times": PoolRealArray( 0, 0.1 ),
|
"times": PackedFloat32Array(0, 0.1),
|
||||||
"transitions": PoolRealArray( 1, 1 ),
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
"update": 1,
|
"update": 1,
|
||||||
"values": [ true, false ]
|
"values": [true, false]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=15]
|
[sub_resource type="Animation" id="15"]
|
||||||
resource_name = "Stop"
|
resource_name = "Stop"
|
||||||
length = 0.1
|
length = 0.1
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("AnimatedSprite:material:shader_param/active")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("AnimatedSprite2D:material:shader_param/active")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"times": PoolRealArray( 0 ),
|
"times": PackedFloat32Array(0),
|
||||||
"transitions": PoolRealArray( 1 ),
|
"transitions": PackedFloat32Array(1),
|
||||||
"update": 1,
|
"update": 1,
|
||||||
"values": [ false ]
|
"values": [false]
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Bat" type="KinematicBody2D"]
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cy3aa"]
|
||||||
|
_data = {
|
||||||
|
"RESET": SubResource("13"),
|
||||||
|
"Start": SubResource("14"),
|
||||||
|
"Stop": SubResource("15")
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Bat" type="CharacterBody2D"]
|
||||||
collision_layer = 16
|
collision_layer = 16
|
||||||
script = ExtResource( 4 )
|
script = ExtResource("4")
|
||||||
|
ACCELERATION = 1800
|
||||||
|
MAX_SPEED = 300
|
||||||
|
FRICTION = 33
|
||||||
|
WANDER_TARGET_RANGE = 24
|
||||||
|
|
||||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
material = SubResource( 12 )
|
material = SubResource("12")
|
||||||
frames = SubResource( 6 )
|
sprite_frames = SubResource("6")
|
||||||
animation = "Fly"
|
animation = &"Fly"
|
||||||
frame = 3
|
autoplay = "Fly"
|
||||||
playing = true
|
frame = 1
|
||||||
offset = Vector2( 0, -12 )
|
frame_progress = 0.870083
|
||||||
|
offset = Vector2(0, -12)
|
||||||
|
|
||||||
[node name="ShadowSprite" type="Sprite" parent="."]
|
[node name="ShadowSprite" type="Sprite2D" parent="."]
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource("2")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
shape = SubResource( 7 )
|
shape = SubResource("7")
|
||||||
|
|
||||||
[node name="Hurtbox" parent="." instance=ExtResource( 3 )]
|
[node name="Hurtbox" parent="." instance=ExtResource("3")]
|
||||||
visible = false
|
|
||||||
collision_layer = 8
|
collision_layer = 8
|
||||||
|
collision_mask = 2
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
||||||
position = Vector2( 0, -14 )
|
position = Vector2(0, -14)
|
||||||
shape = SubResource( 8 )
|
shape = SubResource("8")
|
||||||
|
|
||||||
[node name="Stats" parent="." instance=ExtResource( 5 )]
|
[node name="Stats" parent="." instance=ExtResource("5")]
|
||||||
max_health = 2
|
max_health = 2
|
||||||
|
|
||||||
[node name="PlayerDetectionZone" parent="." instance=ExtResource( 6 )]
|
[node name="PlayerDetectionZone" parent="." instance=ExtResource("6")]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="PlayerDetectionZone" index="0"]
|
[node name="CollisionShape2D" parent="PlayerDetectionZone" index="0"]
|
||||||
modulate = Color( 1, 1, 1, 0.258824 )
|
modulate = Color(1, 1, 1, 0.258824)
|
||||||
shape = SubResource( 9 )
|
shape = SubResource("9")
|
||||||
|
|
||||||
[node name="Hitbox" parent="." instance=ExtResource( 7 )]
|
[node name="Hitbox" parent="." instance=ExtResource("7")]
|
||||||
visible = false
|
visible = false
|
||||||
collision_mask = 4
|
collision_layer = 16
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
||||||
position = Vector2( 0, -15 )
|
position = Vector2(0, -15)
|
||||||
shape = SubResource( 10 )
|
shape = SubResource("10")
|
||||||
|
|
||||||
[node name="SoftCollision" parent="." instance=ExtResource( 8 )]
|
[node name="SoftCollision" parent="." instance=ExtResource("8")]
|
||||||
|
collision_mask = 3
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="SoftCollision" index="0"]
|
[node name="CollisionShape2D" parent="SoftCollision" index="0"]
|
||||||
shape = SubResource( 11 )
|
shape = SubResource("11")
|
||||||
|
|
||||||
[node name="WanderController" parent="." instance=ExtResource( 9 )]
|
[node name="WanderController" parent="." instance=ExtResource("9")]
|
||||||
|
|
||||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
anims/RESET = SubResource( 13 )
|
libraries = {
|
||||||
anims/Start = SubResource( 14 )
|
"": SubResource("AnimationLibrary_cy3aa")
|
||||||
anims/Stop = SubResource( 15 )
|
}
|
||||||
|
|
||||||
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
||||||
[connection signal="invincibility_ended" from="Hurtbox" to="." method="_on_Hurtbox_invincibility_ended"]
|
[connection signal="invincibility_ended" from="Hurtbox" to="." method="_on_Hurtbox_invincibility_ended"]
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/EnemyDie.wav-a486c87c5ffce10facfdaf6e118ee22d.sample"
|
uid="uid://ceo7s8pddaqww"
|
||||||
|
path="res://.godot/imported/EnemyDie.wav-a486c87c5ffce10facfdaf6e118ee22d.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/EnemyDie.wav"
|
source_file="res://Music and Sounds/EnemyDie.wav"
|
||||||
dest_files=[ "res://.import/EnemyDie.wav-a486c87c5ffce10facfdaf6e118ee22d.sample" ]
|
dest_files=["res://.godot/imported/EnemyDie.wav-a486c87c5ffce10facfdaf6e118ee22d.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Evade.wav-cd612618661f05b5e39dccebc8901a0b.sample"
|
uid="uid://dwjvh7kwt62da"
|
||||||
|
path="res://.godot/imported/Evade.wav-cd612618661f05b5e39dccebc8901a0b.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Evade.wav"
|
source_file="res://Music and Sounds/Evade.wav"
|
||||||
dest_files=[ "res://.import/Evade.wav-cd612618661f05b5e39dccebc8901a0b.sample" ]
|
dest_files=["res://.godot/imported/Evade.wav-cd612618661f05b5e39dccebc8901a0b.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Hit.wav-0fa8d06aa64f0c3d5cf8be50a2076760.sample"
|
uid="uid://ce47h2cdpm1l6"
|
||||||
|
path="res://.godot/imported/Hit.wav-0fa8d06aa64f0c3d5cf8be50a2076760.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Hit.wav"
|
source_file="res://Music and Sounds/Hit.wav"
|
||||||
dest_files=[ "res://.import/Hit.wav-0fa8d06aa64f0c3d5cf8be50a2076760.sample" ]
|
dest_files=["res://.godot/imported/Hit.wav-0fa8d06aa64f0c3d5cf8be50a2076760.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Hurt.wav-9a8feff0886efa16ed78b7703de45922.sample"
|
uid="uid://dln8alqmnwodr"
|
||||||
|
path="res://.godot/imported/Hurt.wav-9a8feff0886efa16ed78b7703de45922.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Hurt.wav"
|
source_file="res://Music and Sounds/Hurt.wav"
|
||||||
dest_files=[ "res://.import/Hurt.wav-9a8feff0886efa16ed78b7703de45922.sample" ]
|
dest_files=["res://.godot/imported/Hurt.wav-9a8feff0886efa16ed78b7703de45922.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Menu Move.wav-d97a887eeb77e9f82d0179618aff26aa.sample"
|
uid="uid://cy108rbmgusfb"
|
||||||
|
path="res://.godot/imported/Menu Move.wav-d97a887eeb77e9f82d0179618aff26aa.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Menu Move.wav"
|
source_file="res://Music and Sounds/Menu Move.wav"
|
||||||
dest_files=[ "res://.import/Menu Move.wav-d97a887eeb77e9f82d0179618aff26aa.sample" ]
|
dest_files=["res://.godot/imported/Menu Move.wav-d97a887eeb77e9f82d0179618aff26aa.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Menu Select.wav-cf35ab6ee2afc13096e6bf584e78dcaf.sample"
|
uid="uid://cbd662au7eyfc"
|
||||||
|
path="res://.godot/imported/Menu Select.wav-cf35ab6ee2afc13096e6bf584e78dcaf.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Menu Select.wav"
|
source_file="res://Music and Sounds/Menu Select.wav"
|
||||||
dest_files=[ "res://.import/Menu Select.wav-cf35ab6ee2afc13096e6bf584e78dcaf.sample" ]
|
dest_files=["res://.godot/imported/Menu Select.wav-cf35ab6ee2afc13096e6bf584e78dcaf.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -2,14 +2,18 @@
|
|||||||
|
|
||||||
importer="mp3"
|
importer="mp3"
|
||||||
type="AudioStreamMP3"
|
type="AudioStreamMP3"
|
||||||
path="res://.import/Music.mp3-fbb50ed95d66ff7af78edb9c3a8f7b4d.mp3str"
|
uid="uid://cs4aeddnh0sim"
|
||||||
|
path="res://.godot/imported/Music.mp3-fbb50ed95d66ff7af78edb9c3a8f7b4d.mp3str"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Music.mp3"
|
source_file="res://Music and Sounds/Music.mp3"
|
||||||
dest_files=[ "res://.import/Music.mp3-fbb50ed95d66ff7af78edb9c3a8f7b4d.mp3str" ]
|
dest_files=["res://.godot/imported/Music.mp3-fbb50ed95d66ff7af78edb9c3a8f7b4d.mp3str"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
loop=true
|
loop=true
|
||||||
loop_offset=0
|
loop_offset=0
|
||||||
|
bpm=0
|
||||||
|
beat_count=0
|
||||||
|
bar_beats=4
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Pause.wav-2283faeb42b74e3f6e4809669cc9a8ab.sample"
|
uid="uid://cite3jg1khmgo"
|
||||||
|
path="res://.godot/imported/Pause.wav-2283faeb42b74e3f6e4809669cc9a8ab.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Pause.wav"
|
source_file="res://Music and Sounds/Pause.wav"
|
||||||
dest_files=[ "res://.import/Pause.wav-2283faeb42b74e3f6e4809669cc9a8ab.sample" ]
|
dest_files=["res://.godot/imported/Pause.wav-2283faeb42b74e3f6e4809669cc9a8ab.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Swipe.wav-1b0f341b1727da219872e70c921da651.sample"
|
uid="uid://bo14kc5oajchr"
|
||||||
|
path="res://.godot/imported/Swipe.wav-1b0f341b1727da219872e70c921da651.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Swipe.wav"
|
source_file="res://Music and Sounds/Swipe.wav"
|
||||||
dest_files=[ "res://.import/Swipe.wav-1b0f341b1727da219872e70c921da651.sample" ]
|
dest_files=["res://.godot/imported/Swipe.wav-1b0f341b1727da219872e70c921da651.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="wav"
|
importer="wav"
|
||||||
type="AudioStreamSample"
|
type="AudioStreamWAV"
|
||||||
path="res://.import/Unpause.wav-804d58e6ee88c8f6467ca3b5bea5857f.sample"
|
uid="uid://dlpqwfvttceok"
|
||||||
|
path="res://.godot/imported/Unpause.wav-804d58e6ee88c8f6467ca3b5bea5857f.sample"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Music and Sounds/Unpause.wav"
|
source_file="res://Music and Sounds/Unpause.wav"
|
||||||
dest_files=[ "res://.import/Unpause.wav-804d58e6ee88c8f6467ca3b5bea5857f.sample" ]
|
dest_files=["res://.godot/imported/Unpause.wav-804d58e6ee88c8f6467ca3b5bea5857f.sample"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
extends Area2D
|
extends Area2D
|
||||||
|
|
||||||
export var damage = 1
|
@export var damage = 1
|
||||||
|
@ -2,10 +2,10 @@ extends Area2D
|
|||||||
|
|
||||||
const HitEffect = preload("res://Effects/HitEffect.tscn")
|
const HitEffect = preload("res://Effects/HitEffect.tscn")
|
||||||
|
|
||||||
var invincible = false setget set_invincible
|
var invincible = false: set = set_invincible
|
||||||
|
|
||||||
onready var timer = $Timer
|
@onready var timer = $Timer
|
||||||
onready var collisionShape = $CollisionShape2D
|
@onready var collisionShape = $CollisionShape2D
|
||||||
signal invincibility_started
|
signal invincibility_started
|
||||||
signal invincibility_ended
|
signal invincibility_ended
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ func start_invincibility(duration):
|
|||||||
timer.start(duration)
|
timer.start(duration)
|
||||||
|
|
||||||
func create_hit_effect():
|
func create_hit_effect():
|
||||||
var effect = HitEffect.instance()
|
var effect = HitEffect.instantiate()
|
||||||
var main = get_tree().current_scene
|
var main = get_tree().current_scene
|
||||||
main.add_child(effect)
|
main.add_child(effect)
|
||||||
effect.global_position = global_position
|
effect.global_position = global_position
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
|
|
||||||
export(int) var wander_range = 32
|
@export var wander_range: int = 32
|
||||||
|
|
||||||
onready var start_position = global_position
|
@onready var start_position = global_position
|
||||||
onready var target_position = global_position
|
@onready var target_position = global_position
|
||||||
|
|
||||||
onready var timer = $Timer
|
@onready var timer = $Timer
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
update_target_position()
|
update_target_position()
|
||||||
|
|
||||||
func update_target_position():
|
func update_target_position():
|
||||||
var target_vector = Vector2(rand_range(-wander_range,wander_range), rand_range(-wander_range,wander_range))
|
var target_vector = Vector2(randf_range(-wander_range,wander_range), randf_range(-wander_range,wander_range))
|
||||||
target_position = start_position + target_vector
|
target_position = start_position + target_vector
|
||||||
|
|
||||||
func get_time_left():
|
func get_time_left():
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
extends KinematicBody2D
|
extends CharacterBody2D
|
||||||
|
|
||||||
const PlayerHurtSound = preload("res://Player/PlayerHurtSound.tscn")
|
|
||||||
|
|
||||||
var velocity = Vector2.ZERO
|
|
||||||
var input_vector = Vector2.ZERO
|
var input_vector = Vector2.ZERO
|
||||||
var roll_vector = Vector2.DOWN
|
var roll_vector = Vector2.DOWN
|
||||||
var stats = PlayerStats
|
var stats = PlayerStats
|
||||||
|
|
||||||
|
const PlayerHurtSound = preload("res://Player/PlayerHurtSound.tscn")
|
||||||
|
|
||||||
const ACCELERATION = 500
|
const ACCELERATION = 500
|
||||||
const MAX_SPEED = 80
|
const MAX_SPEED = 80
|
||||||
const ROLL_SPEED = 120
|
const ROLL_SPEED = 120
|
||||||
@ -20,15 +18,16 @@ enum {
|
|||||||
|
|
||||||
var state = MOVE
|
var state = MOVE
|
||||||
|
|
||||||
onready var animationPlayer = $AnimationPlayer
|
@onready var animationTree = get_node("AnimationTree")
|
||||||
onready var blinkAnimationPlayer = $BlinkAnimationPlayer
|
@onready var blinkAnimationPlayer = get_node("BlinkAnimationPlayer")
|
||||||
onready var animationTree = $AnimationTree
|
@onready var animationPlayer = get_node("AnimationPlayer")
|
||||||
onready var animationState = animationTree.get("parameters/playback")
|
@onready var animationState = animationTree.get("parameters/playback")
|
||||||
onready var swordHitbox = $HitboxPivot/SwordHitbox
|
@onready var swordHitbox = get_node("HitboxPivot/SwordHitbox")
|
||||||
onready var hurtBox = $Hurtbox
|
@onready var hurtBox = get_node("Hurtbox")
|
||||||
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
stats.connect("no_health", self, "queue_free")
|
stats.connect("no_health", Callable(self, "queue_free"))
|
||||||
animationTree.active = true
|
animationTree.active = true
|
||||||
swordHitbox.knockback_vector = roll_vector
|
swordHitbox.knockback_vector = roll_vector
|
||||||
blinkAnimationPlayer.play("Stop")
|
blinkAnimationPlayer.play("Stop")
|
||||||
@ -89,7 +88,9 @@ func attack_state():
|
|||||||
#velocity = move_and_slide(velocity)
|
#velocity = move_and_slide(velocity)
|
||||||
|
|
||||||
func move():
|
func move():
|
||||||
velocity = move_and_slide(velocity)
|
set_velocity(velocity)
|
||||||
|
move_and_slide()
|
||||||
|
velocity = velocity
|
||||||
|
|
||||||
func attack_aninimation_finished():
|
func attack_aninimation_finished():
|
||||||
state = MOVE
|
state = MOVE
|
||||||
@ -98,18 +99,15 @@ func attack_aninimation_finished():
|
|||||||
#func _process(delta):
|
#func _process(delta):
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
|
|
||||||
func _on_Hurtbox_area_entered(_area):
|
|
||||||
stats.health -= 1
|
|
||||||
hurtBox.start_invincibility(0.6)
|
|
||||||
hurtBox.create_hit_effect()
|
|
||||||
var playerHurtSounds = PlayerHurtSound.instance()
|
|
||||||
get_tree().current_scene.add_child(playerHurtSounds)
|
|
||||||
|
|
||||||
|
|
||||||
func _on_Hurtbox_invincibility_started():
|
func _on_Hurtbox_invincibility_started():
|
||||||
blinkAnimationPlayer.play("Start")
|
blinkAnimationPlayer.play("Start")
|
||||||
|
|
||||||
|
|
||||||
func _on_Hurtbox_invincibility_ended():
|
func _on_Hurtbox_invincibility_ended():
|
||||||
blinkAnimationPlayer.play("Stop")
|
blinkAnimationPlayer.play("Stop")
|
||||||
|
|
||||||
|
func _on_hurtbox_area_entered(area: Area2D) -> void:
|
||||||
|
stats.health -= 1
|
||||||
|
hurtBox.start_invincibility(0.6)
|
||||||
|
hurtBox.create_hit_effect()
|
||||||
|
var playerHurtSounds = PlayerHurtSound.instantiate()
|
||||||
|
get_tree().current_scene.add_child(playerHurtSounds)
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/Player.png-3d0801c65bdfc563657cfa304115f1c7.stex"
|
uid="uid://7uqxws8djwvh"
|
||||||
|
path="res://.godot/imported/Player.png-3d0801c65bdfc563657cfa304115f1c7.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Player/Player.png"
|
source_file="res://Player/Player.png"
|
||||||
dest_files=[ "res://.import/Player.png-3d0801c65bdfc563657cfa304115f1c7.stex" ]
|
dest_files=["res://.godot/imported/Player.png-3d0801c65bdfc563657cfa304115f1c7.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ extends AudioStreamPlayer
|
|||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
connect("finished", self, "queue_free")
|
connect("finished", Callable(self, "queue_free"))
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/LargeShadow.png-f9f465d3bd6a830d0053dcccc744b5ab.stex"
|
uid="uid://cgr81av5lcoki"
|
||||||
|
path="res://.godot/imported/LargeShadow.png-f9f465d3bd6a830d0053dcccc744b5ab.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Shadows/LargeShadow.png"
|
source_file="res://Shadows/LargeShadow.png"
|
||||||
dest_files=[ "res://.import/LargeShadow.png-f9f465d3bd6a830d0053dcccc744b5ab.stex" ]
|
dest_files=["res://.godot/imported/LargeShadow.png-f9f465d3bd6a830d0053dcccc744b5ab.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/MediumShadow.png-a006169ce9c485f0f94bc7dc3bc8473f.stex"
|
uid="uid://bb222608451qy"
|
||||||
|
path="res://.godot/imported/MediumShadow.png-a006169ce9c485f0f94bc7dc3bc8473f.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Shadows/MediumShadow.png"
|
source_file="res://Shadows/MediumShadow.png"
|
||||||
dest_files=[ "res://.import/MediumShadow.png-a006169ce9c485f0f94bc7dc3bc8473f.stex" ]
|
dest_files=["res://.godot/imported/MediumShadow.png-a006169ce9c485f0f94bc7dc3bc8473f.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/SmallShadow.png-5e32714e38d94da2c1b597c947bda29e.stex"
|
uid="uid://cp46k48acfh6k"
|
||||||
|
path="res://.godot/imported/SmallShadow.png-5e32714e38d94da2c1b597c947bda29e.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://Shadows/SmallShadow.png"
|
source_file="res://Shadows/SmallShadow.png"
|
||||||
dest_files=[ "res://.import/SmallShadow.png-5e32714e38d94da2c1b597c947bda29e.stex" ]
|
dest_files=["res://.godot/imported/SmallShadow.png-5e32714e38d94da2c1b597c947bda29e.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
export(int) var max_health = 1 setget set_max_health
|
@export var max_health: int = 1: set = set_max_health
|
||||||
var health = max_health setget set_health
|
var health = max_health: set = set_health
|
||||||
|
|
||||||
signal no_health
|
signal no_health
|
||||||
signal health_changed(value)
|
signal health_changed(value)
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
var hearts = 4 setget set_hearts
|
var hearts = 4: set = set_hearts
|
||||||
var max_hearts = 4 setget set_max_hearts
|
var max_hearts = 4: set = set_max_hearts
|
||||||
|
|
||||||
onready var heartUIFull = $HeartUIFull
|
@onready var heartUIFull = $HeartUIFull
|
||||||
onready var heartUIEmpty = $HeartUIEmpty
|
@onready var heartUIEmpty = $HeartUIEmpty
|
||||||
|
|
||||||
func set_hearts(value):
|
func set_hearts(value):
|
||||||
hearts = clamp(value, 0, max_hearts)
|
hearts = clamp(value, 0, max_hearts)
|
||||||
if heartUIFull != null:
|
if heartUIFull != null:
|
||||||
heartUIFull.rect_size.x = hearts * 15
|
heartUIFull.size.x = hearts * 15
|
||||||
|
|
||||||
func set_max_hearts(value):
|
func set_max_hearts(value):
|
||||||
max_hearts = max(value, 1)
|
max_hearts = max(value, 1)
|
||||||
self.hearts = min(hearts, max_hearts)
|
self.hearts = min(hearts, max_hearts)
|
||||||
if heartUIEmpty != null:
|
if heartUIEmpty != null:
|
||||||
heartUIEmpty.rect_size.x = max_hearts * 15
|
heartUIEmpty.size.x = max_hearts * 15
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
self.max_hearts = PlayerStats.max_health
|
self.max_hearts = PlayerStats.max_health
|
||||||
self.hearts = PlayerStats.health
|
self.hearts = PlayerStats.health
|
||||||
PlayerStats.connect("health_changed", self, "set_hearts")
|
PlayerStats.connect("health_changed", Callable(self, "set_hearts"))
|
||||||
PlayerStats.connect("max_health_changed", self, "set_max_hearts")
|
PlayerStats.connect("max_health_changed", Callable(self, "set_max_hearts"))
|
||||||
|
@ -1,25 +1,31 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=3 uid="uid://b1uyh26kmvwq6"]
|
||||||
|
|
||||||
[ext_resource path="res://UI/HealthUI.gd" type="Script" id=1]
|
[ext_resource type="Script" path="res://UI/HealthUI.gd" id="1"]
|
||||||
[ext_resource path="res://UI/HeartUIEmpty.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://7uhcli2ilhpt" path="res://UI/HeartUIEmpty.png" id="2"]
|
||||||
[ext_resource path="res://UI/HeartUIFull.png" type="Texture" id=3]
|
[ext_resource type="Texture2D" uid="uid://dltt4a7gu7so4" path="res://UI/HeartUIFull.png" id="3"]
|
||||||
|
|
||||||
[node name="HealthUI" type="Control"]
|
[node name="HealthUI" type="Control"]
|
||||||
margin_left = 2.0
|
layout_mode = 3
|
||||||
margin_top = 2.0
|
anchors_preset = 0
|
||||||
margin_right = 124.0
|
offset_left = 2.0
|
||||||
margin_bottom = 27.0
|
offset_top = 2.0
|
||||||
script = ExtResource( 1 )
|
offset_right = 124.0
|
||||||
|
offset_bottom = 27.0
|
||||||
|
script = ExtResource("1")
|
||||||
|
|
||||||
[node name="HeartUIEmpty" type="TextureRect" parent="."]
|
[node name="HeartUIEmpty" type="TextureRect" parent="."]
|
||||||
margin_right = 59.0
|
layout_mode = 0
|
||||||
margin_bottom = 12.0
|
offset_right = 59.0
|
||||||
texture = ExtResource( 2 )
|
offset_bottom = 12.0
|
||||||
stretch_mode = 2
|
texture = ExtResource("2")
|
||||||
|
stretch_mode = 1
|
||||||
|
|
||||||
[node name="HeartUIFull" type="TextureRect" parent="."]
|
[node name="HeartUIFull" type="TextureRect" parent="."]
|
||||||
margin_right = 60.0
|
texture_filter = 1
|
||||||
margin_bottom = 11.0
|
texture_repeat = 2
|
||||||
texture = ExtResource( 3 )
|
layout_mode = 0
|
||||||
expand = true
|
offset_right = 60.0
|
||||||
stretch_mode = 2
|
offset_bottom = 11.0
|
||||||
|
texture = ExtResource("3")
|
||||||
|
expand_mode = 1
|
||||||
|
stretch_mode = 1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.stex"
|
uid="uid://7uhcli2ilhpt"
|
||||||
|
path="res://.godot/imported/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/HeartUIEmpty.png"
|
source_file="res://UI/HeartUIEmpty.png"
|
||||||
dest_files=[ "res://.import/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.stex" ]
|
dest_files=["res://.godot/imported/HeartUIEmpty.png-417b0a6fe975644d9dba3671413f10e5.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.stex"
|
uid="uid://dltt4a7gu7so4"
|
||||||
|
path="res://.godot/imported/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/HeartUIFull.png"
|
source_file="res://UI/HeartUIFull.png"
|
||||||
dest_files=[ "res://.import/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.stex" ]
|
dest_files=["res://.godot/imported/HeartUIFull.png-e9d9ebbeee52aaa00895457d920c0f53.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex"
|
uid="uid://beygnvmqonlay"
|
||||||
|
path="res://.godot/imported/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons1.png"
|
source_file="res://UI/TouchButtons1.png"
|
||||||
dest_files=[ "res://.import/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons1.png-61db002dc7148133f10efa981b4843c4.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex"
|
uid="uid://dkgjklvy4rgh1"
|
||||||
|
path="res://.godot/imported/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons2.png"
|
source_file="res://UI/TouchButtons2.png"
|
||||||
dest_files=[ "res://.import/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons2.png-17acf752daaeba13c4dd892a9a83b696.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex"
|
uid="uid://nvkhwbmmaln7"
|
||||||
|
path="res://.godot/imported/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons3.png"
|
source_file="res://UI/TouchButtons3.png"
|
||||||
dest_files=[ "res://.import/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons3.png-8d9113c5621e05d158461a5b8587a569.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex"
|
uid="uid://dw062qxq6lw56"
|
||||||
|
path="res://.godot/imported/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons4.png"
|
source_file="res://UI/TouchButtons4.png"
|
||||||
dest_files=[ "res://.import/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons4.png-e9ab46fcaee3536074c1902761cd3845.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex"
|
uid="uid://csi3h5f352wsh"
|
||||||
|
path="res://.godot/imported/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons5.png"
|
source_file="res://UI/TouchButtons5.png"
|
||||||
dest_files=[ "res://.import/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons5.png-2db35d4a57a19b391d821bb73c0a76b2.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex"
|
uid="uid://bjc2hpt7n8n7"
|
||||||
|
path="res://.godot/imported/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://UI/TouchButtons6.png"
|
source_file="res://UI/TouchButtons6.png"
|
||||||
dest_files=[ "res://.import/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.stex" ]
|
dest_files=["res://.godot/imported/TouchButtons6.png-e82b98fedffd326df041409a813c1afe.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="Shader" format=2]
|
[gd_resource type="Shader" format=3 uid="uid://c8kh0c6pydtym"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
code = "shader_type canvas_item;
|
code = "shader_type canvas_item;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/Bush.png-d93cca107fd3c67cf3a69a32232496ae.stex"
|
uid="uid://bppe8xi57e01x"
|
||||||
|
path="res://.godot/imported/Bush.png-d93cca107fd3c67cf3a69a32232496ae.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/Bush.png"
|
source_file="res://World/Bush.png"
|
||||||
dest_files=[ "res://.import/Bush.png-d93cca107fd3c67cf3a69a32232496ae.stex" ]
|
dest_files=["res://.godot/imported/Bush.png-d93cca107fd3c67cf3a69a32232496ae.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=3 uid="uid://b33u2ew1b5cqw"]
|
||||||
|
|
||||||
[ext_resource path="res://World/Bush.png" type="Texture" id=1]
|
[ext_resource type="Texture2D" uid="uid://bppe8xi57e01x" path="res://World/Bush.png" id="1"]
|
||||||
[ext_resource path="res://Shadows/LargeShadow.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://cgr81av5lcoki" path="res://Shadows/LargeShadow.png" id="2"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id="1"]
|
||||||
radius = 7.99998
|
radius = 7.0
|
||||||
height = 12.0
|
height = 26.0
|
||||||
|
|
||||||
[node name="Bush" type="StaticBody2D"]
|
[node name="Bush" type="StaticBody2D"]
|
||||||
|
|
||||||
[node name="ShadowSprite" type="Sprite" parent="."]
|
[node name="ShadowSprite" type="Sprite2D" parent="."]
|
||||||
position = Vector2( 0, 6 )
|
position = Vector2(0, 6)
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource("2")
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource("1")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
position = Vector2( 0, 2.294 )
|
position = Vector2(0, 5)
|
||||||
rotation = -1.57079
|
rotation = -1.57079
|
||||||
shape = SubResource( 1 )
|
shape = SubResource("1")
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/CliffTileset.png-beb1369a7815e4e7ee0afe974b2636cf.stex"
|
uid="uid://yx0d4d27sbbs"
|
||||||
|
path="res://.godot/imported/CliffTileset.png-beb1369a7815e4e7ee0afe974b2636cf.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/CliffTileset.png"
|
source_file="res://World/CliffTileset.png"
|
||||||
dest_files=[ "res://.import/CliffTileset.png-beb1369a7815e4e7ee0afe974b2636cf.stex" ]
|
dest_files=["res://.godot/imported/CliffTileset.png-beb1369a7815e4e7ee0afe974b2636cf.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/DirtTileset.png-4e52e2a032d2a3147ded644a2054b3ec.stex"
|
uid="uid://b8ykt4vtn46df"
|
||||||
|
path="res://.godot/imported/DirtTileset.png-4e52e2a032d2a3147ded644a2054b3ec.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/DirtTileset.png"
|
source_file="res://World/DirtTileset.png"
|
||||||
dest_files=[ "res://.import/DirtTileset.png-4e52e2a032d2a3147ded644a2054b3ec.stex" ]
|
dest_files=["res://.godot/imported/DirtTileset.png-4e52e2a032d2a3147ded644a2054b3ec.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -8,7 +8,7 @@ func _ready():
|
|||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func create_grass_effect():
|
func create_grass_effect():
|
||||||
#var GrassEffect = load("res://Effects/GrassEffect.tscn")
|
#var GrassEffect = load("res://Effects/GrassEffect.tscn")
|
||||||
var grassEffect = GrassEffect.instance()
|
var grassEffect = GrassEffect.instantiate()
|
||||||
# var world = get_tree().current_scene
|
# var world = get_tree().current_scene
|
||||||
get_parent().add_child(grassEffect)
|
get_parent().add_child(grassEffect)
|
||||||
grassEffect.global_position = global_position
|
grassEffect.global_position = global_position
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/Grass.png-c8db04a845a94a62395b8fc264a498a7.stex"
|
uid="uid://dy76k7loscspo"
|
||||||
|
path="res://.godot/imported/Grass.png-c8db04a845a94a62395b8fc264a498a7.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/Grass.png"
|
source_file="res://World/Grass.png"
|
||||||
dest_files=[ "res://.import/Grass.png-c8db04a845a94a62395b8fc264a498a7.stex" ]
|
dest_files=["res://.godot/imported/Grass.png-c8db04a845a94a62395b8fc264a498a7.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,27 +1,26 @@
|
|||||||
[gd_scene load_steps=5 format=2]
|
[gd_scene load_steps=5 format=3 uid="uid://dr7343qje6tm5"]
|
||||||
|
|
||||||
[ext_resource path="res://World/Grass.png" type="Texture" id=1]
|
[ext_resource type="Texture2D" uid="uid://dy76k7loscspo" path="res://World/Grass.png" id="1"]
|
||||||
[ext_resource path="res://World/Grass.gd" type="Script" id=2]
|
[ext_resource type="Script" path="res://World/Grass.gd" id="2"]
|
||||||
[ext_resource path="res://Overlap/Hurtbox.tscn" type="PackedScene" id=3]
|
[ext_resource type="PackedScene" path="res://Overlap/Hurtbox.tscn" id="3"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id="1"]
|
||||||
extents = Vector2( 7, 7 )
|
size = Vector2(14, 14)
|
||||||
|
|
||||||
[node name="Grass" type="Node2D"]
|
[node name="Grass" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource("2")
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource("1")
|
||||||
centered = false
|
centered = false
|
||||||
offset = Vector2( -8, -8 )
|
offset = Vector2(-8, -8)
|
||||||
|
|
||||||
[node name="Hurtbox" parent="." instance=ExtResource( 3 )]
|
[node name="Hurtbox" parent="." instance=ExtResource("3")]
|
||||||
collision_layer = 8
|
collision_mask = 2
|
||||||
show_hit = false
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
||||||
position = Vector2( 8, 8 )
|
position = Vector2(8, 8)
|
||||||
shape = SubResource( 1 )
|
shape = SubResource("1")
|
||||||
|
|
||||||
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/GrassBackground.png-97f32375e80ccfc9d4addd18e4430882.stex"
|
uid="uid://cti8so4muh5ky"
|
||||||
|
path="res://.godot/imported/GrassBackground.png-97f32375e80ccfc9d4addd18e4430882.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/GrassBackground.png"
|
source_file="res://World/GrassBackground.png"
|
||||||
dest_files=[ "res://.import/GrassBackground.png-97f32375e80ccfc9d4addd18e4430882.stex" ]
|
dest_files=["res://.godot/imported/GrassBackground.png-97f32375e80ccfc9d4addd18e4430882.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=1
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/Tree.png-14ac646b55f931abf82a3d71f0acdb7a.stex"
|
uid="uid://cilct1beq1g2w"
|
||||||
|
path="res://.godot/imported/Tree.png-14ac646b55f931abf82a3d71f0acdb7a.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://World/Tree.png"
|
source_file="res://World/Tree.png"
|
||||||
dest_files=[ "res://.import/Tree.png-14ac646b55f931abf82a3d71f0acdb7a.stex" ]
|
dest_files=["res://.godot/imported/Tree.png-14ac646b55f931abf82a3d71f0acdb7a.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=3 uid="uid://cwjuswdufk2f7"]
|
||||||
|
|
||||||
[ext_resource path="res://Shadows/LargeShadow.png" type="Texture" id=1]
|
[ext_resource type="Texture2D" uid="uid://cgr81av5lcoki" path="res://Shadows/LargeShadow.png" id="1"]
|
||||||
[ext_resource path="res://World/Tree.png" type="Texture" id=2]
|
[ext_resource type="Texture2D" uid="uid://cilct1beq1g2w" path="res://World/Tree.png" id="2"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id="1"]
|
||||||
radius = 9.0
|
radius = 7.99999
|
||||||
height = 8.0
|
height = 26.0
|
||||||
|
|
||||||
[node name="Tree" type="StaticBody2D"]
|
[node name="Tree" type="StaticBody2D"]
|
||||||
|
|
||||||
[node name="ShadowSprite" type="Sprite" parent="."]
|
[node name="ShadowSprite" type="Sprite2D" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource("1")
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||||
position = Vector2( 0, -16 )
|
position = Vector2(0, -16)
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource("2")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
position = Vector2( 0, -1 )
|
position = Vector2(0, -1)
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
shape = SubResource( 1 )
|
shape = SubResource("1")
|
||||||
|
BIN
ActionRPG-HeartBeast/build/.DS_Store
vendored
BIN
ActionRPG-HeartBeast/build/.DS_Store
vendored
Binary file not shown.
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.apple-touch-icon.png-21031f526f7942c8019a62913b80e091.stex"
|
uid="uid://ll24blna6oyf"
|
||||||
|
path="res://.godot/imported/index.apple-touch-icon.png-21031f526f7942c8019a62913b80e091.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://build/web/index.apple-touch-icon.png"
|
source_file="res://build/web/index.apple-touch-icon.png"
|
||||||
dest_files=[ "res://.import/index.apple-touch-icon.png-21031f526f7942c8019a62913b80e091.stex" ]
|
dest_files=["res://.godot/imported/index.apple-touch-icon.png-21031f526f7942c8019a62913b80e091.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.icon.png-a9d2f4f7433eeddc29dad75f5e7f8710.stex"
|
uid="uid://b25wqmffmm83i"
|
||||||
|
path="res://.godot/imported/index.icon.png-a9d2f4f7433eeddc29dad75f5e7f8710.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://build/web/index.icon.png"
|
source_file="res://build/web/index.icon.png"
|
||||||
dest_files=[ "res://.import/index.icon.png-a9d2f4f7433eeddc29dad75f5e7f8710.stex" ]
|
dest_files=["res://.godot/imported/index.icon.png-a9d2f4f7433eeddc29dad75f5e7f8710.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.png-7e97af7272d6fa0065ffc53e96463470.stex"
|
uid="uid://dvde8msdqxe1a"
|
||||||
|
path="res://.godot/imported/index.png-7e97af7272d6fa0065ffc53e96463470.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://build/web/index.png"
|
source_file="res://build/web/index.png"
|
||||||
dest_files=[ "res://.import/index.png-7e97af7272d6fa0065ffc53e96463470.stex" ]
|
dest_files=["res://.godot/imported/index.png-7e97af7272d6fa0065ffc53e96463470.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[gd_resource type="Environment" load_steps=2 format=2]
|
[gd_resource type="Environment" load_steps=2 format=3 uid="uid://d0nqyc02p61ak"]
|
||||||
|
|
||||||
[sub_resource type="ProceduralSky" id=1]
|
[sub_resource type="Sky" id="1"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
background_mode = 2
|
background_mode = 2
|
||||||
background_sky = SubResource( 1 )
|
sky = SubResource("1")
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
uid="uid://58ox51r4vgtu"
|
||||||
|
path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://icon.png"
|
source_file="res://icon.png"
|
||||||
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.stex"
|
uid="uid://dxna4h0s6lnol"
|
||||||
|
path="res://.godot/imported/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://index.apple-touch-icon.png"
|
source_file="res://index.apple-touch-icon.png"
|
||||||
dest_files=[ "res://.import/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.stex" ]
|
dest_files=["res://.godot/imported/index.apple-touch-icon.png-8085a11cc297d91deb55511843765958.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.icon.png-5665fad188e88d1e882500a4376bfe02.stex"
|
uid="uid://vxguehaespet"
|
||||||
|
path="res://.godot/imported/index.icon.png-5665fad188e88d1e882500a4376bfe02.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://index.icon.png"
|
source_file="res://index.icon.png"
|
||||||
dest_files=[ "res://.import/index.icon.png-5665fad188e88d1e882500a4376bfe02.stex" ]
|
dest_files=["res://.godot/imported/index.icon.png-5665fad188e88d1e882500a4376bfe02.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[remap]
|
[remap]
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="CompressedTexture2D"
|
||||||
path="res://.import/index.png-5122033cac747157decad52589e2295c.stex"
|
uid="uid://dnas6bvkfc6d6"
|
||||||
|
path="res://.godot/imported/index.png-5122033cac747157decad52589e2295c.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
@ -10,26 +11,24 @@ metadata={
|
|||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://index.png"
|
source_file="res://index.png"
|
||||||
dest_files=[ "res://.import/index.png-5122033cac747157decad52589e2295c.stex" ]
|
dest_files=["res://.godot/imported/index.png-5122033cac747157decad52589e2295c.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_mode=0
|
compress/hdr_compression=1
|
||||||
compress/bptc_ldr=0
|
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
flags/repeat=0
|
compress/channel_pack=0
|
||||||
flags/filter=false
|
mipmaps/generate=false
|
||||||
flags/mipmaps=false
|
mipmaps/limit=-1
|
||||||
flags/anisotropic=false
|
roughness/mode=0
|
||||||
flags/srgb=2
|
roughness/src_normal=""
|
||||||
process/fix_alpha_border=true
|
process/fix_alpha_border=true
|
||||||
process/premult_alpha=false
|
process/premult_alpha=false
|
||||||
process/HDR_as_SRGB=false
|
|
||||||
process/invert_color=false
|
|
||||||
process/normal_map_invert_y=false
|
process/normal_map_invert_y=false
|
||||||
stream=false
|
process/hdr_as_srgb=false
|
||||||
size_limit=0
|
process/hdr_clamp_exposure=false
|
||||||
detect_3d=false
|
process/size_limit=0
|
||||||
svg/scale=1.0
|
detect_3d/compress_to=1
|
||||||
|
@ -6,12 +6,13 @@
|
|||||||
; [section] ; section goes between []
|
; [section] ; section goes between []
|
||||||
; param=value ; assign values to parameters
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
config_version=4
|
config_version=5
|
||||||
|
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="ActionRPG-HeartBeast"
|
config/name="ActionRPG-HeartBeast"
|
||||||
run/main_scene="res://World.tscn"
|
run/main_scene="res://World.tscn"
|
||||||
|
config/features=PackedStringArray("4.3")
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
@ -20,13 +21,12 @@ PlayerStats="*res://Player/PlayerStats.tscn"
|
|||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/width=320
|
window/size/viewport_width=320
|
||||||
window/size/height=180
|
window/size/viewport_height=180
|
||||||
window/size/test_width=1920
|
window/size/window_width_override=1920
|
||||||
window/size/test_height=1080
|
window/size/window_height_override=1080
|
||||||
window/dpi/allow_hidpi=true
|
window/stretch/scale=6.0
|
||||||
window/stretch/mode="2d"
|
window/stretch/scale_mode="integer"
|
||||||
window/stretch/aspect="keep"
|
|
||||||
|
|
||||||
[gui]
|
[gui]
|
||||||
|
|
||||||
@ -60,43 +60,43 @@ texture={
|
|||||||
|
|
||||||
ui_left={
|
ui_left={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194319,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":65,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
ui_right={
|
ui_right={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194321,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null)
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":68,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
ui_up={
|
ui_up={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194320,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":11,"pressure":0.0,"pressed":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":87,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
ui_down={
|
ui_down={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194322,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null)
|
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":83,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
attack={
|
attack={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":88,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":88,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":74,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":74,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
roll={
|
roll={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":90,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":90,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":75,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":75,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
[input_devices]
|
[input_devices]
|
||||||
@ -119,7 +119,7 @@ common/enable_pause_aware_picking=true
|
|||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
|
textures/canvas_textures/default_texture_filter=0
|
||||||
|
environment/defaults/default_environment="res://default_env.tres"
|
||||||
quality/driver/driver_name="GLES2"
|
quality/driver/driver_name="GLES2"
|
||||||
vram_compression/import_etc=true
|
vram_compression/import_etc=true
|
||||||
vram_compression/import_etc2=false
|
|
||||||
environment/default_environment="res://default_env.tres"
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://UI/TouchButtons6.png" type="Texture" id=1]
|
[ext_resource path="res://UI/TouchButtons6.png" type="Texture2D" id=1]
|
||||||
[ext_resource path="res://UI/TouchButtons3.png" type="Texture" id=2]
|
[ext_resource path="res://UI/TouchButtons3.png" type="Texture2D" id=2]
|
||||||
[ext_resource path="res://UI/TouchButtons5.png" type="Texture" id=3]
|
[ext_resource path="res://UI/TouchButtons5.png" type="Texture2D" id=3]
|
||||||
[ext_resource path="res://UI/TouchButtons1.png" type="Texture" id=4]
|
[ext_resource path="res://UI/TouchButtons1.png" type="Texture2D" id=4]
|
||||||
[ext_resource path="res://UI/TouchButtons2.png" type="Texture" id=5]
|
[ext_resource path="res://UI/TouchButtons2.png" type="Texture2D" id=5]
|
||||||
[ext_resource path="res://UI/TouchButtons4.png" type="Texture" id=6]
|
[ext_resource path="res://UI/TouchButtons4.png" type="Texture2D" id=6]
|
||||||
|
|
||||||
[node name="TouchControls" type="CanvasLayer"]
|
[node name="TouchControls" type="CanvasLayer"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user