diff --git a/levels/test_level.tscn b/levels/test_level.tscn index 3c4c2eb..6fc9ccf 100644 --- a/levels/test_level.tscn +++ b/levels/test_level.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=2 format=3 uid="uid://cbs0x36e3ranm"] +[gd_scene load_steps=3 format=3 uid="uid://cbs0x36e3ranm"] -[ext_resource type="MeshLibrary" uid="uid://dwo1m72yajrb1" path="res://assets/tilesets/tileset.tres" id="1_l447d"] +[ext_resource type="MeshLibrary" uid="uid://bo7ir5us230sa" path="res://assets/tilesets/tileset.tres" id="1_l447d"] +[ext_resource type="PackedScene" uid="uid://b5gb5paiupum" path="res://player/player.tscn" id="2_ojnju"] [node name="test_level" type="Node3D"] @@ -13,3 +14,6 @@ data = { "cells": PackedInt32Array(65525, 65535, 1441801, 65526, 65535, 1441796, 65527, 65535, 1441796, 65528, 65535, 1441796, 65529, 65535, 1441796, 65530, 65535, 1441796, 65531, 65535, 1441796, 65532, 65535, 1441796, 65534, 65535, 1441796, 65535, 65535, 1441796, 0, 65535, 1441796, 1, 65535, 1441796, 2, 65535, 1441796, 3, 65535, 1441796, 4, 65535, 1441796, 5, 65535, 1441796, 6, 65535, 1441796, 7, 65535, 1441796, 65526, 0, 1441796, 65527, 0, 1441796, 65528, 0, 1441796, 65529, 0, 1441796, 65530, 0, 1441796, 65531, 0, 1441796, 65527, 1, 1441796, 65528, 1, 1441796, 65529, 1, 1441796, 65535, 0, 1441796, 0, 0, 1441796, 1, 0, 1441796, 2, 0, 1441796, 3, 0, 1441796, 4, 0, 1441796, 5, 0, 1441796, 7, 0, 1441796, 8, 0, 1441796, 0, 1, 1441796, 1, 1, 1441796, 2, 1, 1441796, 3, 1, 1441796, 4, 1, 1441796, 0, 2, 1441796, 65535, 2, 1441796, 1, 2, 1441796, 2, 2, 1441796, 3, 2, 1441796, 4, 2, 1441796, 4, 3, 1441796, 5, 3, 1441796, 7, 4, 1441796, 6, 4, 1441796, 5, 4, 1441796, 65525, 0, 1441796, 65526, 1, 1441796, 65525, 1, 1441796, 65524, 65534, 7, 65524, 65533, 1441796, 65524, 65532, 1441796, 65524, 65531, 1441796, 65525, 65530, 1441796, 65526, 65530, 1441796, 65527, 65529, 1441796, 65528, 65529, 1441796, 65529, 65529, 1441796, 65530, 65529, 1441796, 65531, 65529, 1441796, 65532, 65530, 1441796, 65532, 65531, 1441796, 65533, 65531, 1441796, 65533, 65532, 1441796, 65534, 65532, 1441796, 65535, 65532, 1441796, 0, 65532, 1441796, 1, 65532, 1441796, 2, 65532, 1441796, 3, 65532, 1441796, 4, 65531, 1441796, 5, 65531, 1441796, 6, 65531, 1441796, 7, 65530, 1441796, 7, 65529, 1441796, 7, 65528, 1441796, 9, 65531, 1441796, 9, 65533, 1441801, 65525, 65531, 1441796, 65525, 65532, 1441796, 65525, 65533, 1441796, 65525, 65534, 1441796, 65526, 65534, 1441796, 65526, 65533, 1441796, 65526, 65532, 1441796, 65526, 65531, 1441796, 65527, 65531, 1441796, 65527, 65530, 1441796, 65528, 65530, 1441796, 65529, 65530, 1441796, 65530, 65530, 1441796, 65531, 65530, 1441796, 65531, 65531, 1441796, 65530, 65531, 1441796, 65529, 65531, 1441796, 65528, 65531, 1441796, 65527, 65532, 1441796, 65527, 65534, 1441796, 65527, 65533, 1441796, 65528, 65532, 1441796, 65529, 65532, 1441796, 65529, 65533, 1441796, 65528, 65533, 1441796, 65528, 65534, 1441796, 65530, 65533, 1441796, 65530, 65532, 1441796, 65529, 65534, 1441796, 65530, 65534, 1441796, 65531, 65533, 1441796, 65532, 65533, 1441796, 65531, 65534, 1441796, 65531, 65532, 1441796, 65532, 65532, 1441796, 65533, 65533, 1441796, 65534, 65533, 1441796, 65535, 65533, 1441796, 0, 65533, 1441796, 65535, 65534, 1441796, 65534, 65534, 1441796, 65533, 65534, 1441796, 65532, 65534, 1441796, 0, 65534, 1441796, 1, 65534, 1441796, 2, 65534, 1441796, 3, 65534, 1441796, 4, 65534, 1441796, 5, 65534, 1441796, 6, 65534, 1441796, 7, 65534, 1441796, 8, 65534, 1441796, 8, 65535, 1441796, 8, 65533, 1441796, 8, 65532, 1441796, 7, 65532, 1441796, 6, 65532, 1441796, 5, 65532, 1441796, 4, 65532, 1441796, 1, 65533, 1441796, 2, 65533, 1441796, 3, 65533, 1441796, 4, 65533, 1441796, 5, 65533, 1441796, 6, 65533, 1441796, 7, 65533, 1441796, 7, 65531, 1441796, 8, 65531, 1441796, 8, 65530, 1441796, 9, 65530, 1441801, 65535, 3, 1441801, 0, 3, 1441801, 1, 3, 1441801, 2, 3, 1441801, 3, 3, 1441801, 4, 4, 1441801, 5, 5, 1441801, 6, 5, 1441801, 7, 5, 1441801, 8, 4, 1441801, 6, 0, 1441796, 5, 1, 1441796, 9, 65535, 1441801, 9, 65534, 1441801, 9, 65532, 1441801, 10, 65531, 655367, 6, 65529, 1441801, 6, 65530, 1441801, 5, 65530, 1441801, 3, 65531, 1441801, 65534, 65531, 1441801, 65535, 65531, 1441801, 0, 65531, 1441801, 1, 65531, 1441801, 2, 65531, 1441801, 65533, 65530, 1441801, 65530, 65528, 1441801, 65529, 65528, 1441801, 65528, 65528, 1441801, 65526, 65529, 1441801, 65525, 65529, 1441801, 65523, 65531, 1441801, 65523, 65532, 1441801, 65524, 0, 1441801, 65526, 2, 1441801, 65527, 2, 1441801, 65528, 2, 1441801, 65530, 1, 1441801, 65531, 1, 1441801, 65524, 65535, 12, 8, 65529, 1441801, 10, 65532, 655372, 65524, 65530, 1441801, 8, 5, 655373, 8, 3, 1441805, 9, 4, 1441802, 7, 3, 1441804, 6, 3, 1441794, 5, 2, 655372, 6, 1, 1048588, 7, 1, 1048588, 8, 1, 1048588, 9, 1, 655373, 9, 0, 655367, 10, 65535, 655373, 10, 65534, 655372, 10, 65533, 655372, 10, 65530, 1441805, 9, 65529, 1441805, 8, 65528, 1441805, 7, 65527, 10, 5, 65529, 13, 6, 65528, 8, 4, 65530, 1441799, 3, 65530, 1441804, 2, 65530, 1441804, 1, 65530, 1441804, 0, 65530, 1441804, 65535, 65530, 1441804, 65534, 65530, 1441804, 65533, 65529, 1441805, 65532, 65529, 1441799, 65531, 65528, 1441800, 65530, 65527, 1441805, 65529, 65527, 1441804, 65528, 65527, 13, 65527, 65528, 1441799, 65526, 65528, 1441804, 65525, 65528, 13, 65523, 65529, 13, 65524, 65529, 1441804, 65523, 65530, 7, 65522, 65531, 13, 65522, 65532, 12, 65522, 65533, 1048589, 65523, 65533, 1048583, 65523, 0, 1048586, 65524, 1, 1048584, 65525, 2, 7, 65525, 3, 1048589, 65526, 3, 1048588, 65527, 3, 1048588, 65528, 3, 655373, 65529, 2, 1048583, 65530, 2, 1048588, 65531, 2, 655373, 65532, 1, 655373, 65532, 0, 655362, 65533, 65535, 1048578, 65534, 0, 1048589, 65535, 1, 7, 65534, 2, 8, 65534, 3, 1048589, 65535, 4, 1048589, 0, 4, 1048588, 1, 4, 1048588, 2, 4, 1048588, 3, 4, 1048588, 4, 5, 1048589, 5, 6, 1048589, 6, 6, 1048588, 7, 6, 655373) } metadata/_editor_floor_ = Vector3(0, 0, 0) + +[node name="player" parent="." instance=ExtResource("2_ojnju")] +transform = Transform3D(1, 0, 0, 0, 0.388867, 0.921294, 0, -0.921294, 0.388867, -2.76897, 18.3017, 8.82022) diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs index f3640b7..31b789f 100644 --- a/menu/start_game_menu.cs +++ b/menu/start_game_menu.cs @@ -9,7 +9,7 @@ public partial class start_game_menu : Control { private const string _path = "/root/StartGameMenu/"; private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no; - private TextEdit _ip; + private LineEdit _ip; private Label _error, _lip; private string Error { set { _error.Set("text", value); } } @@ -112,7 +112,7 @@ public partial class start_game_menu : Control { _host = GetNode