mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-21 15:24:18 +00:00
debug things
This commit is contained in:
parent
caa23a5dee
commit
30464356aa
4 changed files with 10 additions and 4 deletions
|
@ -20,13 +20,14 @@ var collected_count: int = 0
|
|||
@export var collecting_amount: int
|
||||
|
||||
## The collector has picked up an object.
|
||||
signal collected(what: PhysicsBody2D)
|
||||
signal collected(body: PhysicsBody2D)
|
||||
|
||||
## The collector has received its collection goal and is about to reset.
|
||||
signal goal
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D):
|
||||
|
||||
if body is PhysicsBody2D:
|
||||
if body.collision_layer & collecting_collision_mask:
|
||||
var collectible: Collectible = body.get_node("Collectible")
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_jdvvd"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
||||
size = Vector2(16, 5)
|
||||
size = Vector2(16.5, 5.08333)
|
||||
|
||||
[node name="CoinCopper" type="RigidBody2D"]
|
||||
collision_layer = 5
|
||||
|
@ -19,7 +19,6 @@ linear_damp = 0.1
|
|||
angular_damp = 0.1
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
scale = Vector2(3, 3)
|
||||
shape = SubResource("RectangleShape2D_c6byl")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
||||
|
|
|
@ -7,3 +7,4 @@ class_name Game
|
|||
|
||||
func trigger_spawn():
|
||||
button_spawner.spawn()
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://c3rxmcwa5nqng"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c3rxmcwa5nqng"]
|
||||
|
||||
[ext_resource type="Script" path="res://game/game.gd" id="1_i3ly0"]
|
||||
[ext_resource type="PackedScene" uid="uid://bllsprv8orpn4" path="res://bottle/bottle.tscn" id="1_y7o2l"]
|
||||
[ext_resource type="PackedScene" uid="uid://d05b8jy3xmpcb" path="res://bottle/gravity_from_gyro.tscn" id="2_h2pfr"]
|
||||
[ext_resource type="PackedScene" uid="uid://c67lfbk4gf1ga" path="res://spawner/spawner.tscn" id="3_qwsty"]
|
||||
[ext_resource type="PackedScene" uid="uid://c3kitncwpi42j" path="res://entity/coin_copper.tscn" id="4_e5nwi"]
|
||||
[ext_resource type="PackedScene" uid="uid://ratkps4plkhl" path="res://convertors/copper_to_silver.tscn" id="6_tf2pv"]
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
texture_filter = 1
|
||||
|
@ -14,6 +15,10 @@ script = ExtResource("1_i3ly0")
|
|||
|
||||
[node name="GravityFromGyro" parent="Bottle" instance=ExtResource("2_h2pfr")]
|
||||
|
||||
[node name="CopperToSilver" parent="." instance=ExtResource("6_tf2pv")]
|
||||
z_index = 10
|
||||
position = Vector2(2, -314)
|
||||
|
||||
[node name="TimeSpawner" parent="." instance=ExtResource("3_qwsty")]
|
||||
position = Vector2(0, -480)
|
||||
scene = ExtResource("4_e5nwi")
|
||||
|
|
Loading…
Reference in a new issue