This commit is contained in:
Rendo 2025-07-13 04:55:33 +05:00
commit bb7c0f63c4
12 changed files with 482 additions and 28 deletions

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://c1ig40gtdcb60"]
[ext_resource type="PackedScene" uid="uid://pf8sq0bk3epn" path="res://scenes/projectiles/cucumber_projectile_part.tscn" id="1_3auks"]
[sub_resource type="GDScript" id="GDScript_3auks"]
resource_name = "cucumber"
script/source = "extends Node2D
func _ready() -> void:
await get_tree().process_frame
get_child(0).reparent(get_parent())
get_child(0).reparent(get_parent())
queue_free()
"
[node name="CucumberProjectileScene" type="Node2D"]
script = SubResource("GDScript_3auks")
[node name="CucumberProjectile" parent="." instance=ExtResource("1_3auks")]
rotation = 1.5708
[node name="CucumberProjectile2" parent="." instance=ExtResource("1_3auks")]
rotation = 4.71239

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://c1ig40gtdcb60"]
[ext_resource type="PackedScene" uid="uid://pf8sq0bk3epn" path="res://scenes/projectiles/cucumber_projectile_part.tscn" id="1_3auks"]
[sub_resource type="GDScript" id="GDScript_3auks"]
resource_name = "cucumber"
script/source = "extends Node2D
func _ready() -> void:
pass
#get_child(0).reparent(get_parent())
#get_child(0).reparent(get_parent())
#queue_free()
"
[node name="CucumberProjectileScene" type="Node2D"]
script = SubResource("GDScript_3auks")
[node name="CucumberProjectile" parent="." instance=ExtResource("1_3auks")]
rotation = 1.5708
[node name="CucumberProjectile2" parent="." instance=ExtResource("1_3auks")]
rotation = 4.71239

View file

@ -0,0 +1,22 @@
[gd_scene load_steps=5 format=3 uid="uid://pf8sq0bk3epn"]
[ext_resource type="PackedScene" uid="uid://b2hrv0aqbui7u" path="res://scenes/projectiles/pea.tscn" id="1_iyfw1"]
[ext_resource type="Texture2D" uid="uid://c68mrfs4wb81x" path="res://assets/sprites/atlases/atlas2.png" id="2_12o6v"]
[sub_resource type="AtlasTexture" id="AtlasTexture_h74iy"]
atlas = ExtResource("2_12o6v")
region = Rect2(24, 88, 7, 13)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_iyfw1"]
radius = 6.0
height = 24.0
[node name="CucumberProjectile" instance=ExtResource("1_iyfw1")]
_damage = 40
[node name="Sprite" parent="." index="0"]
rotation = -1.5708
texture = SubResource("AtlasTexture_h74iy")
[node name="CollisionShape2D" parent="." index="1"]
shape = SubResource("CapsuleShape2D_iyfw1")