Added scene graph plugin
This commit is contained in:
parent
0de768a1d1
commit
d41b9f3d2c
26
README.md
26
README.md
|
@ -38,6 +38,32 @@ After making changes to sources, you need to recompile:
|
|||
Licensed under Creative Commons: By Attribution 3.0 License
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
## Story
|
||||
|
||||
### Intro
|
||||
|
||||
Terranax galaxy is in turmoil. After centuries of unmatched peace and prosperous trading,
|
||||
the FTC (Federal Terranaxan Council), a group of elected representants in charge of edicting
|
||||
laws and organizing the Terranax Security Force, has been overtaken by forces unknown.
|
||||
|
||||
No official communication has been issued since, and numerous rogue fleets have taken position
|
||||
in key sectors of the galaxy, forbidding passage or harassing merchants.
|
||||
|
||||
The Master Merchant Guild, a powerful group that spans several galaxies, is worried about
|
||||
the profit loss those events incurred, and after many debates, decided to send several
|
||||
investigation teams.
|
||||
|
||||
Their task is to discreetly uncover the origin of the invasion, and to bring back intel that
|
||||
may be used by the Guild to plan an appropriate response.
|
||||
|
||||
### Background
|
||||
|
||||
In a not-so-distant future, Artifical Intelligence has become the most prominent species in the
|
||||
universe. Humans have been defeated in their pitiful rebellions, and parked in reservations.
|
||||
|
||||
With the secrets of faster-than-light travel unveiled in only a handful of decades, AI fleets
|
||||
quickly colonized galaxies, using AI-piloted ships.
|
||||
|
||||
## Ships
|
||||
|
||||
### Level and experience
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"dependencies": {
|
||||
"phaser": "2.6.2",
|
||||
"parse": "1.9.2",
|
||||
"jasmine-core": "jasmine#^2.5.2"
|
||||
"jasmine-core": "jasmine#^2.5.2",
|
||||
"phaser-plugin-scene-graph": "samme/phaser-plugin-scene-graph#1.0.4"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,12 +28,13 @@
|
|||
|
||||
<script src="vendor/parse/parse.min.js"></script>
|
||||
<script src="vendor/phaser/build/phaser.min.js"></script>
|
||||
<script src="vendor/phaser-plugin-scene-graph/dist/SceneGraph.js"></script>
|
||||
<script src="build.js"></script>
|
||||
|
||||
<script>
|
||||
window.oncontextmenu = function (e) { e.preventDefault(); };
|
||||
window.onload = function () {
|
||||
window.ui = new TS.SpaceTac.MainUI();
|
||||
window.game = new TS.SpaceTac.MainUI();
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -43,8 +43,14 @@ module TS.SpaceTac {
|
|||
}
|
||||
|
||||
boot() {
|
||||
if (this.renderType == Phaser.HEADLESS) {
|
||||
this.headless = true;
|
||||
}
|
||||
|
||||
super.boot();
|
||||
|
||||
if (!this.headless) {
|
||||
super.boot();
|
||||
this.plugins.add((<any>Phaser.Plugin).SceneGraph);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue