mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
implemented gameobject for tiles and doll
This commit is contained in:
parent
fe0d4a66e2
commit
d51c705c1c
15 changed files with 221 additions and 326 deletions
|
|
@ -1,11 +1,11 @@
|
|||
define([
|
||||
"Game/Core/GameObjects/GameObject"
|
||||
"Game/Core/GameObjects/GameObject",
|
||||
"Lib/Utilities/Exception"
|
||||
],
|
||||
|
||||
function(Parent) {
|
||||
function (Parent, Exception) {
|
||||
|
||||
function GameObject(physicsEngine, view) {
|
||||
this.view = view;
|
||||
function GameObject(physicsEngine) {
|
||||
Parent.call(this, physicsEngine);
|
||||
this.createMesh();
|
||||
this.render();
|
||||
|
|
@ -23,7 +23,7 @@ function(Parent) {
|
|||
}
|
||||
|
||||
GameObject.prototype.createMesh = function() {
|
||||
throw new Exception('Abstract method GameObject.getMesh not overwritten');
|
||||
throw new Exception('Abstract method GameObject.createMesh not overwritten');
|
||||
};
|
||||
|
||||
return GameObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue