added green attack, enemy
This commit is contained in:
parent
f852b0a30e
commit
2bf9db610e
43 changed files with 673 additions and 246 deletions
26
scenes/grenade.tscn
Normal file
26
scenes/grenade.tscn
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_scene format=3 uid="uid://b6n1ogixc2chy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://6ep27l6iw1hi" path="res://scripts/grenade.gd" id="1_wxtds"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqu37r80dlxao" path="res://scenes/green_explosion.tscn" id="2_76ndk"]
|
||||
[ext_resource type="Texture2D" uid="uid://br8dx2f3mfxcd" path="res://assets/masks/grenade.png" id="2_vhiwl"]
|
||||
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="3_vhiwl"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_76ndk"]
|
||||
|
||||
[node name="Grenade" type="Node2D" unique_id=2087865404]
|
||||
script = ExtResource("1_wxtds")
|
||||
max_bounces = 3
|
||||
explosion = ExtResource("2_76ndk")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1335147270]
|
||||
texture = ExtResource("2_vhiwl")
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." unique_id=973042172]
|
||||
script = ExtResource("3_vhiwl")
|
||||
deal_damage = false
|
||||
metadata/_custom_type_script = "uid://ejd25ul4j5pp"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" unique_id=574492836]
|
||||
shape = SubResource("RectangleShape2D_76ndk")
|
||||
|
||||
[connection signal="hit_entity" from="Hitbox" to="." method="_on_hitbox_hit_entity"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue