OverviewFilesCommitsIssuesDocsReleasesPeers

godot-witchy_world_demo commits / 9961ea8

adding in game portal
9961ea8e8f1a300859aa5f3ad7b7d1ea16962572
by plankatron <fleeky@gmail.com> · 2022-05-06T03:01:17.000Z

Changed files (3) +19 -1

game/map_decorations/portal.gd +18 -0
……@@ -0,0 +1,18 @@
1extends Spatial
2
3export var portal_destination : String = ""
4
5# Called when the node enters the scene tree for the first time.
6func _ready():
7 pass # Replace with function body.
8
9func tryGameChange(gameChangeName : String, sendGossip : bool, playerNode):
10 OS.execute(OS.get_executable_path(), ["--main-pack", portal_destination], false)
11 get_tree().quit()
12
13func _on_CollisionShape_gameplay_entered():
14 pass # Replace with function body.
15
16func _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)
game/maps/map_witch_island/map_witch_island.scn +0 -0
(no content changes — binary or rename)
game/player/player_core_local_input_special.gd +1 -1
……@@ -44,7 +44,7 @@ func _input(_event):
4444 mapNode.toggleScatterAreaVisibility()
4545 if Input.is_action_just_pressed("superDEBUG"):
4646 # 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)
4848 get_tree().quit()
4949 #var success = ProjectSettings.load_resource_pack("res://Tumble.pck")
5050