Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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: scene.height / 2 - 10
       leftMargin: scene.width / 2 + iglu1.igluBody.width / 2
     }
     rotation: 180
     igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
   }

   Iglu {
     entityId: "iglu2"
     id: iglu2
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 7 * 5
       leftMargin: scene.width / 7 * 4.2
     }
     rotation: 300
     igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
   }

   Iglu {
     entityId: "iglu3"
     id: iglu3
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 2 + iglu3.igluBody.height / 2 - 10
       leftMargin: scene.width /7 * 1.9
     }
     rotation: 60
     igluBody.source: Qt.resolvedUrl("../../assets/img/Iglu.png")
   }

   Lake {
     id: lake
     anchors {
       top: scene.top
       left: scene.left
       topMargin: -10
       leftMargin: -50
     }
     rotation: 0
     lakeBody.source: Qt.resolvedUrl("../../assets/img/Lake.png")
   }

   Opponents {
     id: opponentSnowman
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 2 - opponentSnowman.opponentBody.height * 2
       leftMargin: scene.width / 5
     }
     rotation: 0
     opponentBody.source: Qt.resolvedUrl("../../assets/img/Snowman.gif")
   }

   Obstacle {
     id: obstacleMiddle
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 2 + obstacleMiddle.obstacleBody.height +10
       leftMargin: scene.width / 2
     }
     rotation: 0
     obstacleBody.source: Qt.resolvedUrl("../../assets/img/Obstacle.png")
   }

   Ball {
     z: -1
     id: ball
     x: scene.width / 3
     y: scene.height / 8 * 7
     rotation: 0
     ballBody.source: Qt.resolvedUrl("../../assets/img/SnowballBig.png")
   }

   PowerUpSpawn {
     entityId: "spawn"
     id: spawn
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 7 * 2
       leftMargin: scene.width / 7 * 5.5
     }
     spawnBody.source: Qt.resolvedUrl("../../assets/img/PUSpawn.png")
   }

   Tree {
     entityId: "tree"
     id: tree
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 2 - tree.treeBody.height / 2
       leftMargin: scene.width / 7 * 5.5
     }
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded