mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
re-implemented the respawning blocks + items fix, and got rid of a few annoying prints + removed the warning from the resource pack menu in the settings, as its no longer needed
This commit is contained in:
@@ -57,7 +57,6 @@ func update_resource() -> void:
|
||||
cache.clear()
|
||||
property_cache.clear()
|
||||
if node_to_affect != null:
|
||||
print(resource_json.data)
|
||||
var resource = get_resource(resource_json)
|
||||
node_to_affect.set(property_name, resource)
|
||||
if node_to_affect is AnimatedSprite2D:
|
||||
@@ -210,7 +209,6 @@ func get_variation_json(json := {}) -> Dictionary:
|
||||
|
||||
var campaign = Global.current_campaign
|
||||
if force_properties.has("Campaign"):
|
||||
is_random = true
|
||||
campaign = force_properties.Campaign
|
||||
if json.has(campaign) == false:
|
||||
campaign = "SMB1"
|
||||
@@ -226,9 +224,7 @@ func get_variation_json(json := {}) -> Dictionary:
|
||||
|
||||
var world = "World" + str(Global.world_num)
|
||||
if force_properties.has("World"):
|
||||
is_random = true
|
||||
world = "World" + str(force_properties.World)
|
||||
print(world)
|
||||
if json.has(world) == false:
|
||||
world = "World1"
|
||||
if json.has(world):
|
||||
@@ -332,8 +328,6 @@ func load_image_from_path(path := "") -> Texture2D:
|
||||
return null
|
||||
return load(path)
|
||||
var image = Image.new()
|
||||
if path == "":
|
||||
print([path, owner.name])
|
||||
image.load(path)
|
||||
return ImageTexture.create_from_image(image)
|
||||
|
||||
|
@@ -16,7 +16,6 @@ func _ready() -> void:
|
||||
texture_changed.connect(update)
|
||||
|
||||
func update() -> void:
|
||||
print(name)
|
||||
var source = tile_map.tile_set.get_source(atlas_id)
|
||||
if source != null:
|
||||
source.texture = texture
|
||||
|
Reference in New Issue
Block a user