Adds main menu / info

This commit is contained in:
dariasteam 2017-08-04 22:50:56 +01:00
parent 17f7cd7211
commit 2f1a663f20
11 changed files with 192 additions and 18 deletions

4
.directory Normal file
View file

@ -0,0 +1,4 @@
[Dolphin]
PreviewsShown=true
Timestamp=2017,8,4,18,2,39
Version=4

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.~

View file

@ -157,7 +157,7 @@ transform/pos = Vector2( 7.90835, 7.78536 )
texture = ExtResource( 2 )
vframes = 6
hframes = 6
frame = 5
frame = 8
[node name="animation" type="AnimationPlayer" parent="sprite"]

File diff suppressed because one or more lines are too long

112
Scenes/Menu/about.tscn Normal file
View file

@ -0,0 +1,112 @@
[gd_scene load_steps=2 format=1]
[ext_resource path="res://Sprites/GUI/Buttons/bttn.png" type="Texture" id=1]
[node name="Control" type="Control"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 0.0
margin/right = 40.0
margin/bottom = 40.0
[node name="Panel" type="Panel" parent="."]
anchor/bottom = 1
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 64.0
margin/top = 96.0
margin/right = 576.0
margin/bottom = -632.0
[node name="Sprite" type="Sprite" parent="Panel"]
transform/pos = Vector2( 259.5, 5 )
transform/scale = Vector2( 0.737037, 0.740601 )
texture = ExtResource( 1 )
[node name="RichTextLabel" type="RichTextLabel" parent="Panel"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 64.0
margin/top = 160.0
margin/right = 448.0
margin/bottom = 544.0
bbcode/enabled = true
bbcode/bbcode = "Soy un ñame y un budán "
visible_characters = -1
[node name="Label" type="Label" parent="Panel"]
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 64.0
margin/top = 128.0
margin/right = 448.0
margin/bottom = 160.0
text = "Daniel Darias Sánchez"
align = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="Panel1" type="Panel" parent="."]
anchor/bottom = 1
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 704.0
margin/top = 96.0
margin/right = 1216.0
margin/bottom = -632.0
[node name="RichTextLabel1" type="RichTextLabel" parent="Panel1"]
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 64.0
margin/top = 160.0
margin/right = 448.0
margin/bottom = 544.0
bbcode/enabled = true
bbcode/bbcode = "asdasd asda sd asd "
visible_characters = -1
[node name="Label1" type="Label" parent="Panel1"]
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 64.0
margin/top = 128.0
margin/right = 448.0
margin/bottom = 160.0
text = "Yanara Carrasco Aristiguieta"
align = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="Sprite1" type="Sprite" parent="Panel1"]
transform/pos = Vector2( 256, 2.5 )
transform/scale = Vector2( 0.737037, 0.740601 )
texture = ExtResource( 1 )

View file

@ -0,0 +1,4 @@
extends Button
func _on_info_button_pressed():
get_tree().change_scene("res://Scenes/Menu/about.tscn")

View file

@ -15,4 +15,4 @@ func _on_reset_pressed():
func _on_main_menu_pressed():
get_tree().change_scene("res://menu.tscn")
get_tree().change_scene("res://Scenes/Menu/main_menu.tscn")

View file

@ -2,7 +2,6 @@
[ext_resource path="res://Scenes/Menu/game_over.gd" type="Script" id=1]
[node name="Node2D" type="Node2D"]
script/script = ExtResource( 1 )

View file

@ -1,33 +1,87 @@
[gd_scene load_steps=2 format=1]
[gd_scene load_steps=4 format=1]
[ext_resource path="res://Scenes/Menu/bttn_play.gd" type="Script" id=1]
[ext_resource path="res://Sprites/GUI/Buttons/btn_shoot.png" type="Texture" id=1]
[ext_resource path="res://Scenes/Menu/bttn_play.gd" type="Script" id=2]
[ext_resource path="res://Scenes/Menu/about_button.gd" type="Script" id=3]
[node name="Node2D" type="Node2D"]
transform/pos = Vector2( 640, 384 )
transform/scale = Vector2( 20, 12 )
[node name="Button" type="Button" parent="."]
[node name="Sprite" type="Sprite" parent="."]
transform/pos = Vector2( 0.399999, -14.1438 )
transform/scale = Vector2( 0.0656018, 0.0941569 )
texture = ExtResource( 1 )
[node name="play_button" type="Button" parent="."]
anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
rect/scale = Vector2( 0.75, 0.25 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 51.0
margin/top = 43.0
margin/right = 9.0
margin/bottom = 23.0
margin/left = -16.0
margin/top = 30.0
margin/right = 27.0
margin/bottom = 10.0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Jugar"
flat = false
script/script = ExtResource( 1 )
script/script = ExtResource( 2 )
[connection signal="pressed" from="Button" to="Button" method="_on_Button_pressed"]
[node name="settings_button" type="Button" parent="."]
anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
rect/scale = Vector2( 0.75, 0.25 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 48.0
margin/top = 22.0
margin/right = 5.0
margin/bottom = 2.0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Ajustes"
flat = false
clip_text = true
[node name="info_button" type="Button" parent="."]
anchor/left = 3
anchor/top = 3
anchor/right = 3
anchor/bottom = 3
rect/scale = Vector2( 0.75, 0.25 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 48.0
margin/top = 14.0
margin/right = 5.0
margin/bottom = -6.0
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Info"
flat = false
clip_text = true
script/script = ExtResource( 3 )
[connection signal="pressed" from="play_button" to="play_button" method="_on_Button_pressed"]
[connection signal="pressed" from="info_button" to="info_button" method="_on_info_button_pressed"]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View file

@ -15,13 +15,15 @@ print_fps=true
[display]
width=1280
height=720
stretch_mode="2d"
use_2d_pixel_snap=false
emulate_touchscreen=true
driver="GLES2"
stretch_aspect="keep"
test_width=1280
test_height=720
stretch_mode="viewport"
fullscreen=false
orientation="landscape"