Update Sprite using examples to frameDuration
While it's good to test the interim compatibility code, examples are not supposed to print any warnings. Change-Id: Ie6560213fd89b0ca4162c5b48dbaf86dee63cb48 Reviewed-by: Martin Jones <martin.jones@nokia.com>
This commit is contained in:
parent
16ca1d7d65
commit
a838eea333
|
@ -55,8 +55,8 @@ Rectangle {
|
|||
name: "snow"
|
||||
source: "../images/snowflake.png"
|
||||
frames: 51
|
||||
duration: 40
|
||||
durationVariation: 8
|
||||
frameDuration: 40
|
||||
frameDurationVariation: 8
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -109,8 +109,7 @@ Rectangle {
|
|||
name: "spinning"
|
||||
source: "../images/meteor.png"
|
||||
frames: 35
|
||||
duration: 60
|
||||
speedModifiesDuration: -0.1
|
||||
frameDuration: 60
|
||||
}
|
||||
}
|
||||
ImageParticle {
|
||||
|
|
|
@ -136,31 +136,31 @@ Item {
|
|||
sprites: [Sprite {
|
||||
source: "../images/realLeaf1.png"
|
||||
frames: 1
|
||||
duration: 1
|
||||
frameDuration: 1
|
||||
to: {"a":1, "b":1, "c":1, "d":1}
|
||||
}, Sprite {
|
||||
name: "a"
|
||||
source: "../images/realLeaf1.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "b"
|
||||
source: "../images/realLeaf2.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "c"
|
||||
source: "../images/realLeaf3.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "d"
|
||||
source: "../images/realLeaf4.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
@ -66,31 +66,31 @@ Item {
|
|||
sprites: [Sprite {
|
||||
source: "../images/realLeaf1.png"
|
||||
frames: 1
|
||||
duration: 1
|
||||
frameDuration: 1
|
||||
to: {"a":1, "b":1, "c":1, "d":1}
|
||||
}, Sprite {
|
||||
name: "a"
|
||||
source: "../images/realLeaf1.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "b"
|
||||
source: "../images/realLeaf2.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "c"
|
||||
source: "../images/realLeaf3.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
},
|
||||
Sprite {
|
||||
name: "d"
|
||||
source: "../images/realLeaf4.png"
|
||||
frames: 1
|
||||
duration: 10000
|
||||
frameDuration: 10000
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
@ -106,20 +106,20 @@ Item {
|
|||
name: "spinning"
|
||||
source: "../images/meteor.png"
|
||||
frames: 35
|
||||
duration: 40
|
||||
frameDuration: 40
|
||||
randomStart: true
|
||||
to: {"explode":0, "spinning":1}
|
||||
},Sprite {
|
||||
name: "explode"
|
||||
source: "../images/_explo.png"
|
||||
frames: 22
|
||||
duration: 40
|
||||
frameDuration: 40
|
||||
to: {"nullFrame":1}
|
||||
},Sprite {//Not sure if this is needed, but seemed easiest
|
||||
name: "nullFrame"
|
||||
source: "../images/nullRock.png"
|
||||
frames: 1
|
||||
duration: 1000
|
||||
frameDuration: 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -52,8 +52,8 @@ Rectangle {
|
|||
name: "snow"
|
||||
source: "../images/snowflake.png"
|
||||
frames: 51
|
||||
duration: 40
|
||||
durationVariation: 8
|
||||
frameDuration: 40
|
||||
frameDurationVariation: 8
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ Rectangle {
|
|||
name: "bear"
|
||||
source: "../images/bear_tiles.png"
|
||||
frames: 13
|
||||
duration: 120
|
||||
frameDuration: 120
|
||||
}
|
||||
]
|
||||
colorVariation: 0.5
|
||||
|
|
|
@ -52,7 +52,7 @@ Rectangle {
|
|||
name: "bear"
|
||||
source: "../images/bear_tiles.png"
|
||||
frames: 13
|
||||
duration: 120
|
||||
frameDuration: 120
|
||||
}
|
||||
width: 250
|
||||
height: 250
|
||||
|
@ -72,25 +72,25 @@ Rectangle {
|
|||
name: "happy"
|
||||
source: "../images/starfish_1.png"
|
||||
frames: 1
|
||||
duration: 260
|
||||
frameDuration: 260
|
||||
to: {"happy": 1, "silly": 1, "angry": 1}
|
||||
}, Sprite {
|
||||
name: "angry"
|
||||
source: "../images/starfish_0.png"
|
||||
frames: 1
|
||||
duration: 260
|
||||
frameDuration: 260
|
||||
to: {"happy": 1, "silly": 1, "angry": 1}
|
||||
}, Sprite {
|
||||
name: "silly"
|
||||
source: "../images/starfish_2.png"
|
||||
frames: 1
|
||||
duration: 260
|
||||
frameDuration: 260
|
||||
to: {"happy": 1, "silly": 1, "noticedbear": 0}
|
||||
}, Sprite {
|
||||
name: "noticedbear"
|
||||
source: "../images/starfish_3.png"
|
||||
frames: 1
|
||||
duration: 2600
|
||||
frameDuration: 2600
|
||||
}]
|
||||
}
|
||||
|
||||
|
|
|
@ -128,19 +128,19 @@ Item {
|
|||
name: "spinning"
|
||||
source: "pics/meteor.png"
|
||||
frames: 35
|
||||
duration: 40
|
||||
frameDuration: 40
|
||||
to: {"death":0, "spinning":1}
|
||||
},Sprite {
|
||||
name: "death"
|
||||
source: "pics/meteor_explo.png"
|
||||
frames: 22
|
||||
duration: 40
|
||||
frameDuration: 40
|
||||
to: {"null":1}
|
||||
}, Sprite {
|
||||
name: "null"
|
||||
source: "pics/nullRock.png"
|
||||
frames: 1
|
||||
duration: 1000
|
||||
frameDuration: 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue