Durdles - 2-Player Action Game
import QtQuick 2.0
import Felgo 4.0
import "../common" as Common
import ".."
import "../levels"
import "../entities"
import "../entities/powerUps"
Common.LevelBase {
id: scene
Iglu {
entityId: "iglu1"
id: iglu1
anchors {
top: scene.top
left: scene.left
topMargin: 25
leftMargin: 80
}
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
rotation: 135
}
Iglu {
entityId: "iglu2"
id: iglu2
anchors {
top: scene.top
left: scene.left
topMargin: 80
leftMargin: scene.width - 30
}
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
rotation: 225
}
Iglu {
entityId: "iglu3"
id: iglu3
anchors {
top: scene.top
left: scene.left
topMargin: scene.height - 80
leftMargin: 30
}
rotation: 45
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
}
Iglu {
entityId: "iglu4"
id: iglu4
anchors {
top: scene.top
left: scene.left
topMargin: scene.height - 30
leftMargin: scene.width - 80
}
rotation: 315
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
}
Lake {
id: lake
anchors.centerIn: parent
lakeBody.source: Qt.resolvedUrl("../../assets/img/Lake.png")
}
Opponents {
id: opponentSnowman1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3 * 2
leftMargin: scene.width / 4 * 3
}
opponentBody.source: Qt.resolvedUrl("../../assets/img/Snowman.gif")
}
Opponents {
id: opponentSnowman2
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3
leftMargin: scene.width / 4
}
opponentBody.source: Qt.resolvedUrl("../../assets/img/Snowman.gif")
}
Obstacle {
id: obstacle1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 6
leftMargin: scene.width / 4 * 3 - 22
}
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Obstacle {
id: obstacle2
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 6 + 22
leftMargin: scene.width / 4 * 3
}
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Obstacle {
id: obstacle3
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 6 * 5
leftMargin: scene.width / 4 + 22
}
rotation: 0
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Obstacle {
id: obstalce4
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 6 * 5 - 22
leftMargin: scene.width / 4
}
rotation: 0
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Tree {
entityId: "tree1"
id: tree1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 2
leftMargin: scene.width / 2 - lake.width / 3
}
treeBody.source: Qt.resolvedUrl("../../assets/img/Tree.png")
}
PowerUpSpawn {
entityId: "spawn1"
id: spawn1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 2
leftMargin: scene.width / 2 + lake.width / 3
}