added image preloader and doll sensor

This commit is contained in:
jeena 2013-12-27 03:52:49 +01:00
parent 3aa89fc8d6
commit 1dcc21d0b5
20 changed files with 651 additions and 23 deletions

View file

@ -7,7 +7,7 @@ define([
function (Parent, Settings, NotificationCenter, Exception) {
function Doll(physicsEngine, playerId) {
function Doll(physicsEngine, playerId) {
this.animationDef = {
"stand": [1,1],
"walk": [2,28],
@ -69,7 +69,10 @@ function (Parent, Settings, NotificationCenter, Exception) {
NotificationCenter.trigger("view/addMesh", mesh);
};
NotificationCenter.trigger("view/createAnimatedMesh", texturePaths, callback, { visible: false, pivot: "mb" });
NotificationCenter.trigger("view/createAnimatedMesh", texturePaths, callback, {
visible: false,
pivot: "mb"
});
}
// Head