pongodot

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

Ball.tscn (1495B)


      1 [gd_scene load_steps=8 format=2]
      2 
      3 [ext_resource path="res://Ball.gd" type="Script" id=1]
      4 [ext_resource path="res://Sprites/System6-Slice.png" type="Texture" id=2]
      5 [ext_resource path="res://Sprites/System6-Slice2.png" type="Texture" id=3]
      6 [ext_resource path="res://Sprites/System6-Slice1.png" type="Texture" id=4]
      7 [ext_resource path="res://Sounds/pong.wav" type="AudioStream" id=5]
      8 
      9 [sub_resource type="CircleShape2D" id=1]
     10 
     11 [sub_resource type="Animation" id=2]
     12 resource_name = "Boop"
     13 length = 0.2
     14 tracks/0/type = "value"
     15 tracks/0/path = NodePath("NinePatchRect:texture")
     16 tracks/0/interp = 1
     17 tracks/0/loop_wrap = true
     18 tracks/0/imported = false
     19 tracks/0/enabled = true
     20 tracks/0/keys = {
     21 "times": PoolRealArray( 0, 0.2 ),
     22 "transitions": PoolRealArray( 1, 1 ),
     23 "update": 1,
     24 "values": [ ExtResource( 3 ), ExtResource( 4 ) ]
     25 }
     26 
     27 [node name="Ball" type="KinematicBody2D"]
     28 script = ExtResource( 1 )
     29 _speed = 80
     30 
     31 [node name="NinePatchRect" type="NinePatchRect" parent="."]
     32 margin_left = -10.0
     33 margin_top = -10.0
     34 margin_right = 10.0
     35 margin_bottom = 10.0
     36 texture = ExtResource( 2 )
     37 patch_margin_left = 6
     38 patch_margin_top = 6
     39 patch_margin_right = 6
     40 patch_margin_bottom = 6
     41 axis_stretch_horizontal = 2
     42 axis_stretch_vertical = 2
     43 
     44 [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
     45 shape = SubResource( 1 )
     46 
     47 [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
     48 anims/Boop = SubResource( 2 )
     49 
     50 [node name="SFX" type="AudioStreamPlayer2D" parent="."]
     51 stream = ExtResource( 5 )
     52 bus = "FX"