mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added image preloader and doll sensor
This commit is contained in:
parent
3aa89fc8d6
commit
1dcc21d0b5
20 changed files with 651 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue