1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 04:34:19 +00:00

Merge branch 'main' of github.com:RYGhub/ld50

This commit is contained in:
Steffo 2022-04-04 16:16:29 +02:00
commit d9b1801a08
Signed by: steffo
GPG key ID: 6965406171929D01
7 changed files with 101 additions and 17 deletions

View file

@ -135,7 +135,7 @@ _global_script_class_icons={
[application] [application]
config/name="LD50" config/name="LD50"
run/main_scene="res://src/levels/Game.tscn" run/main_scene="res://src/levels/MainMenu.tscn"
[audio] [audio]

View file

@ -1,16 +1,11 @@
extends Node2D extends Node2D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready(): func _ready():
pass # Replace with function body. for child in get_children():
if child.name == "Play":
get_node(child.name).connect("pressed", self, "change_scn")
func change_scn():
get_tree().change_scene("res://src/levels/Game.tscn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View file

@ -1,11 +1,24 @@
[gd_scene load_steps=2 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://src/levels/MainMenu.gd" type="Script" id=1] [ext_resource path="res://src/levels/MainMenu.gd" type="Script" id=1]
[ext_resource path="res://src/ui/Title.png" type="Texture" id=2]
[ext_resource path="res://src/ui/PlayButton.png" type="Texture" id=3]
[node name="MainMenu" type="Node2D"] [node name="MainMenu" type="Node2D"]
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="Label" type="Label" parent="."] [node name="Panel" type="Panel" parent="."]
margin_right = 40.0 margin_right = 1280.0
margin_bottom = 14.0 margin_bottom = 720.0
text = "Hello world!"
[node name="Sprite" type="Sprite" parent="Panel"]
position = Vector2( 640.881, 360.696 )
texture = ExtResource( 2 )
[node name="Play" type="Button" parent="."]
margin_left = 580.0
margin_top = 540.0
margin_right = 12.0
margin_bottom = 20.0
icon = ExtResource( 3 )
flat = true

BIN
src/ui/PlayButton.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/PlayButton.png-bbb75720f98ee0da7cc56e3bae2f00bf.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/ui/PlayButton.png"
dest_files=[ "res://.import/PlayButton.png-bbb75720f98ee0da7cc56e3bae2f00bf.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
src/ui/Title.png (Stored with Git LFS) Normal file

Binary file not shown.

35
src/ui/Title.png.import Normal file
View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Title.png-eddaf0247c16f2cd01805f96e728b10b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/ui/Title.png"
dest_files=[ "res://.import/Title.png-eddaf0247c16f2cd01805f96e728b10b.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0