Commit 0a5b6941 authored by 18신대성's avatar 18신대성 Committed by 16이지혜

inputfield 보이게 함, Input WIP

parent f3997713
......@@ -4,7 +4,8 @@
<meta charset="utf-8"/>
<script src="/socket.io/socket.io.js"></script>
<script src="js/phaser.js"></script>
<script src="js/Background.js"></script>
<script src="js/Background.js"></script>]
<script src="js/Input.js"></script>
<script src="js/WordSpace.js"></script>
<script src="js/WordObject.js"></script>
</head>
......
......@@ -15,10 +15,13 @@ Input.convert = function()
Input.inputField =
{
background: null,
text: null,
init: function()
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');
},
loadImage: function(scene)
{
scene.load.image('inputFieldBackground', 'assets/inputFieldBackground.png');
}
}
\ No newline at end of file
......@@ -23,11 +23,13 @@ function preload()
{
BackGround.loadImage(this);
WordSpace.loadImage(this);
Input.inputField.loadImage(this);
}
function create()
{
BackGround.drawBrain(this);
Input.inputField.generate(this);
WordSpace.wordPhysicsGroup = this.physics.add.group();
WordSpace.resetCycle(this, 2000);
}
......
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