Traps updated, Live and Collactables added

This commit is contained in:
Jan Schuffenhauer
2020-04-18 18:56:05 +02:00
parent b0a35659d9
commit dd01067dac
30 changed files with 240 additions and 103 deletions

View File

@@ -1,9 +1,11 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Bannana.gd" type="Script" id=2]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
[ext_resource path="res://testSprites/flame.png" type="Texture" id=3]
[sub_resource type="CapsuleShape2D" id=1]
height = 6.36237

View File

@@ -1,9 +1,11 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Bannana.gd" type="Script" id=2]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
[ext_resource path="res://testSprites/Spike.png" type="Texture" id=3]
[sub_resource type="CapsuleShape2D" id=1]
height = 6.36237

View File

@@ -1,9 +1,11 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Bannana.gd" type="Script" id=2]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Banana/Bannana.gd" type="Script" id=2]
[ext_resource path="res://testSprites/Sting.png" type="Texture" id=3]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.77597
height = 6.36237

View File

@@ -0,0 +1,6 @@
extends Node2D
func _on_Hurtbox_area_entered(area):
queue_free()

View File

@@ -1,11 +1,12 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=6 format=2]
[ext_resource path="res://HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Bannana.gd" type="Script" id=2]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Objects/Traps/bear.gd" type="Script" id=2]
[ext_resource path="res://testSprites/falle.png" type="Texture" id=3]
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=4]
[sub_resource type="CapsuleShape2D" id=1]
height = 6.36237
height = 9.0
[node name="Bear_trap" type="Node2D"]
script = ExtResource( 2 )
@@ -21,4 +22,9 @@ collision_layer = 16
rotation = 1.5708
shape = SubResource( 1 )
[node name="Hurtbox" parent="Hitbox" instance=ExtResource( 4 )]
collision_layer = 32
collision_mask = 0
[connection signal="area_entered" from="Hitbox/Hurtbox" to="." method="_on_Hurtbox_area_entered"]
[editable path="Hitbox"]