OSDN Git Service

doc added
authorttwilb <ttwilb@users.sourceforge.jp>
Tue, 3 Sep 2013 09:16:04 +0000 (18:16 +0900)
committerttwilb <ttwilb@users.sourceforge.jp>
Tue, 3 Sep 2013 09:16:04 +0000 (18:16 +0900)
無敵キャラでHPバーが消えるように

documents/kobushi_seden_nado.txt [new file with mode: 0644]
www/corelib/classes/EnemyCharacterClass.js

diff --git a/documents/kobushi_seden_nado.txt b/documents/kobushi_seden_nado.txt
new file mode 100644 (file)
index 0000000..ede03a6
--- /dev/null
@@ -0,0 +1,51 @@
+3H\8by\82ÑPC\93¯\8dD\89ï\82Ì\82Ý\82È\82³\82ñ\82Ö
+
+* \83|\83X\83^\81[\82É\82Â\82¢\82Ä
+
+\83|\83X\83^\81[\82ð\8cf\8e¦\82Å\82«\82é\8fê\8f\8a\82Æ\96\87\90\94\82Í\88È\89º\82Ì\92Ê\82è\82Å\82·
+                       3H              PC
+\92\86\89\9b\8aK\92i       2               1
+\88ê\8aKA          2               1
+\88ê\8aKB          2               1
+\93ñ\8aKA          4               2
+\93ñ\8aKB          2               2
+\8eO\8aKA          4               3
+\8eO\8aKB          2               2
+\8f¸\8d~\8cû         1               0
+A\91¤\8aK\92i                1               0
+2\8aK\96{\8aÙ-\90¼\8aÙ   1       0
+\93ñ\8aK\90¼\8aÙ       1               0
+
+\83|\83X\83^\81[\82Ì\90é\93`\8b\96\89Â\88ó\82ð\93¾\82é\82±\82Æ\82ª\82Å\82«\82é\8e\9e\8aÔ
+
+9/5 \95ú\89Û\8cã
+9/6 9:00-17:00
+
+\83|\83X\83^\81[\8cf\8e¦\82È\82Ç\82Ì\90é\93`\8a\88\93®\82Í9/6 13:00\82©\82ç\89Â\94\\81B
+\83|\83X\83^\81[\82É\8aÖ\82µ\82Ä\82Í
+\81E\92\86\89\9b\8aK\92i
+\81E\88ê\8aKA
+\81E\88ê\8aKB
+\81E\93ñ\8aKA\81AA\91¤\8aK\92i
+\81E\93ñ\8aKB
+\81E\8eO\8aKA
+\81E\8eO\8aKB
+\81E\8f¸\8d~\8cû
+\81E\93ñ\8aK\96{\8aÙ-\90¼\8aÙ\81A\93ñ\8aK\90¼\8aÙ
+\82Å\83`\83F\83b\83N\82ª\82 \82é\81i\97D\90æ\8f\87\88Ê\8f\87\82É\93\\82Á\82Ä\82¢\82­\82½\82ß\81j\82Ì\82Å\95Ê\81X\82É\92S\93\96\8eÒ\82ð\94h\8c­\82·\82é\95K\97v\82ª\82 \82é\81B
+\92S\93\96\8eÒ\82Ì\90l\90\94\82ª\91«\82è\82È\82¢\8fê\8d\87\82Í\8f\87\88Ê\82ð\97\8e\82Æ\82³\82ê\82é\8fê\8d\87\82ª\82 \82é\81B
+
+\81E\83|\83X\83^\81[\82ð\93\\82ê\82é\82Ì\82Í\91\8b\82Æ\96h\89Î\94à\82Ì\82Ý\81B
+\81E\83|\83X\83^\81[\82É\82Í\94F\82ß\88ø\97p\82Ì\8eO\83Z\83\93\83`\8el\95û\82Ì\97]\94\92\81B
+\81E\83|\83X\83^\81[\82Ì\8b³\8eº\96¼\82É\82Í\8b\8f\8eº\94Ô\8d\86\82ð\8eg\97p\81B
+\81E\83e\81[\83v\8e\9d\8eQ
+
+* \97û\82è\95à\82«\82É\82Â\82¢\82Ä
+
+\8eO\94N\89\89\8c\80\82Í9/6 13:00\82©\82ç\89Â\94\\81B
+
+* \97§\82Ä\8aÅ\94Â\82É\82Â\82¢\82Ä
+
+9/6 13:00-15:00\82É\92c\91Ì\82²\82Æ\82É\8cÄ\82Î\82ê\82é\82Ì\82Å\83\8d\83}\83\93\83X\8aX\93¹\82Ö\82¢\82­\81B\81i\93P\8b\8e\82Í9/9 14:00-)
+\83x\83j\83A\81A\8ex\8e\9d\8bï\82ð\8e\9d\8eQ\81B
+\92S\93\96\8eÒ\93d\98b\94Ô\8d\86 09096760820
\ No newline at end of file
index e9b6485..bb18c86 100644 (file)
@@ -124,33 +124,37 @@ var EnemyCharacterClass = function(stage, args){
                }
        },
        draw: function(x, y){
-               EnemyCharacterClass.base.prototype.draw.apply(this, arguments);
-               this.ownerStage.mainContext.save();
-               //this.ownerStage.mainContext.fillStyle = "rgba(255,255,255,0.5)";
-               //this.ownerStage.mainContext.strokeStyle = "rgba(0, 0, 0, 1)";
-               //this.ownerStage.mainContext.font = "normal 12px sans-serif";
-               //drawText(this.ownerStage.mainContext, this.HP, x, y - 20);
-               
-               var backColor = "gray";
-               var thickness = 4;
-               var barWidth = this.max_HP;
-               if(barWidth < 16) barWidth = 16;
-               var barPerHP = this.HP / this.max_HP;
-               var color = "green";
-               
-               if(barPerHP < 0.2)
-               {
-                       var backColor = "red";
-               }else if(barPerHP < 0.4)
+               if(this.hurt > 0)
                {
-                       var backColor = "yellow";
+                       EnemyCharacterClass.base.prototype.draw.apply(this, arguments);
+                       this.ownerStage.mainContext.save();
+                       //this.ownerStage.mainContext.fillStyle = "rgba(255,255,255,0.5)";
+                       //this.ownerStage.mainContext.strokeStyle = "rgba(0, 0, 0, 1)";
+                       //this.ownerStage.mainContext.font = "normal 12px sans-serif";
+                       //drawText(this.ownerStage.mainContext, this.HP, x, y - 20);
+                       
+                       
+                       var backColor = "gray";
+                       var thickness = 4;
+                       var barWidth = this.max_HP;
+                       if(barWidth < 16) barWidth = 16;
+                       var barPerHP = this.HP / this.max_HP;
+                       var color = "green";
+                       
+                       if(barPerHP < 0.2)
+                       {
+                               var backColor = "red";
+                       }else if(barPerHP < 0.4)
+                       {
+                               var backColor = "yellow";
+                       }
+                       
+                       this.ownerStage.mainContext.fillStyle = backColor;
+                       this.ownerStage.mainContext.fillRect(x + (this.size.x - barWidth) / 2, y - thickness, barWidth, thickness);
+                       this.ownerStage.mainContext.fillStyle = color;
+                       this.ownerStage.mainContext.fillRect(x + (this.size.x - barWidth) / 2, y - thickness, barWidth * barPerHP, thickness);
+                       
+                       this.ownerStage.mainContext.restore();
                }
-               
-               this.ownerStage.mainContext.fillStyle = backColor;
-               this.ownerStage.mainContext.fillRect(x + (this.size.x - barWidth) / 2, y - thickness, barWidth, thickness);
-               this.ownerStage.mainContext.fillStyle = color;
-               this.ownerStage.mainContext.fillRect(x + (this.size.x - barWidth) / 2, y - thickness, barWidth * barPerHP, thickness);
-               
-               this.ownerStage.mainContext.restore();
        },
 });