Added Coin Sparkle Effects (#350)

* Just the Coin Sparkle stuff

FYI, if a property in the json is formatted like `exa.exb` then it reads `exa` as another object and `exb` as a property in `exa` assuming the root `property_node` contains this object.
Also primarily for Resource Packs to change how the particles work and should explain how I got there with my personal SMAS skin.

* Added Coin Sparkle Texture to Scene

Of course I broke it in some form.
This commit is contained in:
KirbyKidJ
2025-09-28 03:30:45 -07:00
committed by GitHub
parent f6a31f8508
commit 6d23f9dcd4
10 changed files with 108 additions and 15 deletions

View File

@@ -168,7 +168,16 @@ func apply_properties(properties := {}) -> void:
if value is Array:
property_node.set(i, Vector2(value[0], value[1]))
else:
property_node.set(i, properties[i])
var obj = property_node
for p in i.split("."):
if not is_instance_valid(obj): continue
if obj.get(p) is Object:
if obj.has_method("duplicate"):
obj.set(p, obj[p].duplicate(true))
obj = obj[p]
else:
obj.set(p, properties[i])
continue
func get_variation_json(json := {}) -> Dictionary:
var level_theme = Global.level_theme