1
0
Fork 0

Added scene graph plugin

This commit is contained in:
Michaël Lemaire 2017-05-31 17:53:11 +02:00
parent 0de768a1d1
commit d41b9f3d2c
4 changed files with 38 additions and 4 deletions

View file

@ -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

View file

@ -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"
}
}
}

View file

@ -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>

View file

@ -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);
}
}