PCK File loader

This commit is contained in:
2023-01-02 17:55:28 +01:00
parent 4de8162f48
commit 701bcfd39c
11 changed files with 100 additions and 49 deletions

12
Game.gd
View File

@@ -7,7 +7,17 @@ extends Node3D
func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
Runtimeloader.load_gltf("maps/Map.glb", true, true)
#var packer = PCKPacker.new()
#packer.pck_start("test_map.pck")
#packer.add_file("res://test_map.scn", "res://scoom/maps/test_maps.scn")
#packer.flush(true)
Runtimeloader.loadPCK("maps/test_map.pck", self)
var res = load("res://test_maps.scn") as PackedScene
var node = res.instantiate()
add_child(node)
Runtimeloader.get_all_entities(node)
func _process(_delta):