implemented gameobject for tiles and doll

This commit is contained in:
jeena 2013-12-23 02:39:05 +01:00
parent fe0d4a66e2
commit d51c705c1c
15 changed files with 221 additions and 326 deletions

View file

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