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

   Obstacle {
     id: obstacle1
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 8
       leftMargin: scene.width / 6 * 5
     }
     obstacleBody.source: "../../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: "../../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: "../../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: "../../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: "../../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: "../../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: "../../assets/img/PUSpawn.png"
   }

   Lake {
     id: lake
     anchors {
       top: scene.top
       left: scene.left
       topMargin: scene.height / 2 + 15
     }
     lakeBody.source: "../../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: "../../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: "../../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
Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded