Update filenames
This commit is contained in:
parent
3c87d06d94
commit
1373aaf748
7 changed files with 36 additions and 36 deletions
|
@ -12,7 +12,7 @@ const texture_released = preload("res://Assets/skin_assets/button_pressed.png")
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
if etat:
|
if etat:
|
||||||
if villain.animation == villain_animations[-1]:
|
if villain.animation == villain_animations[-1]:
|
||||||
get_tree().change_scene("res://Scenes/gameover.tscn")
|
get_tree().change_scene("res://Scenes/GameOver.tscn")
|
||||||
|
|
||||||
|
|
||||||
func _on_Button_pressed():
|
func _on_Button_pressed():
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
[gd_scene load_steps=9 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Characters/Player.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://Characters/Villain.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://Characters/Villain.tscn" type="PackedScene" id=2]
|
[ext_resource path="res://Characters/Player.tscn" type="PackedScene" id=2]
|
||||||
[ext_resource path="res://Scenes/Button_Node2D.gd" type="Script" id=3]
|
[ext_resource path="res://Scenes/Button_Node2D.gd" type="Script" id=3]
|
||||||
[ext_resource path="res://Assets/windows.png" type="Texture" id=4]
|
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=4]
|
||||||
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=5]
|
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=5]
|
||||||
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=6]
|
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=6]
|
||||||
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=7]
|
[ext_resource path="res://Assets/windows.png" type="Texture" id=7]
|
||||||
|
|
||||||
[sub_resource type="Theme" id=1]
|
[sub_resource type="Theme" id=1]
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D"]
|
[node name="Node2D" type="Node2D"]
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
[node name="Player" parent="." instance=ExtResource( 2 )]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 719, 386 )
|
position = Vector2( 719, 386 )
|
||||||
script = null
|
script = null
|
||||||
|
@ -24,13 +24,13 @@ margin_right = 592.0
|
||||||
margin_bottom = 395.0
|
margin_bottom = 395.0
|
||||||
theme = SubResource( 1 )
|
theme = SubResource( 1 )
|
||||||
custom_colors/font_color = Color( 0.27451, 0.207843, 0.207843, 1 )
|
custom_colors/font_color = Color( 0.27451, 0.207843, 0.207843, 1 )
|
||||||
custom_styles/hover = ExtResource( 5 )
|
custom_styles/hover = ExtResource( 6 )
|
||||||
custom_styles/pressed = ExtResource( 7 )
|
custom_styles/pressed = ExtResource( 5 )
|
||||||
custom_styles/normal = ExtResource( 6 )
|
custom_styles/normal = ExtResource( 4 )
|
||||||
text = "CLIQUE MOI"
|
text = "CLIQUE MOI"
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="Villain" parent="." instance=ExtResource( 2 )]
|
[node name="Villain" parent="." instance=ExtResource( 1 )]
|
||||||
position = Vector2( 871, 589 )
|
position = Vector2( 871, 589 )
|
||||||
scale = Vector2( 0.2, 0.2 )
|
scale = Vector2( 0.2, 0.2 )
|
||||||
|
|
||||||
|
@ -38,6 +38,6 @@ scale = Vector2( 0.2, 0.2 )
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 512, 358 )
|
position = Vector2( 512, 358 )
|
||||||
z_index = -3
|
z_index = -3
|
||||||
texture = ExtResource( 4 )
|
texture = ExtResource( 7 )
|
||||||
|
|
||||||
[connection signal="pressed" from="Button" to="Button" method="_on_Button_pressed"]
|
[connection signal="pressed" from="Button" to="Button" method="_on_Button_pressed"]
|
|
@ -2,4 +2,4 @@ extends Node2D
|
||||||
|
|
||||||
|
|
||||||
func _on_RestartButton_pressed():
|
func _on_RestartButton_pressed():
|
||||||
get_tree().change_scene("res://Scenes/menu.tscn")
|
get_tree().change_scene("res://Scenes/Menu.tscn")
|
||||||
|
|
|
@ -2,7 +2,7 @@ extends Control
|
||||||
|
|
||||||
|
|
||||||
func _on_PlayButton_pressed():
|
func _on_PlayButton_pressed():
|
||||||
get_tree().change_scene("res://Scenes/Node2D.tscn")
|
get_tree().change_scene("res://Scenes/DesktopScreen.tscn")
|
||||||
|
|
||||||
|
|
||||||
func _on_Help_Button_pressed():
|
func _on_Help_Button_pressed():
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Assets/windows.png" type="Texture" id=1]
|
[ext_resource path="res://Scenes/GameOver.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=2]
|
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=2]
|
||||||
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=3]
|
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=3]
|
||||||
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=4]
|
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=4]
|
||||||
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=5]
|
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=5]
|
||||||
[ext_resource path="res://Scenes/GameOver.gd" type="Script" id=6]
|
[ext_resource path="res://Assets/windows.png" type="Texture" id=6]
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D"]
|
[node name="Node2D" type="Node2D"]
|
||||||
script = ExtResource( 6 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="Windows" type="Sprite" parent="."]
|
[node name="Windows" type="Sprite" parent="."]
|
||||||
position = Vector2( 512, 360 )
|
position = Vector2( 512, 360 )
|
||||||
z_index = -2
|
z_index = -2
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="LabelGameOver" type="Label" parent="."]
|
[node name="LabelGameOver" type="Label" parent="."]
|
||||||
margin_left = 427.0
|
margin_left = 427.0
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=7 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Assets/windows.png" type="Texture" id=1]
|
[ext_resource path="res://Scenes/Screen_Menu.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=2]
|
[ext_resource path="res://Assets/skin_assets/menu_font.tres" type="DynamicFont" id=2]
|
||||||
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=3]
|
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=3]
|
||||||
[ext_resource path="res://Assets/tres_button/normal.tres" type="StyleBox" id=4]
|
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=4]
|
||||||
[ext_resource path="res://Assets/tres_button/pressed.tres" type="StyleBox" id=5]
|
[ext_resource path="res://Assets/tres_button/hover.tres" type="StyleBox" id=5]
|
||||||
[ext_resource path="res://Scenes/Screen_Menu.gd" type="Script" id=6]
|
[ext_resource path="res://Assets/windows.png" type="Texture" id=6]
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D"]
|
[node name="Node2D" type="Node2D"]
|
||||||
|
|
||||||
[node name="Windows" type="Sprite" parent="."]
|
[node name="Windows" type="Sprite" parent="."]
|
||||||
position = Vector2( 512, 360 )
|
position = Vector2( 512, 360 )
|
||||||
z_index = -2
|
z_index = -2
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="MenuButton" type="MenuButton" parent="."]
|
[node name="MenuButton" type="MenuButton" parent="."]
|
||||||
margin_left = 480.0
|
margin_left = 480.0
|
||||||
margin_top = 232.0
|
margin_top = 232.0
|
||||||
margin_right = 584.0
|
margin_right = 584.0
|
||||||
margin_bottom = 392.0
|
margin_bottom = 392.0
|
||||||
script = ExtResource( 6 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="MenuButton"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="MenuButton"]
|
||||||
margin_left = -24.0
|
margin_left = -24.0
|
||||||
|
@ -34,9 +34,9 @@ margin_right = 100.0
|
||||||
margin_bottom = 37.0
|
margin_bottom = 37.0
|
||||||
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
||||||
custom_fonts/font = ExtResource( 2 )
|
custom_fonts/font = ExtResource( 2 )
|
||||||
custom_styles/hover = ExtResource( 3 )
|
custom_styles/hover = ExtResource( 5 )
|
||||||
custom_styles/pressed = ExtResource( 5 )
|
custom_styles/pressed = ExtResource( 4 )
|
||||||
custom_styles/normal = ExtResource( 4 )
|
custom_styles/normal = ExtResource( 3 )
|
||||||
text = "PLAY"
|
text = "PLAY"
|
||||||
|
|
||||||
[node name="Help_Button" type="Button" parent="MenuButton/VBoxContainer"]
|
[node name="Help_Button" type="Button" parent="MenuButton/VBoxContainer"]
|
||||||
|
@ -45,9 +45,9 @@ margin_right = 100.0
|
||||||
margin_bottom = 100.0
|
margin_bottom = 100.0
|
||||||
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
||||||
custom_fonts/font = ExtResource( 2 )
|
custom_fonts/font = ExtResource( 2 )
|
||||||
custom_styles/hover = ExtResource( 3 )
|
custom_styles/hover = ExtResource( 5 )
|
||||||
custom_styles/pressed = ExtResource( 5 )
|
custom_styles/pressed = ExtResource( 4 )
|
||||||
custom_styles/normal = ExtResource( 4 )
|
custom_styles/normal = ExtResource( 3 )
|
||||||
text = "HELP"
|
text = "HELP"
|
||||||
|
|
||||||
[node name="Quit_Button" type="Button" parent="MenuButton/VBoxContainer"]
|
[node name="Quit_Button" type="Button" parent="MenuButton/VBoxContainer"]
|
||||||
|
@ -56,9 +56,9 @@ margin_right = 100.0
|
||||||
margin_bottom = 163.0
|
margin_bottom = 163.0
|
||||||
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
custom_colors/font_color = Color( 0.34902, 0.313726, 0.313726, 1 )
|
||||||
custom_fonts/font = ExtResource( 2 )
|
custom_fonts/font = ExtResource( 2 )
|
||||||
custom_styles/hover = ExtResource( 3 )
|
custom_styles/hover = ExtResource( 5 )
|
||||||
custom_styles/pressed = ExtResource( 5 )
|
custom_styles/pressed = ExtResource( 4 )
|
||||||
custom_styles/normal = ExtResource( 4 )
|
custom_styles/normal = ExtResource( 3 )
|
||||||
text = "QUIT"
|
text = "QUIT"
|
||||||
|
|
||||||
[connection signal="pressed" from="MenuButton/VBoxContainer/PlayButton" to="MenuButton" method="_on_PlayButton_pressed"]
|
[connection signal="pressed" from="MenuButton/VBoxContainer/PlayButton" to="MenuButton" method="_on_PlayButton_pressed"]
|
||||||
|
|
|
@ -11,7 +11,7 @@ config_version=4
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Gja"
|
config/name="Gja"
|
||||||
run/main_scene="res://Scenes/menu.tscn"
|
run/main_scene="res://Scenes/Menu.tscn"
|
||||||
config/icon="res://icon.png"
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
Reference in a new issue