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 3.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: "../../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: "../../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: "../../assets/img/Iglu.png"
   }

   Lake {
     id: lake
     anchors {
       top: scene.top
       left: scene.left
       topMargin: -10
       leftMargin: -50
     }
     rotation: 0
     lakeBody.source: "../../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: "../../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: "../../assets/img/Obstacle.png"
   }

   Ball {
     z: -1
     id: ball
     x: scene.width / 3
     y: scene.height / 8 * 7
     rotation: 0
     ballBody.source: "../../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: "../../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