Merge branch 'main' of https://github.com/MarcEricMartel/FirstPersonSlapper
This commit is contained in:
commit
f0ad9fc136
26
HUD.tscn
26
HUD.tscn
@ -92,20 +92,36 @@ margin_right = 291.36
|
|||||||
margin_bottom = 23.0
|
margin_bottom = 23.0
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="SlapLabel" type="Label" parent="PlayerLayer/ActualHUD/SlapGauge"]
|
[node name="SlapLabel" type="Label" parent="PlayerLayer/ActualHUD"]
|
||||||
modulate = Color( 1, 1, 1, 0.611765 )
|
modulate = Color( 1, 1, 1, 0.611765 )
|
||||||
anchor_left = 12.662
|
anchor_left = 12.662
|
||||||
anchor_top = 7.324
|
anchor_top = 7.324
|
||||||
anchor_right = 12.662
|
anchor_right = 12.662
|
||||||
anchor_bottom = 7.324
|
anchor_bottom = 7.324
|
||||||
margin_left = -3683.2
|
margin_left = -500.48
|
||||||
margin_top = -169.452
|
margin_top = -309.78
|
||||||
margin_right = -3572.2
|
margin_right = -389.48
|
||||||
margin_bottom = -137.452
|
margin_bottom = -277.78
|
||||||
text = "Slap"
|
text = "Slap"
|
||||||
|
|
||||||
|
[node name="Remaining" type="Label" parent="PlayerLayer/ActualHUD"]
|
||||||
|
margin_left = 5.96
|
||||||
|
margin_top = -30.12
|
||||||
|
margin_right = 140.96
|
||||||
|
margin_bottom = -8.12
|
||||||
|
text = "Remaining balls:"
|
||||||
|
|
||||||
|
[node name="Balls" type="Label" parent="PlayerLayer/ActualHUD"]
|
||||||
|
margin_left = 139.96
|
||||||
|
margin_top = -29.12
|
||||||
|
margin_right = 281.96
|
||||||
|
margin_bottom = -7.12
|
||||||
|
text = "0"
|
||||||
|
align = 2
|
||||||
|
|
||||||
[node name="MenuLayer" type="CanvasLayer" parent="."]
|
[node name="MenuLayer" type="CanvasLayer" parent="."]
|
||||||
layer = 2
|
layer = 2
|
||||||
|
visible = false
|
||||||
|
|
||||||
[node name="Background" type="ColorRect" parent="MenuLayer"]
|
[node name="Background" type="ColorRect" parent="MenuLayer"]
|
||||||
margin_left = -4.0
|
margin_left = -4.0
|
||||||
|
@ -6,14 +6,15 @@ onready var NEXTSCENE = "res://Levels/Level02.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -10,19 +10,19 @@ onready var NEXTSCENE = "res://Levels/Level03.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
|
||||||
|
|
||||||
func _on_Win_timeout():
|
func _on_Win_timeout():
|
||||||
get_tree().change_scene(NEXTSCENE)
|
get_tree().change_scene(NEXTSCENE)
|
||||||
|
|
||||||
|
@ -10,19 +10,20 @@ onready var NEXTSCENE = "res://Levels/Level04.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
|
||||||
|
|
||||||
func _on_Win_timeout():
|
func _on_Win_timeout():
|
||||||
get_tree().change_scene(NEXTSCENE)
|
get_tree().change_scene(NEXTSCENE)
|
||||||
|
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Levels/Level05.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Levels/Level06.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -7,10 +7,13 @@ onready var WinMess = $Messages/Win
|
|||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
onready var FirstTime = $Timer
|
onready var FirstTime = $Timer
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
|
onready var rem = $"Player/HUD/PlayerLayer/ActualHUD/Remaining"
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
FirstTime.start()
|
FirstTime.start()
|
||||||
|
balls.hide()
|
||||||
|
rem.hide()
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Levels/Level08.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Levels/Level09.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://Scenes/End.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
@ -209,9 +209,9 @@ height = 35.4425
|
|||||||
depth = 81.4166
|
depth = 81.4166
|
||||||
|
|
||||||
[node name="CSGBox31" type="CSGBox" parent="CSGCombiner"]
|
[node name="CSGBox31" type="CSGBox" parent="CSGCombiner"]
|
||||||
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -67.9928, 13.2378, -136.402 )
|
transform = Transform( 0.999998, 0, 0, 0, 1, 0, 0, 0, 0.999998, -68.0095, 13.2378, -67.8662 )
|
||||||
height = 35.4425
|
height = 35.4425
|
||||||
depth = 384.791
|
depth = 255.49
|
||||||
|
|
||||||
[node name="CSGBox32" type="CSGBox" parent="CSGCombiner"]
|
[node name="CSGBox32" type="CSGBox" parent="CSGCombiner"]
|
||||||
transform = Transform( -0.000544563, 0.000190083, 0.999997, -0.777923, 0.628357, -0.000543069, -0.628355, -0.777925, -0.00019431, -60.3016, 6.78922, -91.6615 )
|
transform = Transform( -0.000544563, 0.000190083, 0.999997, -0.777923, 0.628357, -0.000543069, -0.628355, -0.777925, -0.00019431, -60.3016, 6.78922, -91.6615 )
|
||||||
@ -273,8 +273,7 @@ transform = Transform( 0.995641, 0, 0, 0, 0.995641, 0, 0, 0, 0.995641, 16.6179,
|
|||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.8966, -7.28051, -160.061 )
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 11.8966, -7.28051, -160.061 )
|
||||||
stream = ExtResource( 6 )
|
stream = ExtResource( 6 )
|
||||||
attenuation_model = 2
|
attenuation_model = 2
|
||||||
unit_db = 80.0
|
unit_db = 60.0
|
||||||
max_db = 6.0
|
|
||||||
autoplay = true
|
autoplay = true
|
||||||
bus = "SFX"
|
bus = "SFX"
|
||||||
|
|
||||||
|
@ -10,19 +10,19 @@ onready var NEXTSCENE = "res://Levels/Level11.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
|
||||||
|
|
||||||
func _on_Win_timeout():
|
func _on_Win_timeout():
|
||||||
get_tree().change_scene(NEXTSCENE)
|
get_tree().change_scene(NEXTSCENE)
|
||||||
|
|
||||||
|
@ -10,14 +10,15 @@ onready var NEXTSCENE = "res://End.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
|
|
||||||
onready var HUD = $"Player/HUD/MenuLayer/Start"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
balls.text = String(enemycount)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
balls.text = String(enemycount)
|
||||||
if enemycount == 0:
|
if enemycount == 0:
|
||||||
WinMess.show()
|
WinMess.show()
|
||||||
EndTimer.start()
|
EndTimer.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user