Import test project as example
TODO: update gitlab-ci template to also use the test-project
This commit is contained in:
65
test-project/scenes/Projectile.tscn
Executable file
65
test-project/scenes/Projectile.tscn
Executable file
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[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]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
extents = Vector2( 24, 24 )
|
||||
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
|
||||
custom_solver_bias = 0.0
|
||||
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 )
|
||||
linear_damp = -1.0
|
||||
angular_velocity = 0.0
|
||||
angular_damp = 100.0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Mask" type="Node2D" parent="."]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Mask"]
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="VisibilityNotifier" type="VisibilityNotifier2D" 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"
|
||||
|
||||
[node name="ExplosionShape" type="CollisionShape2D" parent="ExplosionArea"]
|
||||
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="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