pongodot

Tinkering with Godot, remaking pong
git clone git://git.hellocld.com/pongodot
Log | Files | Refs

Game.tscn (2201B)


      1 [gd_scene load_steps=10 format=2]
      2 
      3 [ext_resource path="res://Game.gd" type="Script" id=1]
      4 [ext_resource path="res://Sprites/bg-01.png" type="Texture" id=2]
      5 [ext_resource path="res://Paddle.tscn" type="PackedScene" id=3]
      6 [ext_resource path="res://Goal.tscn" type="PackedScene" id=4]
      7 [ext_resource path="res://HUD.tscn" type="PackedScene" id=5]
      8 [ext_resource path="res://Sprites/System6-UI-Slice.png" type="Texture" id=6]
      9 [ext_resource path="res://Fonts/Chicago.ttf" type="DynamicFontData" id=7]
     10 [ext_resource path="res://Sounds/goal.wav" type="AudioStream" id=8]
     11 
     12 [sub_resource type="DynamicFont" id=1]
     13 size = 40
     14 font_data = ExtResource( 7 )
     15 
     16 [node name="Game" type="Node2D"]
     17 script = ExtResource( 1 )
     18 game_score = 3
     19 
     20 [node name="Background" type="TextureRect" parent="."]
     21 margin_right = 512.0
     22 margin_bottom = 342.0
     23 texture = ExtResource( 2 )
     24 stretch_mode = 2
     25 
     26 [node name="Paddle 1" parent="." instance=ExtResource( 3 )]
     27 position = Vector2( 26, 171 )
     28 _speed = 64
     29 
     30 [node name="Goal 1" parent="." instance=ExtResource( 4 )]
     31 position = Vector2( 504, 171 )
     32 
     33 [node name="Paddle 2" parent="." instance=ExtResource( 3 )]
     34 position = Vector2( 486, 171 )
     35 _speed = 64
     36 _player = "p2"
     37 
     38 [node name="Goal 2" parent="." instance=ExtResource( 4 )]
     39 position = Vector2( 8, 171 )
     40 
     41 [node name="HUD" parent="." instance=ExtResource( 5 )]
     42 
     43 [node name="LabelPanel" type="NinePatchRect" parent="."]
     44 margin_left = 128.0
     45 margin_top = 107.0
     46 margin_right = 384.0
     47 margin_bottom = 235.0
     48 texture = ExtResource( 6 )
     49 patch_margin_left = 4
     50 patch_margin_top = 12
     51 patch_margin_right = 4
     52 patch_margin_bottom = 4
     53 axis_stretch_horizontal = 2
     54 axis_stretch_vertical = 2
     55 
     56 [node name="Label" type="Label" parent="LabelPanel"]
     57 anchor_right = 1.0
     58 anchor_bottom = 1.0
     59 margin_top = 9.0
     60 custom_fonts/font = SubResource( 1 )
     61 custom_colors/font_color = Color( 0, 0, 0, 1 )
     62 text = "GET READY"
     63 align = 1
     64 valign = 1
     65 autowrap = true
     66 
     67 [node name="Timer" type="Timer" parent="."]
     68 wait_time = 5.0
     69 
     70 [node name="GoalSFX" type="AudioStreamPlayer" parent="."]
     71 stream = ExtResource( 8 )
     72 [connection signal="body_entered" from="Goal 1" to="." method="_on_Goal_1_body_entered"]
     73 [connection signal="body_entered" from="Goal 2" to="." method="_on_Goal_2_body_entered"]