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
Obstacle {
id: obstacle1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 8
leftMargin: scene.width / 6 * 5
}
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Obstacle {
id: obstacle3
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 10 * 9
leftMargin: scene.width / 7
}
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Obstacle {
id: obstacle4
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3 + 10
leftMargin: scene.width / 2
}
obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
}
Opponents {
id: opponentSnowman1
z: -1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 6
leftMargin: scene.width / 6
}
opponentBody.source: Qt.resolvedUrl("../../assets/img/Snowman.gif")
}
PowerUpSpawn {
entityId: "spawn"
id: spaw3
z: -1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 7 * 6
leftMargin: scene.width / 5 * 4
}
spawnBody.source: Qt.resolvedUrl("../../assets/img/PUSpawn.png")
}
PowerUpSpawn {
entityId: "spawn"
id: spaw1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3
leftMargin: scene.width / 6 * 5
}
spawnBody.source: Qt.resolvedUrl("../../assets/img/PUSpawn.png")
}
PowerUpSpawn {
entityId: "spawn"
id: spaw2
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 2
leftMargin: scene.width / 5
}
spawnBody.source: Qt.resolvedUrl("../../assets/img/PUSpawn.png")
}
Lake {
id: lake
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 2 + 15
}
lakeBody.source: Qt.resolvedUrl("../../assets/img/Lake.png")
}
Iglu {
entityId: "iglu2"
id: iglu2
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3 * 2 - 30
leftMargin: scene.width / 7 * 4 - 10
}
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
}
Iglu {
entityId: "iglu3"
id: iglu3
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3 * 2 + 10
leftMargin: scene.width - 5
}
rotation: 180
igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
}
Iglu {
entityId: "iglu1"
id: iglu1
anchors {
top: scene.top
left: scene.left
topMargin: scene.height / 3 - 25
leftMargin: 75
}
rotation: 90