-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.qml
47 lines (40 loc) · 845 Bytes
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* main.qml
*
* Copyright (C) 2014 Paulo Pinheiro
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import QtQuick 2.2
import Bacon2D 1.0
Game{
id:game
gameName: "Jumpy Bird"
width: 640
height: 420
ups:30 // <- updates per second
currentScene: scene
states: [
State {
name: "over"
PropertyChanges {
target: textGameOver
opacity: 1
scale:2.4
}
}
]
MainScene{
id:scene
width: parent.width; height:parent.height
}
Image{
source:"img/splash.png"
visible: !scene.running
anchors{
centerIn: parent
verticalCenterOffset: -20
}
z:2
}
}