pongodot

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

Paddle.tscn (1281B)


      1 [gd_scene load_steps=6 format=2]
      2 
      3 [ext_resource path="res://Paddle.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 
      7 [sub_resource type="RectangleShape2D" id=1]
      8 extents = Vector2( 10, 60 )
      9 
     10 [sub_resource type="Animation" id=2]
     11 resource_name = "Boop"
     12 length = 0.2
     13 tracks/0/type = "value"
     14 tracks/0/path = NodePath("NinePatchRect:texture")
     15 tracks/0/interp = 1
     16 tracks/0/loop_wrap = true
     17 tracks/0/imported = false
     18 tracks/0/enabled = true
     19 tracks/0/keys = {
     20 "times": PoolRealArray( 0, 0.2 ),
     21 "transitions": PoolRealArray( 1, 1 ),
     22 "update": 1,
     23 "values": [ ExtResource( 3 ), ExtResource( 2 ) ]
     24 }
     25 
     26 [node name="Paddle" type="KinematicBody2D"]
     27 script = ExtResource( 1 )
     28 
     29 [node name="NinePatchRect" type="NinePatchRect" parent="."]
     30 margin_left = -10.0
     31 margin_top = -60.0
     32 margin_right = 10.0
     33 margin_bottom = 60.0
     34 texture = ExtResource( 2 )
     35 patch_margin_left = 6
     36 patch_margin_top = 6
     37 patch_margin_right = 6
     38 patch_margin_bottom = 6
     39 axis_stretch_horizontal = 2
     40 axis_stretch_vertical = 2
     41 
     42 [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
     43 shape = SubResource( 1 )
     44 
     45 [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
     46 anims/Boop = SubResource( 2 )