OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-tps / scenes / maps / map_test.tscn

60 lines · tscn ref:
[gd_scene format=3 uid="uid://maptest01"]

[ext_resource type="Script" path="res://scenes/maps/map_dc_level.gd" id="map_dc_level"]
[ext_resource type="PackedScene" uid="uid://teleporter01" path="res://scenes/teleporter/teleporter.tscn" id="teleporter"]

[sub_resource type="BoxShape3D" id="BoxShape3D_ground"]
size = Vector3(100, 0.2, 100)

; THE START MAP, INTENTIONALLY MINIMAL (user 2026-10-06): ground, spawns, DC-level brush
; editing (the map_dc_level script + DCLevel) and TWO teleporters — the floating island /
; mountain, and the dev maps. Everything else is BUILT IN-GAME in a Home and shipped as
; the release starter (tools/release-home-map.sh map_test -> home/map_test.home.json).
; The test props and the other ten teleporters this map used to carry are kept, unchanged,
; in map_dev_test.tscn, reachable from the dev hub.
; Node names and unique_ids of the kept nodes are the old ones: a Home adopts scene nodes
; as base objects by NAME (scene:<NodeName>).
[node name="MapTest" type="Node3D" unique_id=538151728]
script = ExtResource("map_dc_level")
level_import = false

[node name="DCLevel" type="DCLevel" parent="." unique_id=1093847261]

[node name="Ground" type="StaticBody3D" parent="." unique_id=1126974908]
collision_layer = 3

[node name="GroundShape" type="CollisionShape3D" parent="Ground" unique_id=1706837898]
shape = SubResource("BoxShape3D_ground")

[node name="GroundMesh" type="CSGBox3D" parent="Ground" unique_id=835176061]
size = Vector3(100, 0.2, 100)

[node name="SpawnPoint1" type="Marker3D" parent="." unique_id=813633365 groups=["spawn_points"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 1, -5)

[node name="SpawnPoint2" type="Marker3D" parent="." unique_id=253694381 groups=["spawn_points"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 1, -5)

[node name="SpawnPoint3" type="Marker3D" parent="." unique_id=176456132 groups=["spawn_points"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 1, 5)

[node name="SpawnPoint4" type="Marker3D" parent="." unique_id=1811834430 groups=["spawn_points"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 1, 5)

; Unchanged from the old map_test: (-30, 0, 30), and destination (2600, 5, 0) is
; map_mountain's arrival — 600 m clear of the mountain's declared 4000 m box, ON the slab,
; facing the whole asset. NOT the origin: that graph is a cone with its peak at the
; centre, so (0, y, 0) is two kilometres inside the mountain.
[node name="TeleporterToMountain" parent="." instance=ExtResource("teleporter")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -30, 0, 30)
target_map = "res://scenes/maps/map_mountain.tscn"
label_text = "Mountain"

; The dev maps: every other teleporter, around the edge of a flat square
; (map_dev_hub.tscn). Part of the game, just out of a new player's way. (30, 0, 30)
; mirrors the Mountain pad across X (60 m apart) — the old Flat Testbed spot.
[node name="TeleporterToDevHub" parent="." instance=ExtResource("teleporter")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30, 0, 30)
target_map = "res://scenes/maps/map_dev_hub.tscn"
label_text = "Dev Maps"