Added Map; Added Spawners; Changed Decorations; Cleaned up Code and some Settings; Added Enemy
This commit is contained in:
parent
e82438139f
commit
e18beb6c4c
160 changed files with 4674 additions and 182 deletions
7
scenes/game/Hitbox/damage_area.gd
Normal file
7
scenes/game/Hitbox/damage_area.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Area2D
|
||||
|
||||
signal hit(entity: int)
|
||||
|
||||
func attack(damage):
|
||||
for i in get_overlapping_areas():
|
||||
i.hit(damage)
|
||||
11
scenes/game/Hitbox/damage_area.tscn
Normal file
11
scenes/game/Hitbox/damage_area.tscn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cwirujaquehfc"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/game/Hitbox/damage_area.gd" id="1_bd1uk"]
|
||||
|
||||
[node name="DamageArea" type="Area2D"]
|
||||
collision_layer = 128
|
||||
collision_mask = 256
|
||||
script = ExtResource("1_bd1uk")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
debug_color = Color(0.984314, 0, 0, 0.419608)
|
||||
6
scenes/game/Hitbox/hit_box.gd
Normal file
6
scenes/game/Hitbox/hit_box.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends Area2D
|
||||
|
||||
signal signalHit(damage)
|
||||
|
||||
func hit(damage):
|
||||
signalHit.emit(damage)
|
||||
11
scenes/game/Hitbox/hit_box.tscn
Normal file
11
scenes/game/Hitbox/hit_box.tscn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c2lwkqoigo128"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/game/Hitbox/hit_box.gd" id="1_nu2k7"]
|
||||
|
||||
[node name="HitBox" type="Area2D"]
|
||||
collision_layer = 256
|
||||
collision_mask = 128
|
||||
script = ExtResource("1_nu2k7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
debug_color = Color(0, 0.0784314, 0.0980392, 0.572549)
|
||||
Loading…
Add table
Add a link
Reference in a new issue