added a victory screen

This commit is contained in:
jammybread 2017-09-03 17:39:52 +01:00
parent 7ec47e79f6
commit ac9857b0ae
7 changed files with 91 additions and 1 deletions

View File

@ -3,3 +3,4 @@ extends Node
var INITIAL_BALL_SPEED = 600
var INITIAL_PAD_SPEED = 200
var GAME_MODE = 0
var WINNER = 0

BIN
menu.vs

Binary file not shown.

BIN
pong.vs

Binary file not shown.

BIN
separator2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

23
separator2.png.import Normal file
View File

@ -0,0 +1,23 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/separator2.png-44a1ff65a88e8e23b1921edad25dfeac.stex"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=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
stream=false
size_limit=0
detect_3d=true

66
victory.tscn Normal file
View File

@ -0,0 +1,66 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://victoryscn.vs" type="Script" id=1]
[ext_resource path="res://segoeui.ttf" type="DynamicFontData" id=2]
[sub_resource type="DynamicFont" id=1]
size = 64
use_mipmaps = false
use_filter = false
font_data = ExtResource( 2 )
_sections_unfolded = [ "Font", "Settings" ]
[node name="Node2D" type="Node2D"]
script = ExtResource( 1 )
[node name="Label" type="Label" parent="."]
visible = false
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 160.0
margin_top = 150.0
margin_right = 480.0
margin_bottom = 237.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
size_flags_horizontal = 1
size_flags_vertical = 4
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0, 0.789063, 1, 1 )
text = "BLUE WINS"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "Visibility", "custom_colors", "custom_fonts" ]
[node name="Label2" type="Label" parent="."]
visible = false
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 160.0
margin_top = 150.0
margin_right = 480.0
margin_bottom = 237.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
size_flags_horizontal = 1
size_flags_vertical = 4
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0.898438, 0, 1, 1 )
text = "PINK WINS"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "Visibility", "custom_colors", "custom_fonts" ]

BIN
victoryscn.vs Normal file

Binary file not shown.