Skip to content
Snippets Groups Projects
Commit 547e4e71 authored by STAVRIDIS ADONIS's avatar STAVRIDIS ADONIS :speech_balloon:
Browse files

#142 finished endGame

parent 25cdeb51
Branches super-loading-screen
Tags
No related merge requests found
[gd_scene load_steps=26 format=2] [gd_scene load_steps=29 format=2]
[ext_resource path="res://levels/endGame/endGame.gd" type="Script" id=1] [ext_resource path="res://levels/endGame/endGame.gd" type="Script" id=1]
[ext_resource path="res://levels/commons/assets/fondmain.png" type="Texture" id=2] [ext_resource path="res://levels/commons/assets/fondmain.png" type="Texture" id=2]
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
[ext_resource path="res://levels/commons/themes/endgameLabel.tres" type="Theme" id=14] [ext_resource path="res://levels/commons/themes/endgameLabel.tres" type="Theme" id=14]
[ext_resource path="res://levels/commons/themes/endgameRankLabel.tres" type="Theme" id=15] [ext_resource path="res://levels/commons/themes/endgameRankLabel.tres" type="Theme" id=15]
[ext_resource path="res://levels/commons/fonts/montserrat/Montserrat-Regular.otf" type="DynamicFontData" id=16] [ext_resource path="res://levels/commons/fonts/montserrat/Montserrat-Regular.otf" type="DynamicFontData" id=16]
[ext_resource path="res://levels/endGame/assets/robotwin.png" type="Texture" id=17]
[ext_resource path="res://levels/endGame/assets/reggaewin.png" type="Texture" id=18]
[ext_resource path="res://levels/endGame/assets/metalwin.png" type="Texture" id=19]
[sub_resource type="StreamTexture" id=1] [sub_resource type="StreamTexture" id=1]
flags = 4 flags = 4
...@@ -96,7 +99,7 @@ stretch_mode = 1 ...@@ -96,7 +99,7 @@ stretch_mode = 1
visible = false visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
texture = ExtResource( 6 ) texture = ExtResource( 18 )
expand = true expand = true
stretch_mode = 1 stretch_mode = 1
...@@ -104,7 +107,7 @@ stretch_mode = 1 ...@@ -104,7 +107,7 @@ stretch_mode = 1
visible = false visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
texture = ExtResource( 6 ) texture = ExtResource( 17 )
expand = true expand = true
stretch_mode = 1 stretch_mode = 1
...@@ -112,7 +115,7 @@ stretch_mode = 1 ...@@ -112,7 +115,7 @@ stretch_mode = 1
visible = false visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
texture = ExtResource( 6 ) texture = ExtResource( 19 )
expand = true expand = true
stretch_mode = 1 stretch_mode = 1
...@@ -120,7 +123,7 @@ stretch_mode = 1 ...@@ -120,7 +123,7 @@ stretch_mode = 1
visible = false visible = false
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
texture = ExtResource( 6 ) texture = ExtResource( 5 )
expand = true expand = true
stretch_mode = 1 stretch_mode = 1
......
client/levels/endGame/assets/metalwin.png

56.7 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/metalwin.png-677b3541d187396bdce7be81ee417e91.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/endGame/assets/metalwin.png"
dest_files=[ "res://.import/metalwin.png-677b3541d187396bdce7be81ee417e91.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
client/levels/endGame/assets/reggaewin.png

58.7 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/reggaewin.png-e95df8bf9b765781825e4b192ca91b50.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/endGame/assets/reggaewin.png"
dest_files=[ "res://.import/reggaewin.png-e95df8bf9b765781825e4b192ca91b50.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
client/levels/endGame/assets/robotwin.png

71.7 KiB

[remap]
importer="texture"
type="StreamTexture"
path="res://.import/robotwin.png-a3a1d4832a8b7412479cc9b1bad58f2a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://levels/endGame/assets/robotwin.png"
dest_files=[ "res://.import/robotwin.png-a3a1d4832a8b7412479cc9b1bad58f2a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
...@@ -49,7 +49,7 @@ func _ready(): ...@@ -49,7 +49,7 @@ func _ready():
# Display stats # Display stats
# On doit récupérer le personnage joué pour idCharacter # On doit récupérer le personnage joué pour idCharacter
# En théorie 1 = Lullaby, 2 = Disco, 3 = Angela, 4 = WeedMan, 6 = Electrorobot, 5 = Metal, 0 = Default (dans l'optique où on propose un default) # En théorie 1 = Lullaby, 2 = Disco, 3 = Angela, 4 = WeedMan, 5 = Metal, 6 = Electrorobot, 0 = Default (dans l'optique où on propose un default)
var idCharacter = gamestate.players[get_tree().get_network_unique_id()]["skin"] var idCharacter = gamestate.players[get_tree().get_network_unique_id()]["skin"]
# Nombre de personnage tué par le joueur courant # Nombre de personnage tué par le joueur courant
var kills = gamestate.endGameStats["kills"] var kills = gamestate.endGameStats["kills"]
...@@ -73,7 +73,7 @@ func buttonHeader(button_name): ...@@ -73,7 +73,7 @@ func buttonHeader(button_name):
# Display win background # Display win background
func displayBg(charID): func displayBg(charID):
if charID == 1: if charID == 0:
LULLABY.visible = true LULLABY.visible = true
ANGELA.visible = false ANGELA.visible = false
FRANKY.visible = false FRANKY.visible = false
...@@ -81,7 +81,15 @@ func displayBg(charID): ...@@ -81,7 +81,15 @@ func displayBg(charID):
METAL.visible = false METAL.visible = false
ELECTRO.visible = false ELECTRO.visible = false
DEFAULT.visible = false DEFAULT.visible = false
if charID == 2: elif charID == 1:
LULLABY.visible = true
ANGELA.visible = false
FRANKY.visible = false
WEED.visible = false
METAL.visible = false
ELECTRO.visible = false
DEFAULT.visible = false
elif charID == 2:
LULLABY.visible = false LULLABY.visible = false
ANGELA.visible = false ANGELA.visible = false
FRANKY.visible = true FRANKY.visible = true
...@@ -89,7 +97,7 @@ func displayBg(charID): ...@@ -89,7 +97,7 @@ func displayBg(charID):
METAL.visible = false METAL.visible = false
ELECTRO.visible = false ELECTRO.visible = false
DEFAULT.visible = false DEFAULT.visible = false
if charID == 3: elif charID == 3:
LULLABY.visible = false LULLABY.visible = false
ANGELA.visible = true ANGELA.visible = true
FRANKY.visible = false FRANKY.visible = false
...@@ -97,6 +105,30 @@ func displayBg(charID): ...@@ -97,6 +105,30 @@ func displayBg(charID):
METAL.visible = false METAL.visible = false
ELECTRO.visible = false ELECTRO.visible = false
DEFAULT.visible = false DEFAULT.visible = false
elif charID == 4:
LULLABY.visible = false
ANGELA.visible = false
FRANKY.visible = false
WEED.visible = true
METAL.visible = false
ELECTRO.visible = false
DEFAULT.visible = false
elif charID == 5:
LULLABY.visible = false
ANGELA.visible = false
FRANKY.visible = false
WEED.visible = false
METAL.visible = true
ELECTRO.visible = false
DEFAULT.visible = false
elif charID == 6:
LULLABY.visible = false
ANGELA.visible = false
FRANKY.visible = false
WEED.visible = false
METAL.visible = false
ELECTRO.visible = true
DEFAULT.visible = false
# Display stats # Display stats
func displayStats(rank,nbPlayers,kills,message): func displayStats(rank,nbPlayers,kills,message):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment