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:
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