OSDN Git Service

Merge branch 'master' of https://scm.sourceforge.jp/gitroot/h58pcdgame/GameScriptCore...
[h58pcdgame/GameScriptCoreLibrary.git] / www / corelib / classes / FreeItemClass.js
index 1262def..372290e 100644 (file)
@@ -16,6 +16,8 @@ var FreeItemClass = function(stage, args){
        //\83A\83C\83e\83\80\82ð\8eæ\93¾\82Å\82«\82é\89ñ\90\94\81B-1\82Å\96³\8cÀ
        this.times = -1;
        
+       this.size = new Point2D(32, 32);
+       
        //\83A\83C\83e\83\80\82ð\8eæ\93¾\82µ\82½\82Æ\82«\82É\8cÄ\82Î\82ê\82é\83R\81[\83\8b\83o\83b\83N\81B\88ø\90\94\82É\83A\83^\83b\83N\82µ\82Ä\82«\82½\83I\83u\83W\83F\83N\83g\82ª\8ew\92è\82³\82ê\82é
        //null\82Å\89½\82à\82µ\82È\82¢\83A\83C\83e\83\80\82É\82È\82é
        this.callback = args[1];
@@ -44,6 +46,7 @@ var FreeItemClass = function(stage, args){
                        this.ownerStage.mainContext.drawImage(this.image, x, y, this.size.x, this.size.y);
                        this.ownerStage.mainContext.globalAlpha = 1.0;
                }
+               /*
                if(this.debugMode && this.times > 0){
                        //\8ec\82è\8eæ\93¾\89ñ\90\94\82ð\95\\8e¦
                        this.ownerStage.mainContext.save();
@@ -53,7 +56,9 @@ var FreeItemClass = function(stage, args){
                        drawText(this.ownerStage.mainContext, this.times, x, y - 20);
                        this.ownerStage.mainContext.restore();
                }
+               */
                var tickCount = this.ownerStage.manager.tickCount;
+               /*
                if(this.debugMode && ((tickCount - this.lastTouchedTickCount)< this.touchInterval)){
                        //\8eæ\93¾\82Å\82«\82é\82æ\82¤\82É\82È\82é\82Ü\82Å\82Ì\8ec\82è\8e\9e\8aÔ\82ð\95\\8e¦
                        this.ownerStage.mainContext.save();
@@ -63,6 +68,7 @@ var FreeItemClass = function(stage, args){
                        drawText(this.ownerStage.mainContext, this.touchInterval - (tickCount - this.lastTouchedTickCount), x, y - 32);
                        this.ownerStage.mainContext.restore();
                }
+               */
        },
        debugDraw: function(x, y){
                //\8fÕ\93Ë\83}\83b\83v\82É\95`\89æ