Commit 1380672f authored by 18신대성's avatar 18신대성 Committed by 16이지혜

Z index 설정함. 자세한 내용은 위키/프밍정보 체크할것

parent de3f433d
......@@ -17,10 +17,10 @@ BackGround.drawBrain = function(scene)
{
brains = scene.physics.add.staticGroup();
brains.create(400, 500, 'brainGround0').setScale(1.5).refreshBody();
brains.create(400, 100, 'brainGround0').setScale(1.5).refreshBody();
brains.create(100, 300, 'brainGround1').setScale(0.5).refreshBody();
brains.create(700, 300, 'brainGround1').setScale(0.5).refreshBody();
brains.create(400, 500, 'brainGround0').setScale(1.5).setDepth(1).refreshBody();
brains.create(400, 100, 'brainGround0').setScale(1.5).setDepth(1).refreshBody();
brains.create(100, 300, 'brainGround1').setScale(0.5).setDepth(1).refreshBody();
brains.create(700, 300, 'brainGround1').setScale(0.5).setDepth(1).refreshBody();
brains.immovable = true;
......
......@@ -260,8 +260,8 @@ Input.inputField =
{
generate: function(scene)
{
this.background = scene.add.sprite(400, 500, 'inputFieldBackground').setScale(0.2);
this.text = scene.add.text(400, 500, "안녕하세요", {font: '15pt 궁서'}).setOrigin(0.5, 0.5).setColor('#000000');
this.background = scene.add.sprite(400, 500, 'inputFieldBackground').setScale(0.2).setDepth(10);
this.text = scene.add.text(400, 500, "안녕하세요", {font: '15pt 궁서'}).setOrigin(0.5, 0.5).setColor('#000000').setDepth(10);
scene.input.keyboard.on('keyup', function() {Input.pressCount--; Input.justPressed = ''})
scene.input.keyboard.on('keydown-SHIFT', function() {Input.isShifted = true});
......
......@@ -56,7 +56,7 @@ WordSpace.attackGauge =
};
this.currentCycle = scene.time.addEvent(option);
this.text = scene.add.text(100,100,'게이지: ' + this.value.toFixed(1)).setColor('#ffffff');
this.text = scene.add.text(100,100,'게이지: ' + this.value.toFixed(1)).setColor('#ffffff').setDepth(10);
},
pauseCycle: function(bool) {this.currentCycle.paused = bool;}
// showValue: 아래쪽에 바의 길이로 게이지 표시, 색으로 게이지의 강도 표현
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment