Skip to content

Commit 63d1879

Browse files
committedDec 23, 2016
Add start page
1 parent 7c61fc0 commit 63d1879

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed
 

‎assets/skull_title_text.png

401 KB
Loading

‎engine.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[application]
22

33
name="infinite-overlord"
4-
main_scene="res://main.tscn"
4+
main_scene="res://start.tscn"
55
icon="res://icon.png"
66

77
[display]
88

9+
fullscreen=false
910
width=1980
1011
height=1050
1112

‎start.gd

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends Node2D
2+
3+
func _on_StartButton_button_up():
4+
get_tree().change_scene("res://main.tscn")

‎start.tscn

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[gd_scene load_steps=5 format=1]
2+
3+
[ext_resource path="res://start.gd" type="Script" id=1]
4+
[ext_resource path="res://assets/bg.jpg" type="Texture" id=2]
5+
[ext_resource path="res://assets/skull_title_text.png" type="Texture" id=3]
6+
[ext_resource path="res://icon.png" type="Texture" id=4]
7+
8+
[node name="StartNode" type="Node2D"]
9+
10+
script/script = ExtResource( 1 )
11+
12+
[node name="Sprite" type="Sprite" parent="."]
13+
14+
transform/pos = Vector2( 996.78, 539.875 )
15+
transform/scale = Vector2( 1.21552, 1.16644 )
16+
texture = ExtResource( 2 )
17+
18+
[node name="Sprite 2" type="Sprite" parent="."]
19+
20+
transform/pos = Vector2( 1024.01, 438.373 )
21+
texture = ExtResource( 3 )
22+
23+
[node name="StartButton" type="Button" parent="."]
24+
25+
focus/ignore_mouse = false
26+
focus/stop_mouse = true
27+
size_flags/horizontal = 2
28+
size_flags/vertical = 2
29+
margin/left = 979.0
30+
margin/top = 709.0
31+
margin/right = 1055.0
32+
margin/bottom = 779.0
33+
toggle_mode = false
34+
enabled_focus_mode = 2
35+
shortcut = null
36+
icon = ExtResource( 4 )
37+
flat = false
38+
39+
[connection signal="button_up" from="StartButton" to="." method="_on_StartButton_button_up"]
40+
41+

0 commit comments

Comments
 (0)
Please sign in to comment.