2021-05-20 05:11:03 +00:00
|
|
|
import Vue from 'vue';
|
2021-05-26 01:57:02 +00:00
|
|
|
import App from './App';
|
2021-05-20 05:11:03 +00:00
|
|
|
import store from './store';
|
2021-05-26 01:57:02 +00:00
|
|
|
import { layers, hotkeys } from './store/layers';
|
2021-05-27 06:14:43 +00:00
|
|
|
import { setVue } from './util/vue';
|
|
|
|
import './components/index';
|
2021-05-19 22:21:51 +00:00
|
|
|
|
2021-05-22 20:29:06 +00:00
|
|
|
// Setup
|
2021-05-20 05:11:03 +00:00
|
|
|
Vue.config.productionTip = false;
|
2021-05-19 22:21:51 +00:00
|
|
|
|
2021-05-22 20:29:06 +00:00
|
|
|
// Create Vue
|
2021-05-27 06:14:43 +00:00
|
|
|
const vue = window.vue = new Vue({
|
2021-05-19 22:48:02 +00:00
|
|
|
store,
|
2021-05-22 20:29:06 +00:00
|
|
|
render: h => h(App),
|
|
|
|
data: { layers, hotkeys }
|
2021-05-20 05:11:03 +00:00
|
|
|
}).$mount('#app');
|
2021-05-22 20:29:06 +00:00
|
|
|
|
2021-05-27 06:14:43 +00:00
|
|
|
setVue(vue);
|
|
|
|
|
2021-05-22 20:29:06 +00:00
|
|
|
// Start game loop
|