Large diffs are not rendered by default.

Binary file not shown.
@@ -0,0 +1 @@
# AIE-Team1-TeamWork
@@ -0,0 +1,66 @@
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const dialog = electron.dialog
const globalShortcut = electron.globalShortcut
var ipc = require("ipc");
var fs = require("fs");

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow

var settings = {}

let template = [{
label: 'View',
submenu: []
}];

function createWindow () {
settings.graphics = JSON.parse(fs.readFileSync("./settings/graphics.json", 'utf8'));
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600, frame: !settings.graphics.frameless})

// and load the index.html of the app.
mainWindow.loadURL(`file://${__dirname}/app.asar/index.html`);

mainWindow.setMenu(null)
mainWindow.on('closed', function () {
mainWindow = null;
});
mainWindow.setFullScreen(settings.graphics.fullscreen);
}

app.on('ready', function(){
createWindow();
globalShortcut.register('CommandOrControl+Shift+R', function() {
mainWindow.reload();
})
globalShortcut.register('`', function(){
mainWindow.webContents.openDevTools();
})
globalShortcut.register("F11", function(){
mainWindow.setFullScreen(!mainWindow.isFullScreen());
})
});

// Quit when all windows are closed.
app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', function () {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow()
}
})

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
@@ -0,0 +1,20 @@
{
"name": "electronapp",
"version": "0.0.1",
"description": "Test app",
"main": "index.js",
"scripts": {
"start": "asar pack project app.asar && electron .",
"compile": "asar pack project app.asar",
"run": "electron .",
"build-mac": "electron-packager . MyApp --platform=darwin --arch=x64 --version=1.1.1 --ignore=node_modules/electron-* --ignore=project/* --ignore=./*.bat --ignore=./.git*",
"build-win": "electron-packager . MyApp --platform=win32 --arch=ia32 --version=1.1.1 --ignore=node_modules/electron-* --ignore=project/* --ignore=./*.bat --ignore=./.git*",
"build-linux": "electron-packager . MyApp --platform=linux --arch=ia32 --version=1.1.1 --ignore=node_modules/electron-* --ignore=project/* --ignore=./*.bat --ignore=./.git*"
},
"author": "Ajani James Bilby",
"license": "ISC",
"devDependencies": {
"electron-packager": "^7.0.2",
"electron-prebuilt": "^1.1.1"
}
}
@@ -0,0 +1,4 @@
{
"frameless": false,
"fullscreen": false
}
@@ -0,0 +1,9 @@
{
"axises": [
{"name": "MoveRight", "inputs": [{"key": "KEY_A", "value": -1}, {"key": "KEY_D", "value": 1}]},
{"name": "MoveUp", "inputs": [{"key": "KEY_W", "value": 1}, {"key": "KEY_S", "value": -1}]}
],
"actions": [
{"name": "Inventory", "inputs": ["KEY_I"]}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
v1.1.1
Binary file not shown.