| … | … | @@ -0,0 +1,18 @@ |
| 1 | extends Spatial | |
| 2 | ||
| 3 | export var portal_destination : String = "" | |
| 4 | ||
| 5 | # Called when the node enters the scene tree for the first time. | |
| 6 | func _ready(): | |
| 7 | pass # Replace with function body. | |
| 8 | ||
| 9 | func tryGameChange(gameChangeName : String, sendGossip : bool, playerNode): | |
| 10 | OS.execute(OS.get_executable_path(), ["--main-pack", portal_destination], false) | |
| 11 | get_tree().quit() | |
| 12 | ||
| 13 | func _on_CollisionShape_gameplay_entered(): | |
| 14 | pass # Replace with function body. | |
| 15 | ||
| 16 | func _on_Hitbox_body_shape_entered(body_rid, body, body_shape_index, local_shape_index): | |
| 17 | if(body is KinematicBody): | |
| 18 | tryGameChange(portal_destination, true, body) |
| … | … | @@ -44,7 +44,7 @@ func _input(_event): |
| 44 | 44 | mapNode.toggleScatterAreaVisibility() |
| 45 | 45 | if Input.is_action_just_pressed("superDEBUG"): |
| 46 | 46 | # OS.create_process("Tumble.exe", []) |
| 47 | OS.execute("Tumble.exe", ["--main-pack", "Tumble.pck"], false) | |
| 47 | OS.execute(OS.get_executable_path(), ["--main-pack", "marbles.pck"], false) | |
| 48 | 48 | get_tree().quit() |
| 49 | 49 | #var success = ProjectSettings.load_resource_pack("res://Tumble.pck") |
| 50 | 50 |