mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added base classes to Server
This commit is contained in:
parent
9f8b3537a9
commit
9ec6074494
7 changed files with 60 additions and 4 deletions
20
app/Game/Core/GameObject.js
Normal file
20
app/Game/Core/GameObject.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
define([
|
||||
],
|
||||
|
||||
function() {
|
||||
|
||||
function GameObject() {
|
||||
this.body = null;
|
||||
}
|
||||
|
||||
GameObject.prototype.render = function() {
|
||||
return null;
|
||||
}
|
||||
|
||||
GameObject.prototype.getBody = function() {
|
||||
return this.body;
|
||||
};
|
||||
|
||||
return GameObject;
|
||||
|
||||
});
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
define([
|
||||
"Lib/Vendor/Box2D",
|
||||
"Game/Core/Collision/Detector"
|
||||
"Game/Core/Collision/Detector",
|
||||
"Lib/Vendor/Box2D"
|
||||
],
|
||||
|
||||
function (Box2D, Parent) {
|
||||
function (Parent, Box2D) {
|
||||
|
||||
function Detector (player) {
|
||||
Parent.call(this, player);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
define([
|
||||
"Game/Core/GameController",
|
||||
"Game/Core/Physics/Engine",
|
||||
"Game/Server/Physics/Engine",
|
||||
"Game/Config/Settings",
|
||||
"Game/Server/Control/PlayerController",
|
||||
"Lib/Utilities/RequestAnimFrame",
|
||||
|
|
|
|||
9
app/Game/Server/GameObject.js
Normal file
9
app/Game/Server/GameObject.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/GameObject"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
9
app/Game/Server/Loader/Level.js
Normal file
9
app/Game/Server/Loader/Level.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/Level"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
9
app/Game/Server/Physics/Doll.js
Normal file
9
app/Game/Server/Physics/Doll.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/Physics/Doll"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
9
app/Game/Server/Physics/Engine.js
Normal file
9
app/Game/Server/Physics/Engine.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
"Game/Core/Physics/Engine"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
|
||||
return Parent;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue