-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/startscreen.png-d7a6273392897ce5197005cc2ccf9315.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://assets/ui/startscreen.png" | ||
dest_files=[ "res://.import/startscreen.png-d7a6273392897ce5197005cc2ccf9315.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=false | ||
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=false | ||
svg/scale=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extends Node2D | ||
|
||
func _ready(): | ||
music.play(music.BACKGROUND) | ||
|
||
func _input(event): | ||
if Input.is_action_just_pressed("jump"): | ||
var transition = get_tree().get_nodes_in_group("transition")[0] | ||
transition.connect("fade_complete", self, "_load_main_level") | ||
transition.begin_fade() | ||
|
||
func _load_main_level(): | ||
get_tree().change_scene("res://scenes/levels/main.tscn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://scenes/transition.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://assets/ui/startscreen.png" type="Texture" id=2] | ||
[ext_resource path="res://scenes/main_menu.gd" type="Script" id=3] | ||
|
||
[node name="main_menu" type="Node2D"] | ||
script = ExtResource( 3 ) | ||
|
||
[node name="CanvasLayer" type="CanvasLayer" parent="."] | ||
|
||
[node name="Startscreen" type="Sprite" parent="CanvasLayer"] | ||
position = Vector2( 160, 90 ) | ||
texture = ExtResource( 2 ) | ||
|
||
[node name="transition" parent="." instance=ExtResource( 1 )] |