Skip to content

Commit

Permalink
Various base scene class updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Irrelon committed Oct 5, 2013
1 parent 75e28dd commit a9f17d6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 55 deletions.
1 change: 1 addition & 0 deletions blank_game/ClientConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var igeClientConfig = {
/* Your custom game JS scripts */
'./gameClasses/ClientNetworkEvents.js',
'./gameClasses/Rotator.js',

/* Standard game scripts */
'./client.js',
'./index.js'
Expand Down
17 changes: 3 additions & 14 deletions blank_game/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,8 @@ var Client = IgeClass.extend({
ige.start(function (success) {
// Check if the engine started successfully
if (success) {
// Create the scene
self.scene1 = new IgeScene2d()
.id('scene1');

// Create the main viewport and set the scene
// it will "look" at as the new scene1 we just
// created above
self.vp1 = new IgeViewport()
.id('vp1')
.autoSize(true)
.scene(self.scene1)
.drawBounds(true)
.mount(ige);
// Add base scene data
ige.addGraph('IgeBaseScene');

// Create an entity and mount it to the scene
// (the class Rotator is declared in ./gameClasses/Rotator.js)
Expand All @@ -49,7 +38,7 @@ var Client = IgeClass.extend({
.height(100)
.texture(gameTexture[0])
.translateTo(0, 0, 0)
.mount(self.scene1);
.mount(ige.$('baseScene'));

// Create a second rotator entity and mount
// it to the first one at 0, 50 relative to the
Expand Down
2 changes: 1 addition & 1 deletion blank_game_multiplayer/ClientConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var igeClientConfig = {
include: [
/* Your custom game JS scripts */
'./levels/BaseScene.js',
//'./gameClasses/MyClassFile.js',

/* Standard game scripts */
'./client.js',
Expand Down
1 change: 0 additions & 1 deletion blank_game_multiplayer/ServerConfig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var config = {
include: [
//{name: 'MyClassName', path: './gameClasses/MyClassFileName'},
{name: 'BaseScene', path: './levels/BaseScene'}
]
};

Expand Down
39 changes: 0 additions & 39 deletions blank_game_multiplayer/levels/BaseScene.js

This file was deleted.

0 comments on commit a9f17d6

Please sign in to comment.