OSDN Git Service

キャラクターの特性の設定を少々
authorkoenma <pengin.king.kid@gmail.com>
Thu, 29 Aug 2013 02:45:54 +0000 (11:45 +0900)
committerkoenma <pengin.king.kid@gmail.com>
Thu, 29 Aug 2013 02:45:54 +0000 (11:45 +0900)
www/corelib/classes/FireObjectClass.js
www/corelib/classes/MainCharacters/MainCharacterClass_Hunter.js
www/corelib/classes/MainCharacters/MainCharacterClass_NakedMan.js
www/corelib/classes/MainCharacters/MainCharacterClass_Witch.js
www/corelib/classes/OperatedCharacterClass.js

index d3521ea..4ba75b0 100644 (file)
@@ -1,4 +1,4 @@
-var FireObjectClass = function(stage, args){
+var FireObjectClass = function(stage, args){
        FireObjectClass.base.apply(this, arguments);
        
        this.fireVelocity = new Point2D(600, 100);
@@ -23,6 +23,7 @@ var FireObjectClass = function(stage, args){
                        this.origin.x = ownerObj.origin.x - 32;
                }
                this.movingSpeed.x = fvx;
+               this.movingSpeed.y = -this.fireVelocity.y
                ownerObj.ownerStage.addStageObject(this);
        },
 
index f427539..acde52f 100644 (file)
@@ -3,7 +3,7 @@ var MainCharacterClass_Hunter = function(stage, args){
 
        this.size.x = 32;
        this.size.y = 64;
-       this.movingVelocity = 195;
+       this.movingVelocity = 200;
 
        this.ownerUID = stage.manager.userID;
        stage.userControlledCharacter = this;
@@ -18,8 +18,13 @@ fire: function()
                        f.maxBoundCount = 1;
                        f.size.x = 32;
                        f.size.y = 32;
-                       f.fire(this);
+                       f.fireVelocity = new Point2D(1500, 0);
+                        f.antigravity = 700 / this.ownerStage.manager.tickPerSecond;
+                       f.fire(this);
+                        
+
                        this.lastFireTick = this.ownerStage.manager.tickCount;
+                       
                }
        },
 });
index dd700bf..2b84c99 100644 (file)
@@ -3,9 +3,11 @@ var MainCharacterClass_NakedMan = function(stage, args){
 
        this.size.x = 32;
        this.size.y = 64;
-       this.movingVelocity = 210;
-       
        this.ownerUID = stage.manager.userID;
+        this.jumpPower = 120;
+        this.movingVelocity = 250;
+        this.max_HP = 50;
+       this.HP = this.max_HP;
        stage.userControlledCharacter = this;
        stage.addStageObject(this, true);
 }.extend(MainCharacterClass, {
index 98a4775..6f200bb 100644 (file)
@@ -4,7 +4,8 @@ var MainCharacterClass_Witch = function(stage, args){
        
        this.antigravity = 600 / stage.manager.tickPerSecond;
        this.jumpPower = 42;
-       
+         this.max_HP = 80;
+       this.HP = this.max_HP;
        stage.userControlledCharacter = this;
        stage.addStageObject(this, true);
 }.extend(MainCharacterClass, {
index 1deef0d..80760ad 100644 (file)
@@ -6,7 +6,7 @@ var OperatedCharacterClass = function(ownerStage, args){
        this.jumpPower_tickCountBase = 15;
        this.jumpPower_tickCountAtLeast = 2;
        this.jumpPower_tickCount = 0;
-       this.jumpPower = 100;
+       this.jumpPower = 110;
        this.jumpSound = createAudio("jump12.mp3");
        this.collisionMargin.top = 2;
        this.collisionMargin.left = 10;