From b74e7f9e090d3164c12cb84d7aad5edb6dccf7cc Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 23 Aug 2022 15:24:20 +0200 Subject: [PATCH] Initial setup. --- game/Main.gd | 5 +++++ game/Main.tscn | 15 +++++++++++++-- game/project.pandemonium | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 game/Main.gd diff --git a/game/Main.gd b/game/Main.gd new file mode 100644 index 0000000..4bf5471 --- /dev/null +++ b/game/Main.gd @@ -0,0 +1,5 @@ +extends WebServer + + +func _ready(): + start() diff --git a/game/Main.tscn b/game/Main.tscn index e64809b..62e8ca3 100644 --- a/game/Main.tscn +++ b/game/Main.tscn @@ -1,3 +1,14 @@ -[gd_scene format=2] +[gd_scene load_steps=2 format=2] -[node name="Node" type="Node"] +[ext_resource path="res://Main.gd" type="Script" id=1] + +[node name="WebServer" type="WebServerSimple"] +script = ExtResource( 1 ) + +[node name="WebRoot" type="WebRoot" parent="."] + +[node name="Gallery" type="WebNode" parent="WebRoot"] + +[node name="index" type="StaticWebPage" parent="WebRoot"] +uri_segment = "/" +data = "Gallery" diff --git a/game/project.pandemonium b/game/project.pandemonium index dd69b2a..060f5ca 100644 --- a/game/project.pandemonium +++ b/game/project.pandemonium @@ -11,6 +11,7 @@ config_version=4 [application] config/name="Pandemonium CMS" +run/main_scene="res://Main.tscn" config/icon="res://icon.png" [physics]