added a menu
This commit is contained in:
parent
591bc318b5
commit
7ec47e79f6
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
var INITIAL_BALL_SPEED = 600
|
||||
var INITIAL_PAD_SPEED = 200
|
||||
var GAME_MODE = 0
|
|
@ -0,0 +1,16 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/intro.wav-bec2f4e20afd863a22847cd6bbff0c82.sample"
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/loop=false
|
||||
compress/mode=0
|
|
@ -0,0 +1,23 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/logo.png-cca8726399059c8d4f806e28e356b14d.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
|
|
@ -0,0 +1,16 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamSample"
|
||||
path="res://.import/lose.wav-91b99e40cf36caf60a52f252757e322f.sample"
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/loop=false
|
||||
compress/mode=0
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://menu.vs" type="Script" id=1]
|
||||
[ext_resource path="res://logo.png" type="Texture" id=2]
|
||||
[ext_resource path="res://intro.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://segoeui.ttf" type="DynamicFontData" id=4]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
|
||||
size = 16
|
||||
use_mipmaps = false
|
||||
use_filter = false
|
||||
font_data = ExtResource( 4 )
|
||||
_sections_unfolded = [ "Font" ]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="logo" type="Sprite" parent="."]
|
||||
|
||||
position = Vector2( 320, 120 )
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
stream = ExtResource( 3 )
|
||||
volume_db = -20.0
|
||||
autoplay = true
|
||||
mix_target = 0
|
||||
bus = "Master"
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 250.0
|
||||
margin_top = 270.0
|
||||
margin_right = 376.0
|
||||
margin_bottom = 319.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 )
|
||||
text = "A- VERSUS MODE
|
||||
Z- VOLLEY MODE"
|
||||
percent_visible = 1.0
|
||||
lines_skipped = 0
|
||||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
|
||||
|
17
pong.tscn
17
pong.tscn
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=14 format=2]
|
||||
[gd_scene load_steps=15 format=2]
|
||||
|
||||
[ext_resource path="res://pong.vs" type="Script" id=1]
|
||||
[ext_resource path="res://left_pallete.png" type="Texture" id=2]
|
||||
|
@ -10,6 +10,7 @@
|
|||
[ext_resource path="res://wallbounce.wav" type="AudioStream" id=8]
|
||||
[ext_resource path="res://cheer.wav" type="AudioStream" id=9]
|
||||
[ext_resource path="res://segoeui.ttf" type="DynamicFontData" id=10]
|
||||
[ext_resource path="res://lose.wav" type="AudioStream" id=11]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
|
||||
|
@ -92,7 +93,7 @@ autoplay = false
|
|||
mix_target = 0
|
||||
bus = "Master"
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="left_display" type="Label" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -115,7 +116,7 @@ lines_skipped = 0
|
|||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "Rect", "custom_fonts" ]
|
||||
|
||||
[node name="Label3" type="Label" parent="."]
|
||||
[node name="volley_display" type="Label" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -138,7 +139,7 @@ lines_skipped = 0
|
|||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
[node name="right_display" type="Label" parent="."]
|
||||
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
|
@ -161,4 +162,12 @@ lines_skipped = 0
|
|||
max_lines_visible = -1
|
||||
_sections_unfolded = [ "custom_fonts" ]
|
||||
|
||||
[node name="AudioStreamPlayer5" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
stream = ExtResource( 11 )
|
||||
volume_db = 0.0
|
||||
autoplay = false
|
||||
mix_target = 0
|
||||
bus = "Master"
|
||||
|
||||
|
||||
|
|
|
@ -11,9 +11,13 @@ config_version=3
|
|||
[application]
|
||||
|
||||
config/name="pong"
|
||||
run/main_scene="res://pong.tscn"
|
||||
run/main_scene="res://menu.tscn"
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[autoload]
|
||||
|
||||
global1="*res://global1.gd"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/width=640
|
||||
|
|
Loading…
Reference in New Issue