Update test project for Godot 4.3 (#159)
Co-authored-by: Andi Susanto <and1zero@users.noreply.github.com> Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/ColoredEntity.gd" type="Script" id=1]
|
||||
[ext_resource path="res://resources/img/2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://resources/img/2.png" type="Texture2D" id=2]
|
||||
|
||||
[node name="Background" type="Node2D" groups=[
|
||||
"ColoredEntity",
|
||||
@@ -13,12 +13,12 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = -199.0
|
||||
margin_top = -157.0
|
||||
margin_right = 2097.0
|
||||
margin_bottom = 1217.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_left = -199.0
|
||||
offset_top = -157.0
|
||||
offset_right = 2097.0
|
||||
offset_bottom = 1217.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
|
||||
@@ -17,12 +17,12 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -60.5
|
||||
margin_top = -33.0
|
||||
margin_right = 60.5
|
||||
margin_bottom = 33.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_left = -60.5
|
||||
offset_top = -33.0
|
||||
offset_right = 60.5
|
||||
offset_bottom = 33.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
@@ -31,7 +31,7 @@ color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="Body" type="Area2D" parent="."]
|
||||
input_pickable = true
|
||||
gravity_vec = Vector2( 0, 1 )
|
||||
gravity_direction = Vector2( 0, 1 )
|
||||
gravity = 98.0
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/Cannon.gd" type="Script" id=1]
|
||||
[ext_resource path="res://resources/img/1.png" type="Texture" id=2]
|
||||
[ext_resource path="res://resources/img/1.png" type="Texture2D" id=2]
|
||||
|
||||
[node name="Cannon" type="Node2D" groups=[
|
||||
"ColoredEntity",
|
||||
]]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Sprite" type="TextureRect" parent="."]
|
||||
[node name="Sprite2D" type="TextureRect" parent="."]
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.5
|
||||
margin_top = -10.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 38.0
|
||||
rect_min_size = Vector2( 150, 24 )
|
||||
rect_pivot_offset = Vector2( 10, 10 )
|
||||
rect_clip_content = false
|
||||
offset_top = -10.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 38.0
|
||||
custom_minimum_size = Vector2( 150, 24 )
|
||||
pivot_offset = Vector2( 10, 10 )
|
||||
clip_contents = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 0
|
||||
@@ -26,11 +26,11 @@ size_flags_vertical = 0
|
||||
texture = ExtResource( 2 )
|
||||
stretch_mode = 2
|
||||
|
||||
[node name="GuideLine" type="Line2D" parent="Sprite"]
|
||||
[node name="GuideLine" type="Line2D" parent="Sprite2D"]
|
||||
modulate = Color( 1, 1, 1, 0.1 )
|
||||
show_behind_parent = true
|
||||
position = Vector2( 0, 10 )
|
||||
points = PoolVector2Array( 135, 2, 2000, 2 )
|
||||
points = PackedVector2Array( 135, 2, 2000, 2 )
|
||||
width = 5.0
|
||||
default_color = Color( 1, 1, 1, 1 )
|
||||
texture_mode = 1
|
||||
@@ -38,10 +38,10 @@ joint_mode = 2
|
||||
sharp_limit = 2.0
|
||||
round_precision = 10
|
||||
|
||||
[node name="CannonTip" type="Position2D" parent="Sprite"]
|
||||
[node name="CannonTip" type="Marker2D" parent="Sprite2D"]
|
||||
position = Vector2( 120, 12 )
|
||||
|
||||
[node name="CannonBase" type="Position2D" parent="Sprite"]
|
||||
[node name="CannonBase" type="Marker2D" parent="Sprite2D"]
|
||||
position = Vector2( 0, 12 )
|
||||
|
||||
[node name="Projectiles" type="Node" parent="."]
|
||||
|
||||
29
test-project/scenes/EnemyGenerator.tscn
Executable file → Normal file
29
test-project/scenes/EnemyGenerator.tscn
Executable file → Normal file
@@ -1,38 +1,29 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b2fpxxnc2fq3o"]
|
||||
|
||||
[ext_resource path="res://scripts/EnemyGenerator.gd" type="Script" id=1]
|
||||
[ext_resource type="Script" path="res://scripts/EnemyGenerator.gd" id="1"]
|
||||
|
||||
[sub_resource type="Curve2D" id=1]
|
||||
|
||||
bake_interval = 5.0
|
||||
[sub_resource type="Curve2D" id="1"]
|
||||
_data = {
|
||||
"points": PoolVector2Array( 0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584 )
|
||||
"points": PackedVector2Array(0, 0, 0, 0, 802.371, -163.584, 0, 0, 0, 0, 959.909, -42.497, 0, 0, 0, 0, 1955.58, -35.2126, 0, 0, 0, 0, 1977.69, -34.257, 0, 0, 0, 0, 2072.89, -95.3282, 0, 0, 0, 0, 2171.96, -161.2, 0, 0, 0, 0, 1329.54, -162.398, 0, 0, 0, 0, 958.623, -161.461, 0, 0, 0, 0, 801.772, -163.584, 0, 0, 0, 0, 802.371, -163.584)
|
||||
}
|
||||
point_count = 10
|
||||
|
||||
[node name="EnemyGenerator" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Enemies" type="Node" parent="."]
|
||||
|
||||
[node name="SpawnArea" type="Path2D" parent="."]
|
||||
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
|
||||
curve = SubResource( 1 )
|
||||
self_modulate = Color(0.5, 0.6, 1, 0.7)
|
||||
curve = SubResource("1")
|
||||
|
||||
[node name="SpawnLocation" type="PathFollow2D" parent="SpawnArea"]
|
||||
position = Vector2( 802.371, -163.584 )
|
||||
rotation = 0.655325
|
||||
offset = 0.0
|
||||
h_offset = 0.0
|
||||
v_offset = 0.0
|
||||
rotate = true
|
||||
cubic_interp = true
|
||||
loop = true
|
||||
lookahead = 4.0
|
||||
position = Vector2(802.371, -163.584)
|
||||
rotation = 0.655312
|
||||
|
||||
[node name="SpawnTimer" type="Timer" parent="."]
|
||||
process_mode = 1
|
||||
wait_time = 1.5
|
||||
one_shot = false
|
||||
autostart = true
|
||||
|
||||
[connection signal="start" from="." to="." method="_on_EnemyGenerator_start"]
|
||||
|
||||
7
test-project/scenes/GLOBAL.tscn
Executable file → Normal file
7
test-project/scenes/GLOBAL.tscn
Executable file → Normal file
@@ -1,7 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cch0y3px40vrg"]
|
||||
|
||||
[ext_resource path="res://scripts/GLOBAL.gd" type="Script" id=1]
|
||||
[ext_resource type="Script" path="res://scripts/GLOBAL.gd" id="1"]
|
||||
|
||||
[node name="GLOBAL" type="Node"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
script = ExtResource("1")
|
||||
|
||||
@@ -7,8 +7,8 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
@@ -20,12 +20,12 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 1.0
|
||||
margin_top = 84.0
|
||||
margin_right = 496.0
|
||||
margin_bottom = 196.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_left = 1.0
|
||||
offset_top = 84.0
|
||||
offset_right = 496.0
|
||||
offset_bottom = 196.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
mouse_filter = 1
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
@@ -37,17 +37,17 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 63.0
|
||||
margin_bottom = 112.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_right = 63.0
|
||||
offset_bottom = 112.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "THEME1"
|
||||
@@ -59,18 +59,18 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 67.0
|
||||
margin_right = 130.0
|
||||
margin_bottom = 112.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_left = 67.0
|
||||
offset_right = 130.0
|
||||
offset_bottom = 112.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "THEME2"
|
||||
@@ -82,18 +82,18 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 134.0
|
||||
margin_right = 197.0
|
||||
margin_bottom = 112.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_left = 134.0
|
||||
offset_right = 197.0
|
||||
offset_bottom = 112.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "THEME3"
|
||||
@@ -105,17 +105,17 @@ anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_right = 203.0
|
||||
margin_bottom = 78.0
|
||||
rect_pivot_offset = Vector2( 0, 0 )
|
||||
rect_clip_content = false
|
||||
offset_right = 203.0
|
||||
offset_bottom = 78.0
|
||||
pivot_offset = Vector2( 0, 0 )
|
||||
clip_contents = false
|
||||
focus_mode = 2
|
||||
mouse_filter = 0
|
||||
mouse_default_cursor_shape = 0
|
||||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 1
|
||||
toggle_mode = false
|
||||
enabled_focus_mode = 2
|
||||
focus_mode = 2
|
||||
shortcut = null
|
||||
group = null
|
||||
text = "START"
|
||||
|
||||
74
test-project/scenes/Main.tscn
Executable file → Normal file
74
test-project/scenes/Main.tscn
Executable file → Normal file
@@ -1,68 +1,46 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bo3no7bm4rb0n"]
|
||||
|
||||
[ext_resource path="res://scripts/Main.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/Game.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scenes/HUD.tscn" type="PackedScene" id=3]
|
||||
[ext_resource type="Script" path="res://scripts/Main.gd" id="1"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/Game.tscn" id="2"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/HUD.tscn" id="3"]
|
||||
|
||||
[sub_resource type="Curve2D" id=1]
|
||||
|
||||
bake_interval = 5.0
|
||||
[sub_resource type="Curve2D" id="1"]
|
||||
_data = {
|
||||
"points": PoolVector2Array( 0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567 )
|
||||
"points": PackedVector2Array(0, 0, 0, 0, 18.8947, 55.4928, 0, 0, 0, 0, -269.905, -419.567)
|
||||
}
|
||||
point_count = 2
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Game" parent="." instance=ExtResource( 2 )]
|
||||
[node name="Game" parent="." instance=ExtResource("2")]
|
||||
|
||||
[node name="Path2D" type="Path2D" parent="."]
|
||||
editor/display_folded = true
|
||||
self_modulate = Color( 0.5, 0.6, 1, 0.7 )
|
||||
position = Vector2( 460.871, 779.989 )
|
||||
self_modulate = Color(0.5, 0.6, 1, 0.7)
|
||||
position = Vector2(460.871, 779.989)
|
||||
rotation = -3.14159
|
||||
scale = Vector2( 2.52308, -0.891921 )
|
||||
curve = SubResource( 1 )
|
||||
scale = Vector2(2.52308, -0.891921)
|
||||
curve = SubResource("1")
|
||||
|
||||
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
|
||||
position = Vector2( -17.0181, -3.58169 )
|
||||
offset = 69.1956
|
||||
h_offset = 0.0
|
||||
v_offset = 0.0
|
||||
rotate = false
|
||||
cubic_interp = true
|
||||
position = Vector2(18.8947, 55.4928)
|
||||
rotation = -2.11702
|
||||
loop = false
|
||||
lookahead = 4.0
|
||||
|
||||
[node name="MenuCamera" type="Camera2D" parent="Path2D/PathFollow2D"]
|
||||
position = Vector2( 21.2, 58.5266 )
|
||||
anchor_mode = 1
|
||||
rotating = false
|
||||
current = true
|
||||
zoom = Vector2( 0.5, 0.5 )
|
||||
limit_left = -10000000
|
||||
limit_top = -10000000
|
||||
limit_right = 10000000
|
||||
limit_bottom = 10000000
|
||||
limit_smoothed = false
|
||||
drag_margin_h_enabled = true
|
||||
drag_margin_v_enabled = true
|
||||
smoothing_enabled = false
|
||||
smoothing_speed = 5.0
|
||||
offset_v = 0.0
|
||||
offset_h = 0.0
|
||||
drag_margin_left = 0.2
|
||||
drag_margin_top = 0.2
|
||||
drag_margin_right = 0.2
|
||||
drag_margin_bottom = 0.2
|
||||
editor_draw_screen = true
|
||||
position = Vector2(21.2, 58.5266)
|
||||
zoom = Vector2(0.5, 0.5)
|
||||
drag_horizontal_enabled = true
|
||||
drag_vertical_enabled = true
|
||||
editor_draw_limits = true
|
||||
editor_draw_drag_margin = true
|
||||
|
||||
[node name="HUD" parent="." instance=ExtResource( 3 )]
|
||||
margin_left = 625.0
|
||||
margin_top = 820.0
|
||||
margin_right = 625.0
|
||||
margin_bottom = 820.0
|
||||
[node name="HUD" parent="." instance=ExtResource("3")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
offset_left = 625.0
|
||||
offset_top = 820.0
|
||||
offset_right = 625.0
|
||||
offset_bottom = 820.0
|
||||
|
||||
[connection signal="start_zoom_out" from="." to="." method="_on_Main_start_zoom_out"]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scenes/Cannon.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://resources/img/cat0.png" type="Texture" id=3]
|
||||
[ext_resource path="res://resources/img/cat0.png" type="Texture2D" id=3]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
|
||||
@@ -18,11 +18,11 @@ script = ExtResource( 1 )
|
||||
[node name="Cannon" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( -50.0759, 40.2842 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2( 0.5, 0.5 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Body" type="KinematicBody2D" parent="."]
|
||||
[node name="Body" type="CharacterBody2D" parent="."]
|
||||
input_pickable = false
|
||||
collision_layer = 1
|
||||
collision_mask = 1
|
||||
|
||||
56
test-project/scenes/Projectile.tscn
Executable file → Normal file
56
test-project/scenes/Projectile.tscn
Executable file → Normal file
@@ -1,65 +1,47 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dwr8aulhrbt85"]
|
||||
|
||||
[ext_resource path="res://scripts/Projectile.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scripts/ColoredEntity.gd" type="Script" id=2]
|
||||
[ext_resource path="res://resources/img/missile-placeholder.png" type="Texture" id=3]
|
||||
[ext_resource type="Script" path="res://scripts/Projectile.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://scripts/ColoredEntity.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://my3jd38hyc7k" path="res://resources/img/missile-placeholder.png" id="3"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_13bxk"]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
extents = Vector2( 24, 24 )
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(48, 48)
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
[sub_resource type="CircleShape2D" id="2"]
|
||||
radius = 143.093
|
||||
|
||||
[node name="Projectile" type="RigidBody2D"]
|
||||
input_pickable = false
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
mode = 0
|
||||
mass = 3.0
|
||||
gravity_scale = 1.0
|
||||
custom_integrator = false
|
||||
continuous_cd = 0
|
||||
contacts_reported = 0
|
||||
contact_monitor = false
|
||||
sleeping = false
|
||||
can_sleep = true
|
||||
linear_velocity = Vector2( 0, 0 )
|
||||
physics_material_override = SubResource("PhysicsMaterial_13bxk")
|
||||
linear_damp = -1.0
|
||||
angular_velocity = 0.0
|
||||
angular_damp = 100.0
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Mask" type="Node2D" parent="."]
|
||||
script = ExtResource( 2 )
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Mask"]
|
||||
texture = ExtResource( 3 )
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Mask"]
|
||||
texture = ExtResource("3")
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
shape = SubResource("1")
|
||||
|
||||
[node name="VisibilityNotifier" type="VisibilityNotifier2D" parent="."]
|
||||
rect = Rect2( -12, -12, 22, 24 )
|
||||
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
rect = Rect2(-12, -12, 22, 24)
|
||||
|
||||
[node name="ExplosionArea" type="Area2D" parent="."]
|
||||
input_pickable = true
|
||||
gravity_vec = Vector2( 0, 1 )
|
||||
gravity = 98.0
|
||||
linear_damp = 0.1
|
||||
angular_damp = 1.0
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
audio_bus_override = false
|
||||
audio_bus_name = "Master"
|
||||
gravity = 98.0
|
||||
|
||||
[node name="ExplosionShape" type="CollisionShape2D" parent="ExplosionArea"]
|
||||
shape = SubResource( 2 )
|
||||
shape = SubResource("2")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_Projectile_body_entered"]
|
||||
[connection signal="screen_exited" from="VisibilityNotifier" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier3D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|
||||
[connection signal="body_entered" from="ExplosionArea" to="." method="_on_ExplosionArea_body_entered"]
|
||||
[connection signal="body_exited" from="ExplosionArea" to="." method="_on_ExplosionArea_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user