mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user