Compare commits

...

1 Commits

Author SHA1 Message Date
48fd30c668 WIP: Draft of hypercube level 2025-02-21 13:55:56 +01:00
3 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1,64 @@
[gd_scene load_steps=11 format=3 uid="uid://dfp37ydmk0iqd"]
[ext_resource type="Material" uid="uid://dm157s57mfhfe" path="res://addons/kenney_prototype_tools/materials/dark/material_02.tres" id="1_7g3li"]
[ext_resource type="PackedScene" uid="uid://c1r8mgwbekvi6" path="res://models/cube-wireframe.glb" id="2_k5v63"]
[ext_resource type="ArrayMesh" uid="uid://bqilnvlfws6xh" path="res://portal-mesh.tres" id="3_xriuu"]
[ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="4_b1ttb"]
[ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="5_r7ouk"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_gkglg"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
[sub_resource type="Sky" id="Sky_7g3li"]
sky_material = SubResource("ProceduralSkyMaterial_gkglg")
[sub_resource type="Environment" id="Environment_k5v63"]
background_mode = 2
sky = SubResource("Sky_7g3li")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="BoxMesh" id="BoxMesh_gkglg"]
size = Vector3(40, 1, 40)
[sub_resource type="BoxShape3D" id="BoxShape3D_wgwtu"]
size = Vector3(2, 2, 0.5)
[node name="Hypercube" type="Node3D"]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_k5v63")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D"]
material_override = ExtResource("1_7g3li")
mesh = SubResource("BoxMesh_gkglg")
[node name="cube-wireframe" parent="." instance=ExtResource("2_k5v63")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
[node name="Portal_red" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -1, 1, 0)
mesh = ExtResource("3_xriuu")
skeleton = NodePath("")
script = ExtResource("4_b1ttb")
vertical_viewport_resolution = 1080
disable_viewport_distance = 32.0
fade_out_distance_max = 30.0
fade_out_distance_min = 28.0
fade_out_color = Color(0, 0, 0, 1)
exit_portal = NodePath("")
[node name="Teleport" type="Area3D" parent="Portal_red"]
script = ExtResource("5_r7ouk")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Portal_red/Teleport"]
transform = Transform3D(1, 0, 4.72511e-13, 0, 1, 0, -4.72511e-13, 0, 1, 0, 0, -0.250244)
shape = SubResource("BoxShape3D_wgwtu")

BIN
models/cube-wireframe.glb Normal file

Binary file not shown.

View File

@ -0,0 +1,37 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c1r8mgwbekvi6"
path="res://.godot/imported/cube-wireframe.glb-967ab7c5c0b5cb7833d30e3afe2cbbe7.scn"
[deps]
source_file="res://models/cube-wireframe.glb"
dest_files=["res://.godot/imported/cube-wireframe.glb-967ab7c5c0b5cb7833d30e3afe2cbbe7.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1