1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 00:54:19 +00:00

circa fix

This commit is contained in:
Matteo Balugani 2023-10-02 21:32:08 +02:00
parent b9ce66a02d
commit ae777dcaf7
2 changed files with 5 additions and 9 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=26 format=3 uid="uid://clanhkk4sg47w"]
[gd_scene load_steps=25 format=3 uid="uid://clanhkk4sg47w"]
[ext_resource type="Script" path="res://converters/converter.gd" id="1_mf1ls"]
[ext_resource type="Texture2D" uid="uid://2dhqp2liete7" path="res://converters/gold_to_coaldiamond/diamond_converter_back.png" id="2_nj8gd"]
@ -14,7 +14,6 @@
[ext_resource type="AudioStream" uid="uid://7tw5efuo3gxj" path="res://audio/conversione/coin_to_coin.wav" id="11_5c46k"]
[ext_resource type="PackedScene" uid="uid://bevj27e1ha8m3" path="res://converters/converter_placement_body.tscn" id="12_xld3l"]
[ext_resource type="AudioStream" uid="uid://du16ilpv6gmxd" path="res://audio/conversione/drop_in_lava.wav" id="13_jvouj"]
[ext_resource type="PackedScene" uid="uid://cr5tiep20hk0s" path="res://entity/coal_diamond/diamond.tscn" id="15_ey4am"]
[sub_resource type="AtlasTexture" id="AtlasTexture_00uxa"]
atlas = ExtResource("3_p4wsd")
@ -128,9 +127,6 @@ spawn_rotation_degrees_min = 80.0
spawn_rotation_degrees_max = 100.0
overlapping_body_count_limit = 4
[node name="Diamond" parent="Spawner" instance=ExtResource("15_ey4am")]
position = Vector2(-34.3333, 1.66667)
[node name="PreventSpawnShape" type="CollisionShape2D" parent="Spawner"]
z_index = 3
position = Vector2(0, 3.5)

View file

@ -54,10 +54,10 @@ func _do_spawn():
return
if scene == null:
return
if scene._bundled["names"][0]=="Coal":
var scene = PackedScene.new()
scene.pack(get_node("Diamond"))
print("ehi")
# if scene._bundled["names"][0]=="Coal":
# var scene = PackedScene.new()
# scene.pack(get_node(""))
# print("ehi")
var instantiated = scene.instantiate()
instantiated.global_position = global_position + _select_spawn_position()
instantiated.rotation_degrees = _select_spawn_rotation()