diff options
Diffstat (limited to 'examples/declarative/follow/pong.qml')
-rw-r--r-- | examples/declarative/follow/pong.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/follow/pong.qml b/examples/declarative/follow/pong.qml index 32ee049..582b04c 100644 --- a/examples/declarative/follow/pong.qml +++ b/examples/declarative/follow/pong.qml @@ -5,14 +5,14 @@ Rect { // Make a ball to bounce Rect { + // Add a property for the target y coordinate + property var targetY : Page.height-10 + property var direction : "right" + id: Ball color: "#00ee00" x: 20; width: 20; height: 20; z: 1 - // Add a property for the target y coordinate - properties: Property { name: "targetY"; value: Page.height-10 } - properties: Property { name: "direction"; value: "right" } - // Move the ball to the right and back to the left repeatedly x: SequentialAnimation { running: true; repeat: true |