From 5a0e0bdb302a9a78bff9ec4d7ff975da6f8c737f Mon Sep 17 00:00:00 2001 From: karihei Date: Tue, 31 Dec 2013 00:24:20 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BB=AE=E3=82=BF=E3=82=A4=E3=83=88?= =?UTF-8?q?=E3=83=AB=E3=83=A9=E3=83=99=E3=83=AB=E3=82=92=E8=A8=AD=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/src/scene/login.js | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/public/js/src/scene/login.js b/public/js/src/scene/login.js index 8426e7f..0c578f7 100644 --- a/public/js/src/scene/login.js +++ b/public/js/src/scene/login.js @@ -14,11 +14,15 @@ var LoginLayer = cc.Layer.extend({ onEnter: function() { this._super(); var size = cc.Director.getInstance().getWinSize(); + var title = bq.Label.createWithShadow('- Beam Quest -', 50); + title.setPosition(cc.p(size.width/2, size.height - 100)); + this.addChild(title); + var label = bq.Label.create('キャラクター名を入力してください。', 16); label.setPosition(cc.p(size.width/2, size.height/2 + 50)); this.addChild(label); - var nameField = cc.TextFieldTTF.create(this.defaultPlaceHolder_, 'pixelMplus', 16); + var nameField = cc.TextFieldTTF.create(this.defaultPlaceHolder_, 'pixelMplus', 32); this.addChild(nameField); nameField.setPosition(cc.p(size.width / 2, size.height / 2)); this.nameField_ = nameField; @@ -95,20 +99,6 @@ var LoginLayer = cc.Layer.extend({ this.addChild(failedLabel); }, - /** - * 入力されたUserIDが正しいか判定する - * @param {string} userId - * @return {boolean} - * @private - */ - isValidUserId_: function(userId) { - var valid = true; - // TODO: 条件増やす - valid = (userId.length > 0); - - return valid; - }, - /** * パスワードの代わりにランダムハッシュを使う * @return {string} From 1103f12c3d6b266f0ec738b7ce7c4cbf49520182 Mon Sep 17 00:00:00 2001 From: karihei Date: Tue, 31 Dec 2013 16:20:29 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E9=80=A3=E6=89=93=E3=82=AF=E3=83=AA?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=99=E3=82=8B=E3=81=A8=E3=83=81=E3=83=A3?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89=E3=82=A6?= =?UTF-8?q?=E3=81=82=E3=81=9F=E3=82=8A=E3=81=8C=E9=81=B8=E6=8A=9E=E7=8A=B6?= =?UTF-8?q?=E6=85=8B=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A1=E3=82=83=E3=81=86?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/layout.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/css/layout.css b/public/css/layout.css index fcf4491..b8dbb45 100644 --- a/public/css/layout.css +++ b/public/css/layout.css @@ -9,6 +9,9 @@ width: 800px; height: 450px; margin: 0px auto; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; } .bq-menu { From a69dd7dd0e99070cb5c026ce1f46b9a7fd4e069b Mon Sep 17 00:00:00 2001 From: karihei Date: Tue, 31 Dec 2013 17:43:56 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=82=A6=E3=82=A3=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=82=A6=E3=82=B5=E3=82=A4=E3=82=BA=E3=82=921040x680=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=80=82=E3=83=95=E3=83=AC=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=83=AC=E3=83=BC=E3=83=88=E3=82=9230fps=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/cocos2d.js | 2 +- public/css/layout.css | 4 ++-- public/js/src/entity/player.js | 2 +- public/js/src/entityManager.js | 2 +- public/main.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/cocos2d.js b/public/cocos2d.js index cc1b1d6..f426b06 100644 --- a/public/cocos2d.js +++ b/public/cocos2d.js @@ -5,7 +5,7 @@ box2d:false, chipmunk:false, showFPS:true, - frameRate:60, + frameRate:30, loadExtension:false, renderMode:0, //Choose of RenderMode: 0(default), 1(Canvas only), 2(WebGL only) tag:'gameCanvas', //the dom element to run cocos2d on diff --git a/public/css/layout.css b/public/css/layout.css index b8dbb45..67d6e8e 100644 --- a/public/css/layout.css +++ b/public/css/layout.css @@ -6,8 +6,8 @@ #bq-canvas-container { position: relative; overflow: hidden; - width: 800px; - height: 450px; + width: 1040px; + height: 680px; margin: 0px auto; -moz-user-select: none; -khtml-user-select: none; diff --git a/public/js/src/entity/player.js b/public/js/src/entity/player.js index df49d39..e08cc42 100644 --- a/public/js/src/entity/player.js +++ b/public/js/src/entity/player.js @@ -7,7 +7,7 @@ * @type {*|void|Object|Function} */ var Player = Entity.extend({ - moveSpeed: 2, // 1frameの移動量(px) + moveSpeed: 4, // 1frameの移動量(px) animationSpeed:0.15, // delay on animation direction: EntityState.Direction.bottom, // 向いている方向 state:EntityState.Mode.stop, // 動いてるとか止まってるとかの状態 diff --git a/public/js/src/entityManager.js b/public/js/src/entityManager.js index af0cac4..6dd2f4f 100644 --- a/public/js/src/entityManager.js +++ b/public/js/src/entityManager.js @@ -47,7 +47,7 @@ bq.EntityManager = cc.Class.extend({ if (!this.otherPlayers_[moveData.userId]) { this.createOtherPlayer(moveData); } else { - var act = cc.MoveTo.create(0.1, cc.p(moveData.x, moveData.y)); + var act = cc.MoveTo.create(0.2, cc.p(moveData.x, moveData.y)); var otherPlayer = this.otherPlayers_[moveData.userId]; otherPlayer.runAction(act); } diff --git a/public/main.js b/public/main.js index 5e33ece..552daf0 100644 --- a/public/main.js +++ b/public/main.js @@ -18,8 +18,8 @@ var cocos2dApp = cc.Application.extend({ var director = cc.Director.getInstance(); // cc.EGLView.getInstance()._adjustSizeToBrowser(); - //cc.EGLView.getInstance()._resizeWithBrowserSize(true); - //cc.EGLView.getInstance().setDesignResolutionSize(640, 450, cc.RESOLUTION_POLICY.SHOW_ALL); + // cc.EGLView.getInstance()._resizeWithBrowserSize(true); + cc.EGLView.getInstance().setDesignResolutionSize(1040, 680, cc.RESOLUTION_POLICY.SHOW_ALL); // turn on display FPS director.setDisplayStats(this.config['showFPS']);