add collecting coins
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bqi5s710xb1ju"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bqi5s710xb1ju"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="1_8j4h4"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7gp0gqvkv8j4" path="res://sprites/MrBrick_base.png" id="2_bc55y"]
|
||||
[ext_resource type="Texture2D" uid="uid://jl1gwqchhpdc" path="res://sprites/left_eye.png" id="3_2srrh"]
|
||||
[ext_resource type="Texture2D" uid="uid://iiawtnwmeny3" path="res://sprites/right_eye.png" id="4_ccn81"]
|
||||
[ext_resource type="Script" path="res://scripts/components/flip_player.gd" id="5_geu10"]
|
||||
[ext_resource type="Script" path="res://scripts/components/score.gd" id="6_fowa2"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hdsg1"]
|
||||
size = Vector2(16, 31)
|
||||
|
||||
[node name="Brick Player" type="CharacterBody2D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_8j4h4")
|
||||
|
||||
[node name="Root" type="Node2D" parent="."]
|
||||
@@ -38,3 +41,8 @@ eye_right = NodePath("../Root/Right Eye")
|
||||
player_controller = NodePath("..")
|
||||
|
||||
[node name="CoyoteTimer" type="Timer" parent="."]
|
||||
|
||||
[node name="CanPickUpComponent" type="Node" parent="."]
|
||||
|
||||
[node name="ScoreComponent" type="Node" parent="."]
|
||||
script = ExtResource("6_fowa2")
|
||||
|
Reference in New Issue
Block a user