Strip out Electron and NodeJS-specific functions to get the game working on a basic level
This commit is contained in:
parent
ef3620f4f9
commit
fe0ec3a2c7
4 changed files with 16 additions and 14 deletions
|
|
@ -4,8 +4,6 @@ function Controller () {
|
|||
this.menu = { default: {} }
|
||||
this.mode = 'default'
|
||||
|
||||
this.app = require('electron').remote.app
|
||||
|
||||
this.start = function () {
|
||||
}
|
||||
|
||||
|
|
@ -45,10 +43,6 @@ function Controller () {
|
|||
return f
|
||||
}
|
||||
|
||||
this.commit = function () {
|
||||
this.app.inject_menu(this.format())
|
||||
}
|
||||
|
||||
this.docs = function () {
|
||||
console.log('Generating docs..')
|
||||
const svg = this.generate_svg(this.format())
|
||||
|
|
@ -181,5 +175,3 @@ function Controller () {
|
|||
{ x: 540, y: 240, width: 90, height: 60, name: 'alt' }
|
||||
]
|
||||
}
|
||||
|
||||
module.exports = new Controller()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue