This commit is contained in:
Tabby 2025-05-25 15:31:02 +10:00
parent 44be9924a6
commit d65e88fffc
8 changed files with 298 additions and 23 deletions

228
Levels/MenuRoom.tscn Normal file

File diff suppressed because one or more lines are too long

View file

@ -11,9 +11,9 @@ https://freesound.org/people/primeval_polypod/sounds/156507/
- [x] when command blocks are propped they are placed as a root node, causing them to carry between rooms - [x] when command blocks are propped they are placed as a root node, causing them to carry between rooms
- [x] onscreen timer - [x] onscreen timer
- [x] pedestal highlight should match clock - [x] pedestal highlight should match clock
- [ ] improve menu - [x] improve menu
- [ ] swap out to developer name - [x] swap out to developer name
- [ ] make it a 3d environment with a rotating camera - [x] make it a 3d environment with a rotating camera
- [ ] make kill zones check every frame, rather than just on entry - [ ] make kill zones check every frame, rather than just on entry
- [ ] increment version number - [ ] increment version number
- [x] pause menu on ESC - [x] pause menu on ESC

View file

@ -51,5 +51,5 @@ level_name = "The Last Challenge"
[node name="GameManager" type="Node"] [node name="GameManager" type="Node"]
script = ExtResource("1_rsuf4") script = ExtResource("1_rsuf4")
levels = Array[ExtResource("2_w2hey")]([SubResource("Resource_vs5fw"), SubResource("Resource_yde0b"), SubResource("Resource_5anvy"), SubResource("Resource_ksvl5"), SubResource("Resource_clwum"), SubResource("Resource_fdajg"), SubResource("Resource_jr8pj"), SubResource("Resource_oteey"), SubResource("Resource_td0vm")]) levels = Array[ExtResource("2_w2hey")]([SubResource("Resource_vs5fw"), SubResource("Resource_yde0b"), SubResource("Resource_5anvy"), SubResource("Resource_ksvl5"), SubResource("Resource_clwum"), SubResource("Resource_fdajg"), SubResource("Resource_jr8pj"), SubResource("Resource_oteey"), SubResource("Resource_td0vm")])
menu_scene_path = "res://menu.tscn" menu_scene_path = "res://newMenu.tscn"
sandbox_scene_path = "res://Levels/StartingRoom.tscn" sandbox_scene_path = "res://Levels/StartingRoom.tscn"

View file

@ -16,10 +16,10 @@ anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
script = ExtResource("1_igukb") script = ExtResource("1_igukb")
level_node = NodePath("MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer") level_node = NodePath("MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer")
credits_node = NodePath("MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/MarginContainer/CreditsPage") credits_node = NodePath("MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/MarginContainer/CreditsPage")
credits_button = NodePath("MarginContainer/VBoxContainer/HBoxContainer/CreditsButton") credits_button = NodePath("MarginContainer/VBoxContainer/HBoxContainer/CreditsButton")
levels_vbox = NodePath("MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer") levels_vbox = NodePath("MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer")
exit_button = NodePath("MarginContainer/VBoxContainer/HBoxContainer/ExitButton") exit_button = NodePath("MarginContainer/VBoxContainer/HBoxContainer/ExitButton")
[node name="MarginContainer" type="MarginContainer" parent="."] [node name="MarginContainer" type="MarginContainer" parent="."]
@ -37,26 +37,29 @@ theme_override_constants/margin_bottom = 100
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2 layout_mode = 2
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"] [node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/PanelContainer"]
layout_mode = 2
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "Chrono Chamber" text = "Chrono Chamber"
label_settings = SubResource("LabelSettings_d2xlr") label_settings = SubResource("LabelSettings_d2xlr")
horizontal_alignment = 1 horizontal_alignment = 1
[node name="Credit" type="Label" parent="MarginContainer/VBoxContainer"] [node name="Credit" type="Label" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "by Tabby :3" text = "by Tabby :3"
horizontal_alignment = 1 horizontal_alignment = 1
[node name="PanelContainer" type="PanelContainer" parent="MarginContainer/VBoxContainer"] [node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer/PanelContainer"] [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3
@ -65,7 +68,7 @@ theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10 theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10 theme_override_constants/margin_bottom = 10
[node name="CreditsPage" type="RichTextLabel" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/MarginContainer"] [node name="CreditsPage" type="RichTextLabel" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/MarginContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
@ -80,26 +83,26 @@ Door Open Sound: [url=https://freesound.org/people/primeval_polypod/sounds/15650
Interact Sounds: [url=https://opengameart.org/content/51-ui-sound-effects-buttons-switches-and-clicks]UI SFX set by Kenny[/url] Interact Sounds: [url=https://opengameart.org/content/51-ui-sound-effects-buttons-switches-and-clicks]UI SFX set by Kenny[/url]
Lose Sound: [url=https://freesound.org/people/hawkbe/sounds/511505/]Fuzzy powerdown by hawkbe[/url]" Lose Sound: [url=https://freesound.org/people/hawkbe/sounds/511505/]Fuzzy powerdown by hawkbe[/url]"
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="Button" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"] [node name="Button" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
text = "Level 1 - Name" text = "Level 1 - Name"
[node name="Button2" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"] [node name="Button2" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
text = "Level 1 - Name" text = "Level 1 - Name"
[node name="Button3" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"] [node name="Button3" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
text = "Level 1 - Name" text = "Level 1 - Name"
[node name="Button4" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/VBoxContainer"] [node name="Button4" type="Button" parent="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
text = "Level 1 - Name" text = "Level 1 - Name"
@ -117,6 +120,6 @@ layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
text = "Exit Game" text = "Exit Game"
[connection signal="meta_clicked" from="MarginContainer/VBoxContainer/PanelContainer/ScrollContainer/MarginContainer/CreditsPage" to="." method="_on_credits_page_meta_clicked"] [connection signal="meta_clicked" from="MarginContainer/VBoxContainer/PanelContainer/VBoxContainer/ScrollContainer/MarginContainer/CreditsPage" to="." method="_on_credits_page_meta_clicked"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CreditsButton" to="." method="_on_credits_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CreditsButton" to="." method="_on_credits_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"]

24
newMenu.tscn Normal file
View file

@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=3 uid="uid://ckhb0hrwrg7w"]
[ext_resource type="PackedScene" uid="uid://covfxl4tbosh3" path="res://Levels/MenuRoom.tscn" id="1_bgvtp"]
[ext_resource type="Script" uid="uid://2w2x1mwet61k" path="res://new_menu_logiv.gd" id="1_y84uc"]
[ext_resource type="PackedScene" uid="uid://dggn70v8xqwgy" path="res://menu.tscn" id="3_km8x0"]
[node name="NewMenu" type="Node3D" node_paths=PackedStringArray("cam_pivot", "camera", "cam_target")]
script = ExtResource("1_y84uc")
cam_pivot = NodePath("CamPivot")
camera = NodePath("CamPivot/Camera3D")
cam_target = NodePath("CamTarget")
[node name="ChronoManager" parent="." instance=ExtResource("1_bgvtp")]
[node name="CamPivot" type="Node3D" parent="."]
transform = Transform3D(-0.929287, 0, 0.369358, 0, 1, 0, -0.369358, 0, -0.929287, 0, 0, 0)
[node name="Camera3D" type="Camera3D" parent="CamPivot"]
transform = Transform3D(1, 0, 0, 0, 0.8412, 0.540725, 0, -0.540725, 0.8412, 0, 8.43682, 12.5768)
[node name="CamTarget" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.3933, 0)
[node name="Menu" parent="." instance=ExtResource("3_km8x0")]

19
new_menu_logiv.gd Normal file
View file

@ -0,0 +1,19 @@
extends Node3D
@export var cam_pivot : Node3D #rotate the camera around the room
@export var camera : Camera3D
@export var cam_target : Marker3D #camera should always look at this
var time : float = 0
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
time += delta
camera.position.y = sin(time/10) + 5
cam_pivot.rotation_degrees.y = time + 145
camera.look_at(cam_target.position)

1
new_menu_logiv.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://2w2x1mwet61k

View file

@ -11,7 +11,7 @@ config_version=5
[application] [application]
config/name="Chrono Chamber" config/name="Chrono Chamber"
run/main_scene="res://menu.tscn" run/main_scene="uid://ckhb0hrwrg7w"
config/features=PackedStringArray("4.4", "Forward Plus") config/features=PackedStringArray("4.4", "Forward Plus")
config/icon="res://Assets/Textures/cobalt_stone_4.png" config/icon="res://Assets/Textures/cobalt_stone_4.png"