mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-25 17:14:20 +00:00
coal_and_diamond
This commit is contained in:
parent
3c5c3ec510
commit
c7777580a4
9 changed files with 79 additions and 10 deletions
|
@ -70,12 +70,11 @@ size = Vector2(26, 5)
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jeo5f"]
|
||||||
size = Vector2(26, 10)
|
size = Vector2(26, 10)
|
||||||
|
|
||||||
[node name="CoalDiamondConverter" type="StaticBody2D" node_paths=PackedStringArray("spawner")]
|
[node name="CoalDiamondConverter" type="StaticBody2D"]
|
||||||
scale = Vector2(3, 3)
|
scale = Vector2(3, 3)
|
||||||
collision_layer = 8
|
collision_layer = 8
|
||||||
collision_mask = 0
|
collision_mask = 0
|
||||||
script = ExtResource("1_mf1ls")
|
script = ExtResource("1_mf1ls")
|
||||||
spawner = NodePath("")
|
|
||||||
|
|
||||||
[node name="SpriteBack" type="Sprite2D" parent="."]
|
[node name="SpriteBack" type="Sprite2D" parent="."]
|
||||||
z_index = -2
|
z_index = -2
|
||||||
|
|
35
entity/coal_diamond/coal.tscn
Normal file
35
entity/coal_diamond/coal.tscn
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[gd_scene load_steps=6 format=3 uid="uid://diy8fj7mcc00p"]
|
||||||
|
|
||||||
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_ftt7x"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bgq5afrrpc4a3" path="res://entity/coal_diamond/diamond_white.png" id="2_ug7o0"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_e8hbs"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_3e4d8"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x6m8s"]
|
||||||
|
radius = 10.5119
|
||||||
|
|
||||||
|
[node name="Coal" type="RigidBody2D"]
|
||||||
|
collision_layer = 4
|
||||||
|
collision_mask = 14
|
||||||
|
mass = 2.0
|
||||||
|
inertia = 600.0
|
||||||
|
physics_material_override = ExtResource("1_ftt7x")
|
||||||
|
continuous_cd = 1
|
||||||
|
can_sleep = false
|
||||||
|
linear_damp = 0.1
|
||||||
|
angular_damp = 0.1
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
shape = SubResource("CircleShape2D_x6m8s")
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
||||||
|
texture_filter = 1
|
||||||
|
texture = ExtResource("2_ug7o0")
|
||||||
|
|
||||||
|
[node name="Collectible" parent="." instance=ExtResource("4_e8hbs")]
|
||||||
|
type = &"Coal"
|
||||||
|
|
||||||
|
[node name="Valuable" parent="." instance=ExtResource("5_3e4d8")]
|
||||||
|
|
||||||
|
[connection signal="collected" from="Collectible" to="Collectible" method="_on_done" flags=18]
|
|
@ -3,15 +3,15 @@
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://bquk2q5g6bst5"
|
uid="uid://bquk2q5g6bst5"
|
||||||
path="res://.godot/imported/diamond.png-0575d649be1d35db3ad92a77f7f138c4.ctex"
|
path="res://.godot/imported/diamond.png-0fb18f4a52a588670257dc6a7f72ec4b.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://entity/gem/diamond.png"
|
source_file="res://entity/coal_diamond/diamond.png"
|
||||||
dest_files=["res://.godot/imported/diamond.png-0575d649be1d35db3ad92a77f7f138c4.ctex"]
|
dest_files=["res://.godot/imported/diamond.png-0fb18f4a52a588670257dc6a7f72ec4b.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
35
entity/coal_diamond/diamond.tscn
Normal file
35
entity/coal_diamond/diamond.tscn
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[gd_scene load_steps=6 format=3 uid="uid://cr5tiep20hk0s"]
|
||||||
|
|
||||||
|
[ext_resource type="PhysicsMaterial" uid="uid://c6kn1an85lccr" path="res://entity/coin_physics_material.tres" id="1_mma75"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bquk2q5g6bst5" path="res://entity/coal_diamond/diamond.png" id="2_abwth"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="3_n4fa5"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="4_yfos5"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x6m8s"]
|
||||||
|
radius = 10.5119
|
||||||
|
|
||||||
|
[node name="Diamond" type="RigidBody2D"]
|
||||||
|
collision_layer = 4
|
||||||
|
collision_mask = 14
|
||||||
|
mass = 2.0
|
||||||
|
inertia = 600.0
|
||||||
|
physics_material_override = ExtResource("1_mma75")
|
||||||
|
continuous_cd = 1
|
||||||
|
can_sleep = false
|
||||||
|
linear_damp = 0.1
|
||||||
|
angular_damp = 0.1
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
shape = SubResource("CircleShape2D_x6m8s")
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite2D" parent="CollisionShape2D"]
|
||||||
|
texture_filter = 1
|
||||||
|
texture = ExtResource("2_abwth")
|
||||||
|
|
||||||
|
[node name="Collectible" parent="." instance=ExtResource("3_n4fa5")]
|
||||||
|
type = &"Diamond"
|
||||||
|
|
||||||
|
[node name="Valuable" parent="." instance=ExtResource("4_yfos5")]
|
||||||
|
|
||||||
|
[connection signal="collected" from="Collectible" to="Collectible" method="_on_done" flags=18]
|
|
@ -3,15 +3,15 @@
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://bgq5afrrpc4a3"
|
uid="uid://bgq5afrrpc4a3"
|
||||||
path="res://.godot/imported/diamond_white.png-ea17eba66708a2de5eae13c889056729.ctex"
|
path="res://.godot/imported/diamond_white.png-3d313595ab6d3b2376dafee829b7e427.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://entity/gem/diamond_white.png"
|
source_file="res://entity/coal_diamond/diamond_white.png"
|
||||||
dest_files=["res://.godot/imported/diamond_white.png-ea17eba66708a2de5eae13c889056729.ctex"]
|
dest_files=["res://.godot/imported/diamond_white.png-3d313595ab6d3b2376dafee829b7e427.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper/coin_copper_outline_2.png" id="3_dq1f7"]
|
[ext_resource type="Texture2D" uid="uid://2vtvoj6ua3cb" path="res://entity/coin_copper/coin_copper_outline_2.png" id="3_dq1f7"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_npwn2"]
|
[ext_resource type="PackedScene" uid="uid://bk1vvq5rug01m" path="res://collector/collectible.tscn" id="4_npwn2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_fd0r7"]
|
[ext_resource type="PackedScene" uid="uid://ujpra0s1kpqi" path="res://value/valuable.tscn" id="5_fd0r7"]
|
||||||
[ext_resource type="AudioStream" uid="uid://ds2rl6eg5jr1" path="res://audio/tap/click5.wav" id="7_fxd28"]
|
[ext_resource type="AudioStream" uid="uid://wy7f2j0wg1ur" path="res://audio/tap/click5.wav" id="7_fxd28"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6byl"]
|
||||||
size = Vector2(14, 3)
|
size = Vector2(14, 3)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
[ext_resource type="PackedScene" uid="uid://cklkdygv61bny" path="res://interface/shop_ui.tscn" id="2_qj86l"]
|
[ext_resource type="PackedScene" uid="uid://cklkdygv61bny" path="res://interface/shop_ui.tscn" id="2_qj86l"]
|
||||||
[ext_resource type="Script" path="res://interface/custom_ui.gd" id="3_xav0n"]
|
[ext_resource type="Script" path="res://interface/custom_ui.gd" id="3_xav0n"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bo5unrhqpoyim" path="res://interface/game_ui.tscn" id="4_siim3"]
|
[ext_resource type="PackedScene" uid="uid://bo5unrhqpoyim" path="res://interface/game_ui.tscn" id="4_siim3"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bpvx3nkkbluip" path="res://safe_ui.tscn" id="5_2uxda"]
|
[ext_resource type="PackedScene" path="res://safe_ui.tscn" id="5_2uxda"]
|
||||||
[ext_resource type="Script" path="res://game_camera.gd" id="5_xxjtg"]
|
[ext_resource type="Script" path="res://game_camera.gd" id="5_xxjtg"]
|
||||||
|
|
||||||
[sub_resource type="GDScript" id="GDScript_kyj65"]
|
[sub_resource type="GDScript" id="GDScript_kyj65"]
|
||||||
|
|
Loading…
Reference in a new issue