Skip to content

Commit

Permalink
move to steal js from webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
quantuminformation committed Jul 26, 2016
1 parent 9fc96b4 commit a45c5bf
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 44 deletions.
10 changes: 10 additions & 0 deletions Main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


SystemJS.import('./Game').then(function(Game) {
new Game.Game();
});





4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h1>Guide</h1>
<p>The green box is the center of mass (more coming soon)</p>
</section>

<script src="dist/density-wars.js"></script>
<script src="node_modules/systemjs/dist/system.js"></script>
<script src="dist/tsc.js"></script>
<script src="Main.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion lib/RemotePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {IGameUnit} from "./gameUnits/IGameUnit";
/**
* Data for a competing player
*/
export default class RemotePlayer {
export class RemotePlayer {

isUser:boolean; //if true player is current in control user
units:Array<IGameUnit>;
Expand Down
2 changes: 1 addition & 1 deletion lib/game.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Core from "./gameUnits/Core";
import Formations from "./utils/Formations.ts";
import Formations from "./utils/Formations";
import {common} from "./Common";
import {IGameUnit} from "./gameUnits/IGameUnit";
import Ground from "./Ground";
Expand Down
2 changes: 1 addition & 1 deletion lib/hud/Lobby.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RemotePlayer from "../RemotePlayer.ts";
import {RemotePlayer} from "../RemotePlayer";


/**
Expand Down
16 changes: 4 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack --watch --watch-polling"
"build": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -22,18 +22,10 @@
},
"homepage": "https://github.com/QuantumInformation/Density-Wars",
"devDependencies": {
"css-loader": "^0.23.0",
"html-webpack-plugin": "^2.21.0",
"loader": "^2.0.0",
"peerjs": "^0.3.14",
"style-loader": "^0.13.0",
"stylus": "^0.54.5",
"stylus-loader": "^2.1.1",
"ts-loader": "^0.8.2",
"typescript": "^1.7.5",
"webpack": "^1.11.0"
"typescript": "^1.8.10"
},
"dependencies": {
"babylonjs": "^2.3.0"
"babylonjs": "^2.3.0",
"systemjs": "^0.19.31"
}
}
11 changes: 9 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"compilerOptions": {
"target": "es5",
"module": "system",
"removeComments": true,
"preserveConstEnums": true,
"outFile": "dist/tsc.js",
"sourceMap": true

},
"files": []
"files": [
"lib/Game.ts"
],
"compileOnSave": true
}
26 changes: 0 additions & 26 deletions webpack.config.js

This file was deleted.

0 comments on commit a45c5bf

Please sign in to comment.