Merge branch 'main' of https://github.com/MarcEricMartel/FirstPersonSlapper
This commit is contained in:
commit
5dd55238b2
44
HUD.tscn
44
HUD.tscn
@ -61,7 +61,21 @@ font_data = ExtResource( 3 )
|
||||
[node name="HUD" type="CanvasLayer"]
|
||||
follow_viewport_enable = true
|
||||
|
||||
[node name="ActualHUD" type="Control" parent="."]
|
||||
[node name="PlayerLayer" type="CanvasLayer" parent="."]
|
||||
layer = 0
|
||||
|
||||
[node name="Crosshair" type="ColorRect" parent="PlayerLayer"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -3.0
|
||||
margin_top = -3.0
|
||||
margin_right = 3.0
|
||||
margin_bottom = 3.0
|
||||
rect_min_size = Vector2( 6, 6 )
|
||||
|
||||
[node name="ActualHUD" type="Control" parent="PlayerLayer"]
|
||||
anchor_left = 0.037
|
||||
anchor_top = 0.914
|
||||
anchor_right = 0.037
|
||||
@ -70,13 +84,13 @@ margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
theme = SubResource( 8 )
|
||||
|
||||
[node name="SlapGauge" type="ColorRect" parent="ActualHUD"]
|
||||
[node name="SlapGauge" type="ColorRect" parent="PlayerLayer/ActualHUD"]
|
||||
material = SubResource( 11 )
|
||||
margin_right = 291.36
|
||||
margin_bottom = 23.0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="SlapLabel" type="Label" parent="ActualHUD/SlapGauge"]
|
||||
[node name="SlapLabel" type="Label" parent="PlayerLayer/ActualHUD/SlapGauge"]
|
||||
modulate = Color( 1, 1, 1, 0.611765 )
|
||||
anchor_left = 12.662
|
||||
anchor_top = 7.324
|
||||
@ -88,7 +102,10 @@ margin_right = -3572.2
|
||||
margin_bottom = -137.452
|
||||
text = "Slap"
|
||||
|
||||
[node name="Start" type="Control" parent="."]
|
||||
[node name="MenuLayer" type="CanvasLayer" parent="."]
|
||||
layer = 2
|
||||
|
||||
[node name="Start" type="Control" parent="MenuLayer"]
|
||||
pause_mode = 2
|
||||
visible = false
|
||||
margin_right = 40.0
|
||||
@ -96,14 +113,14 @@ margin_bottom = 40.0
|
||||
theme = SubResource( 8 )
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Background" type="ColorRect" parent="Start"]
|
||||
[node name="Background" type="ColorRect" parent="MenuLayer/Start"]
|
||||
margin_left = -4.0
|
||||
margin_top = -8.0
|
||||
margin_right = 1927.0
|
||||
margin_bottom = 1085.0
|
||||
color = Color( 0.14902, 0.121569, 0.121569, 1 )
|
||||
|
||||
[node name="Title" type="Label" parent="Start"]
|
||||
[node name="Title" type="Label" parent="MenuLayer/Start"]
|
||||
margin_left = 532.0
|
||||
margin_top = 353.0
|
||||
margin_right = 1414.0
|
||||
@ -111,30 +128,29 @@ margin_bottom = 455.0
|
||||
custom_fonts/font = SubResource( 7 )
|
||||
text = "FIRST PERSON SLAPPER"
|
||||
|
||||
[node name="New Game" type="Button" parent="Start"]
|
||||
[node name="New Game" type="Button" parent="MenuLayer/Start"]
|
||||
margin_left = 886.0
|
||||
margin_top = 554.0
|
||||
margin_right = 1061.0
|
||||
margin_bottom = 598.0
|
||||
text = "New Game"
|
||||
|
||||
[node name="Quit to Desktop" type="Button" parent="Start"]
|
||||
[node name="Quit to Desktop" type="Button" parent="MenuLayer/Start"]
|
||||
margin_left = 887.0
|
||||
margin_top = 664.0
|
||||
margin_right = 1062.0
|
||||
margin_bottom = 708.0
|
||||
text = "Quit to Desktop"
|
||||
|
||||
[node name="Quit Game" type="Button" parent="Start"]
|
||||
[node name="Quit Game" type="Button" parent="MenuLayer/Start"]
|
||||
margin_left = 887.0
|
||||
margin_top = 609.0
|
||||
margin_right = 1062.0
|
||||
margin_bottom = 653.0
|
||||
text = "Quit Game"
|
||||
|
||||
[node name="MenuMusic" type="AudioStreamPlayer" parent="Start"]
|
||||
bus = "Music"
|
||||
[node name="MenuMusic" type="AudioStreamPlayer" parent="MenuLayer/Start"]
|
||||
|
||||
[connection signal="pressed" from="Start/New Game" to="Start" method="_on_New_Game_pressed"]
|
||||
[connection signal="pressed" from="Start/Quit to Desktop" to="Start" method="_on_Quit_to_Desktop_Button_pressed"]
|
||||
[connection signal="pressed" from="Start/Quit Game" to="Start" method="_on_Quit_Game_pressed"]
|
||||
[connection signal="pressed" from="MenuLayer/Start/New Game" to="MenuLayer/Start" method="_on_New_Game_pressed"]
|
||||
[connection signal="pressed" from="MenuLayer/Start/Quit to Desktop" to="MenuLayer/Start" method="_on_Quit_to_Desktop_Button_pressed"]
|
||||
[connection signal="pressed" from="MenuLayer/Start/Quit Game" to="MenuLayer/Start" method="_on_Quit_Game_pressed"]
|
||||
|
@ -26,9 +26,9 @@ var gravity_vec = Vector3()
|
||||
|
||||
onready var head = $Head
|
||||
onready var ground_check = $GroundCheck
|
||||
onready var slap_gauge = $HUD/ActualHUD/SlapGauge
|
||||
onready var slap_gauge = $HUD/PlayerLayer/ActualHUD/SlapGauge
|
||||
onready var slap_animator = $HandMovement
|
||||
onready var Menu = $HUD/Start
|
||||
onready var Menu = $HUD/MenuLayer/Start
|
||||
onready var AudioSlap = $AudioSlap
|
||||
onready var AudioMegaSlap = $AudioMegaSlap
|
||||
onready var Steps = [ $Step1, $Step2, $Step3, $Step4 ]
|
||||
|
@ -9,12 +9,13 @@
|
||||
[node name="Enemy" type="KinematicBody"]
|
||||
|
||||
[node name="MeshInstance" type="MeshInstance" parent="."]
|
||||
transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0 )
|
||||
mesh = ExtResource( 1 )
|
||||
|
||||
[node name="BodyCollision" type="CollisionShape" parent="."]
|
||||
transform = Transform( 0.914478, 0, 0, 0, 1.50713, 0, 0, 0, 0.383312, 0, 0.642072, 0 )
|
||||
transform = Transform( 0.914478, 0, 0, 0, 1.50713, 0, 0, 0, 0.383312, 0, -0.479353, 0 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Head" type="CollisionShape" parent="."]
|
||||
transform = Transform( 0.761117, 0, 0, 0, 1.04862, 0, 0, 0, 0.761117, 0, 3.5714, 0 )
|
||||
transform = Transform( 0.528959, 0, 0, 0, 0.728767, 0, 0, 0, 0.528959, 0, 1.87623, 0 )
|
||||
shape = SubResource( 2 )
|
||||
|
@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1]
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Materials/Orange_ProtoMat.tres" type="Material" id=3]
|
||||
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=5]
|
||||
|
||||
[sub_resource type="PanoramaSky" id=1]
|
||||
panorama = ExtResource( 4 )
|
||||
@ -65,3 +66,6 @@ transform = Transform( 1, 0, 0, 0, 0.849579, 0.527461, 0, -0.527461, 0.849579, 0
|
||||
light_color = Color( 1, 0.924276, 0.869018, 1 )
|
||||
light_specular = 1.0
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource( 5 )]
|
||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.367474, 2.61222, -26.0531 )
|
||||
|
Loading…
Reference in New Issue
Block a user