Files
mtgodot-poc/project/sample_profile.gd
T
2026-09-27 19:44:41 -07:00

15 lines
420 B
GDScript

@tool
extends SceneTree
func _init() -> void:
var tw = Metin2World.new()
tw.set("assets_root", "pack://")
tw.set("map_path", "metin2_map_a1")
tw.set("auto_load", false)
tw.call("set_focus_tile", Vector2i(2, 2))
if tw.call("load_map"):
for y in range(68200, 66000, -100):
var h = float(tw.call("sample_height", 59700.0 / 100.0, float(y) / 100.0)) * 100.0
print("y = %d -> height = %.2f" % [y, h])
quit(0)