mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added rube knife, quickstart in menu lobby, cleaned up the lobby code a bit
This commit is contained in:
parent
d0e9f0d458
commit
8730324a83
8 changed files with 968 additions and 215 deletions
|
|
@ -65,7 +65,8 @@ function (Parent, Settings, Nc, Exception) {
|
|||
Settings.GRAPHICS_PATH
|
||||
+ Settings.GRAPHICS_SUBPATH_CHARACTERS
|
||||
+ this.characterName
|
||||
+ "/Animation/WithArms/ChuckAnimations0"
|
||||
+ "/Animation/WithoutArms/ChuckAnimationsWithoutArms0"
|
||||
//+ "/Animation/WithoutArms/ChuckAnimations0"
|
||||
+ padF(i)
|
||||
+ ".png"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -56,19 +56,21 @@ function (Parent, Settings, Nc, PIXI) {
|
|||
}
|
||||
|
||||
var characterNames = ["Chuck"];
|
||||
var animationSets = ["WithArms"]; // FIXME add WithoutArms
|
||||
var animationSets = ["WithoutArms"];//, "WithArms"];
|
||||
var addition = "";
|
||||
for (var i = 0; i < characterNames.length; i++) {
|
||||
var characterName = characterNames[i];
|
||||
for (var j = 1; j <= 126; j++) {
|
||||
for (var k = 0; k < animationSets.length; k++) {
|
||||
var animationSet = animationSets[k];
|
||||
addition = animationSet == "WithoutArms" ? "WithoutArms" : "";
|
||||
paths.push(
|
||||
Settings.GRAPHICS_PATH
|
||||
+ Settings.GRAPHICS_SUBPATH_CHARACTERS
|
||||
+ characterName
|
||||
+ "/Animation/"
|
||||
+ animationSet
|
||||
+ "/ChuckAnimations0"
|
||||
+ "/ChuckAnimations" + addition + "0"
|
||||
+ padF(j)
|
||||
+ ".png"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ function (ProtocolHelper, GameController, User, Nc, Settings, DomController) {
|
|||
}
|
||||
|
||||
Networker.prototype.onJoinError = function(options) {
|
||||
alert(options.message);
|
||||
// alert(options.message);
|
||||
window.location.href = "/";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue