First Prototype
This commit is contained in:
parent
e18beb6c4c
commit
9e3349eec3
40 changed files with 1100 additions and 48 deletions
|
|
@ -35,7 +35,7 @@ func pickup(newPlayer):
|
|||
func drop():
|
||||
global_position.y += 10
|
||||
player = null
|
||||
z_index = 0
|
||||
z_index = 1
|
||||
|
||||
func getWeight():
|
||||
return weight
|
||||
|
|
|
|||
|
|
@ -1,22 +1,33 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dxpd1pq7v6ing"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dxpd1pq7v6ing"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/game/objects/object.gd" id="1_3y27f"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4h5dodgulduy" path="res://Assets/Icons/Pickup.png" id="2_pqvu2"]
|
||||
[ext_resource type="Texture2D" uid="uid://83mf84k2pi3m" path="res://Assets/Shadow.png" id="3_hre65"]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_n7gny"]
|
||||
light_mode = 2
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_3q7s5"]
|
||||
light_mode = 2
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_vvfu1"]
|
||||
radius = 8.0
|
||||
|
||||
[node name="Object" type="Area2D" groups=["Object"]]
|
||||
light_mask = 16
|
||||
visibility_layer = 16
|
||||
z_index = 1
|
||||
material = SubResource("CanvasItemMaterial_n7gny")
|
||||
collision_layer = 16
|
||||
collision_mask = 96
|
||||
script = ExtResource("1_3y27f")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="."]
|
||||
material = SubResource("CanvasItemMaterial_3q7s5")
|
||||
position = Vector2(2.38419e-07, 2.38419e-07)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("3_hre65")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -4)
|
||||
shape = SubResource("CircleShape2D_vvfu1")
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ radius = 8.0
|
|||
value = 100
|
||||
weight = 40
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="0"]
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
shape = SubResource("CircleShape2D_fkh3i")
|
||||
|
||||
[node name="Sprite2D" parent="." index="1"]
|
||||
[node name="Sprite2D" parent="." index="2"]
|
||||
texture = ExtResource("2_3c460")
|
||||
|
|
|
|||
|
|
@ -10,9 +10,8 @@ radius = 8.0
|
|||
value = 800
|
||||
weight = 50
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="0"]
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
shape = SubResource("CircleShape2D_772ct")
|
||||
|
||||
[node name="Sprite2D" parent="." index="1"]
|
||||
position = Vector2(0, -8)
|
||||
[node name="Sprite2D" parent="." index="2"]
|
||||
texture = ExtResource("2_q4tnr")
|
||||
|
|
|
|||
|
|
@ -9,9 +9,8 @@ radius = 8.0
|
|||
[node name="Vase" instance=ExtResource("1_fkdlr")]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="CollisionShape2D" parent="." index="0"]
|
||||
[node name="CollisionShape2D" parent="." index="1"]
|
||||
shape = SubResource("CircleShape2D_pmiic")
|
||||
|
||||
[node name="Sprite2D" parent="." index="1"]
|
||||
position = Vector2(0, -4)
|
||||
[node name="Sprite2D" parent="." index="2"]
|
||||
texture = ExtResource("2_vxdei")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue