2019-07-28 14:39:40 +03:00

37 lines
641 B
QML

import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
ApplicationWindow {
id: mainWindow;
visible: true;
width: 1140;
height: 540;
title: qsTr("SnakeOnTheRoad");
readonly property int pointCount: 100;
property real point: (width < height) ? width/pointCount : height/pointCount;
Component.onCompleted: {
scane.setAuto(true);
// contr.newGame();
}
Scene {
id: scane;
anchors.fill: parent;
}
MainMenu {
anchors.fill: parent;
visible: scane.showMenu;
onPaly: {
scane.setAuto(false);
}
}
}