Player Missile
This commit is contained in:
parent
b7b4d03fda
commit
853eb28d33
6 changed files with 80 additions and 9 deletions
51
metroidvania/Scenes/Player/PlayerMissile.tscn
Normal file
51
metroidvania/Scenes/Player/PlayerMissile.tscn
Normal file
|
@ -0,0 +1,51 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Player/PlayerMissile.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Objects/Proyectile.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Assets/Effects/Particle.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 7, 2 )
|
||||
|
||||
[sub_resource type="Curve" id=2]
|
||||
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
|
||||
|
||||
[sub_resource type="CurveTexture" id=3]
|
||||
curve = SubResource( 2 )
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=4]
|
||||
emission_shape = 2
|
||||
emission_box_extents = Vector3( 0, 2, 0 )
|
||||
flag_disable_z = true
|
||||
gravity = Vector3( 0, 10, 0 )
|
||||
initial_velocity = 5.0
|
||||
initial_velocity_random = 0.5
|
||||
orbit_velocity = 0.0
|
||||
orbit_velocity_random = 0.0
|
||||
scale_curve = SubResource( 3 )
|
||||
|
||||
[node name="PlayerMissile" instance=ExtResource( 2 )]
|
||||
|
||||
[node name="Sprite" parent="." index="0"]
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="VisibilityNotifier2D" parent="." index="1"]
|
||||
position = Vector2( -0.5, 0 )
|
||||
scale = Vector2( 2.125, 1 )
|
||||
|
||||
[node name="Hitbox" parent="." index="3"]
|
||||
collision_mask = 10
|
||||
damage = 3
|
||||
|
||||
[node name="Collider" parent="Hitbox" index="0"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Particles2D" type="Particles2D" parent="." index="4"]
|
||||
position = Vector2( -8, 0 )
|
||||
lifetime = 0.4
|
||||
preprocess = 0.2
|
||||
local_coords = false
|
||||
process_material = SubResource( 4 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[editable path="Hitbox"]
|
Loading…
Add table
Add a link
Reference in a new issue