mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-12 13:32:23 +02:00
Traps updated, Live and Collactables added
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
6
src/Objects/Traps/bear.gd
Normal file
6
src/Objects/Traps/bear.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
queue_free()
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user