37 lines
641 B
QML
Raw Normal View History

2018-09-09 15:05:52 +03:00
import QtQuick 2.9
import QtQuick.Window 2.2
2018-11-14 23:15:36 +03:00
import QtQuick.Controls 2.2
2018-09-09 15:05:52 +03:00
2018-11-14 23:15:36 +03:00
ApplicationWindow {
id: mainWindow;
visible: true;
width: 1140;
height: 540;
title: qsTr("SnakeOnTheRoad");
2018-11-12 20:00:37 +03:00
readonly property int pointCount: 100;
property real point: (width < height) ? width/pointCount : height/pointCount;
2018-11-25 03:24:41 +03:00
Component.onCompleted: {
scane.setAuto(true);
2018-11-25 18:10:08 +03:00
// contr.newGame();
2018-11-25 03:24:41 +03:00
}
2018-11-14 23:15:36 +03:00
Scene {
2018-11-25 03:24:41 +03:00
id: scane;
2018-11-14 23:15:36 +03:00
anchors.fill: parent;
2018-11-12 20:00:37 +03:00
}
2018-11-25 18:10:08 +03:00
MainMenu {
2018-11-14 23:15:36 +03:00
2018-11-25 18:10:08 +03:00
anchors.fill: parent;
visible: scane.showMenu;
onPaly: {
scane.setAuto(false);
}
}
2018-09-09 15:05:52 +03:00
}