fix roboterret's proj
This commit is contained in:
parent
abfee852cb
commit
c3a468a044
1 changed files with 55 additions and 10 deletions
|
@ -1,24 +1,69 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/enemy_arrow.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://graphics/particles/dust.png" type="Texture" id=1]
|
||||
[ext_resource path="res://graphics/enemy/roboturret_projectile.png" type="Texture" id=2]
|
||||
[ext_resource path="res://objects/player/arrow_projectile.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="Curve" id=3]
|
||||
_data = [ Vector2( 0, 1 ), 0.0, -0.139481, 0, 0, Vector2( 1, 0 ), -2.82064, 0.0, 0, 0 ]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 3.5, 1 )
|
||||
|
||||
[node name="BulletBall" instance=ExtResource( 1 )]
|
||||
light_mask = 0
|
||||
[sub_resource type="Curve" id=6]
|
||||
_data = [ Vector2( 0, 1 ), 0.0, -1.45746, 0, 0, Vector2( 1, 0 ), 0.00323196, 0.0, 0, 0 ]
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
[node name="BulletBall" type="Node2D"]
|
||||
light_mask = 0
|
||||
script = ExtResource( 3 )
|
||||
target_group = "player_hitbox"
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
z_index = -1
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="DustParticles" parent="." index="1"]
|
||||
[node name="DustParticles" type="CPUParticles2D" parent="."]
|
||||
show_behind_parent = true
|
||||
position = Vector2( -2, 0 )
|
||||
amount = 8
|
||||
z_index = -1
|
||||
local_coords = false
|
||||
texture = ExtResource( 1 )
|
||||
spread = 180.0
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 8.0
|
||||
initial_velocity_random = 0.18
|
||||
damping = 1.0
|
||||
angle = 720.0
|
||||
angle_random = 1.0
|
||||
scale_amount = 0.25
|
||||
scale_amount_random = 0.25
|
||||
scale_amount_curve = SubResource( 3 )
|
||||
|
||||
[node name="Hitbox" parent="." index="2"]
|
||||
collision_mask = 1
|
||||
[node name="Hitbox" type="Area2D" parent="." groups=["arrow"]]
|
||||
collision_layer = 4
|
||||
|
||||
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2( -0.5, 0 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="SparkParticles" type="CPUParticles2D" parent="."]
|
||||
position = Vector2( 4, 0 )
|
||||
emitting = false
|
||||
amount = 16
|
||||
lifetime = 0.5
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
texture = ExtResource( 1 )
|
||||
spread = 180.0
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 30.0
|
||||
initial_velocity_random = 0.5
|
||||
damping = 50.0
|
||||
angle = 720.0
|
||||
angle_random = 1.0
|
||||
scale_amount = 0.3
|
||||
scale_amount_curve = SubResource( 6 )
|
||||
color = Color( 1, 1, 0.290196, 1 )
|
||||
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
[connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue