Commit 4c4afbd7 by oriol

fuck you bitch

parent d0e8fe21
......@@ -1574,6 +1574,16 @@
"fill-range": "2.2.3"
}
},
"exports-loader": {
"version": "0.6.4",
"resolved": "https://registry.npmjs.org/exports-loader/-/exports-loader-0.6.4.tgz",
"integrity": "sha1-1w/GEhl1s1/BKDDPUnVL4nQPyIY=",
"dev": true,
"requires": {
"loader-utils": "1.1.0",
"source-map": "0.5.7"
}
},
"express": {
"version": "4.15.3",
"resolved": "https://registry.npmjs.org/express/-/express-4.15.3.tgz",
......@@ -2755,6 +2765,16 @@
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz",
"integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q="
},
"imports-loader": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/imports-loader/-/imports-loader-0.7.1.tgz",
"integrity": "sha1-8gS180cCoywdt9SNidXoZ6BEElM=",
"dev": true,
"requires": {
"loader-utils": "1.1.0",
"source-map": "0.5.7"
}
},
"indent-string": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
......@@ -2952,6 +2972,11 @@
"integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
"dev": true
},
"jquery": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz",
"integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c="
},
"js-tokens": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
......@@ -4729,6 +4754,16 @@
"yargs": "8.0.2"
}
},
"webpack-provide-global-plugin": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/webpack-provide-global-plugin/-/webpack-provide-global-plugin-0.0.1.tgz",
"integrity": "sha1-i2Bd9I35xOh+BfgohPAlFATQszA=",
"dev": true,
"requires": {
"exports-loader": "0.6.4",
"imports-loader": "0.7.1"
}
},
"webpack-sources": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz",
......
......@@ -17,10 +17,12 @@
"dependencies": {
"doppler-slider-js": "^0.1.11",
"express": "^4.15.3",
"jquery": "^3.2.1",
"sono": "^2.1.4",
"webpack": "^3.10.0"
},
"devDependencies": {
"electron": "^1.7.10"
"electron": "^1.7.10",
"webpack-provide-global-plugin": "0.0.1"
}
}
var webpack = require('webpack');
module.exports = {
entry: './www/js/main.js',
entry: ['jquery','./www/js/main.js'],
output: {
filename: './www/js/compiled.js'
},
resolve: {
modules:["./www/js","node_modules"]
}
};
\ No newline at end of file
};//exports
module:{
plugins:[
new webpack.ProvidePlugin(
{
$: 'jquery',
}
)
]
}//module
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
var GAME_NAME = "Killing Spree";
import 'jquery'
export {GAME_NAME}
var GAME_VERSION = 1.0;
export {GAME_VERSION}
......
'use strict';
import 'jquery';
import {InputHandler} from 'inputHandler'
export default class KeyboardInput {
constructor() {
this.keyDown = [];
......
......@@ -4,7 +4,7 @@ export default class InputHandler {
this.input = new KeyboardInput();
if (doGyro == true) {
var id = document.getElementById("touchArea");
this.touchInput = new Hammer(id);
//this.touchInput = new Hammer(id);
this.gn = new GyroNorm();
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
"use strict";
webpack=require("webpack")
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
import 'jquery';
import 'jquery'
import 'keycodes';
import 'header';
import Strings from 'strings';
......
"use strict";
import 'jquery';
export default class Menu {
constructor(name, menuData) {
this.menuData = menuData;
......
'use strict';
import 'jquery';
if (typeof speech == "undefined") var speech = new TTS();
if (runningText == undefined) var runningText = 0;
class ScrollingText {
......
'use strict';
var useWebTTS = true;
class TTS {
export {useWebTTS}
export default class TTS {
constructor(webTTS=false) {
this.synth = window.speechSynthesis;
this.webTTS = webTTS;
......
class UniversalInput {
export default class UniversalInput {
constructor() {
this.keyboardInput = new KeyboardInput();
this.gm = new GyroNorm();
this.id = document.findElementById("gameArea");
this.hammer = new Hammer(this.id);
this.hammer.get('pan').set({ direction: Hammer.DIRECTION_ALL });
//this.hammer = new Hammer(this.id);
//this.hammer.get('pan').set({ direction: Hammer.DIRECTION_ALL });
this.actionLeft = null;
this.actionRight = null;
this.actionUp = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment