Compare commits
5 commits
508799552b
...
e2682da7fe
| Author | SHA1 | Date | |
|---|---|---|---|
| e2682da7fe | |||
| 1ce96e76c4 | |||
| 62abadad2a | |||
| 35fd47731b | |||
| 70f0a52fa0 |
9 changed files with 97 additions and 1 deletions
BIN
assets/fonts/Axolotl.ttf
Normal file
BIN
assets/fonts/Axolotl.ttf
Normal file
Binary file not shown.
36
assets/fonts/Axolotl.ttf.import
Normal file
36
assets/fonts/Axolotl.ttf.import
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://bce5el6o5igwn"
|
||||
path="res://.godot/imported/Axolotl.ttf-aad5e527b006097534be77d3d860a672.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/fonts/Axolotl.ttf"
|
||||
dest_files=["res://.godot/imported/Axolotl.ttf-aad5e527b006097534be77d3d860a672.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=1
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
|
|
@ -11,6 +11,7 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="girl will never sing again"
|
||||
run/main_scene="uid://5wfpwjykqson"
|
||||
config/features=PackedStringArray("4.5", "GL Compatibility")
|
||||
config/icon="uid://4aq8ekc6sruc"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
extends Node
|
||||
|
||||
|
||||
func start_game() -> void:
|
||||
print("starting game")
|
||||
get_tree().change_scene_to_file("res://scenes/worlds/yukotsukis_room/yukotsukis_room.tscn")
|
||||
|
||||
|
||||
func goto_room(previous_room: Room, waypoint: RemoteWaypoint, config: RoomConfig = null) -> void:
|
||||
print("changing rooms")
|
||||
|
||||
|
|
|
|||
6
scenes/main_menu/main_menu.gd
Normal file
6
scenes/main_menu/main_menu.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("interact"):
|
||||
GameDirector.start_game()
|
||||
1
scenes/main_menu/main_menu.gd.uid
Normal file
1
scenes/main_menu/main_menu.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://xuibr7dn2qtw
|
||||
44
scenes/main_menu/main_menu.tscn
Normal file
44
scenes/main_menu/main_menu.tscn
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://5wfpwjykqson"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://bce5el6o5igwn" path="res://assets/fonts/Axolotl.ttf" id="1_ob46e"]
|
||||
[ext_resource type="Script" uid="uid://xuibr7dn2qtw" path="res://scenes/main_menu/main_menu.gd" id="1_uqeha"]
|
||||
[ext_resource type="Shader" uid="uid://bxvmsjxx0tj21" path="res://shaders/palette.gdshader" id="2_uqeha"]
|
||||
[ext_resource type="Texture2D" uid="uid://h5523ru86vrd" path="res://assets/palettes/forgotten-120.png" id="3_wem23"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_3ovsr"]
|
||||
font = ExtResource("1_ob46e")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5seab"]
|
||||
shader = ExtResource("2_uqeha")
|
||||
shader_parameter/palette = ExtResource("3_wem23")
|
||||
shader_parameter/palette_size = 120
|
||||
|
||||
[node name="MainMenu" type="Node2D"]
|
||||
script = ExtResource("1_uqeha")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 24.0
|
||||
offset_top = 208.0
|
||||
offset_right = 99.0
|
||||
offset_bottom = 224.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
size_flags_horizontal = 4
|
||||
text = "press z to start"
|
||||
label_settings = SubResource("LabelSettings_3ovsr")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="PaletteShader" type="ColorRect" parent="CanvasLayer"]
|
||||
material = SubResource("ShaderMaterial_5seab")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_lock_ = true
|
||||
|
|
@ -21,7 +21,9 @@ class_name RoomConfig extends Resource
|
|||
## Color of the canvas modulate.
|
||||
@export var modulate_color: Color
|
||||
## Color palette for the room.
|
||||
@export var room_palette: Texture2D
|
||||
@export var room_palette: Texture2D = preload("uid://h5523ru86vrd")
|
||||
## Number of colors in palette.
|
||||
@export var palette_size: int = 120
|
||||
|
||||
@export_group('Room Loop')
|
||||
## Whether the room loops itself or not.
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void:
|
|||
var ps_material: ShaderMaterial = room.palette_shader.material as ShaderMaterial
|
||||
assert(ps_material != null, "palette shader is null")
|
||||
ps_material.set_shader_parameter("palette", room.config.room_palette)
|
||||
ps_material.set_shader_parameter("palette_size", room.config.palette_size)
|
||||
|
||||
room.player.enable_point_light(true, 0.4)
|
||||
room.player.point_light.texture_scale = 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue