OwlCyberSecurity - MANAGER
Edit File: titlescreen.js
var titleScreen = function(game) { GameTitle = "ben-swolo-dress-up"; } titleScreen.prototype = { create: function() { CenterX = this.world.centerX; CenterY = this.world.centerY; Cover = this.add.image(0,0,"cover"); //Ref = this.add.image(0,0,"ref"); Play_Btn = this.add.button(231,435,"play_btn",function(){},this,1,0,2); Play_Btn.anchor.setTo(0.5,0.5); Play_Btn.events.onInputUp.add(function(){this.state.start("DressUp");},this); Logo = this.add.button(232,561,"logo",function() { window.open("http://www.dolldivine.com/?utm_source="+ GameTitle + "&utm_medium=html5game","_blank"); },this,2,0,1); Logo.anchor.setTo(0.5,0.5); PosTextBool = false; /*PosTextBool = true; PosText = this.add.text(870,110,"Hello",{font:"40px Arial",fill:"#ffffff"}); PosText.anchor.setTo(0.5,0.5); PosText.setShadow(3,3,"rgba(0,0,0,0.5)",2); debug_fnc(PosText);*/ }, update: function() { //this.sound.mute = true; //this.state.start("DressUp"); }, } function debug_fnc(Obj) { /*this.input.onDown.add(function() { Obj.animations.play("Tool8Anim"); },this);*/ Obj.inputEnabled = true; Obj.input.enableDrag(false); Obj.events.onInputUp.add(function() { if(PosTextBool){PosText.text = Obj.x + "\n" + Obj.y;} else{console.log(Obj.x + "\n" + Obj.y);} },this); }