• Content Count

  • Joined

  • Last visited

Everything posted by vohogames

  1. I wıll try ıt, thank you. update: tried and it seems it didnt work. There is something with the behaviour of samsung note5 default browser. It works a bit different than a normal ( like samsung s4 ) browser
  2. I have the same problem. in 2.1.3 version this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT; this.scale.setScreenSize(true); Now, i am trying to use latest 2.6.0 and this.game.scale.refresh(); doesnt work as expected. Any solution? -- solution removed html div id tag as explained above
  3. Hello, Here is the example of what you are asking for. http://phaser.io/examples/v2/animation/animation-events anim.onComplete.add(animationStopped, this); animationStopped is the function that is called when animation is completed.
  4. All of them are Phaser games Over 20mb are the Crosswalk edition. ClearBlocks and Animal Puzzle have simple effects ( like free fall for animations). I deployed non Crosswalk versions but these effects cannot work properly so i change them to crosswalk.
  5. Change your Phaser version to older ones.
  6. Its me again, hi! i deployed 3 applications to store, 2 of them are using Crosswalk. My games are very simple but the game runs really slow if i dont use Crosswalk. search for vohogames on googlestore
  7. Hi, I am also searching to way to do it. here is the starter link http://phaser.io/examples/v2/sprites/horizontal-crop#gv cp code for the link var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update : update });function preload() { game.load.image('trsi', 'assets/pics/trsipic1_lazur.jpg');}var pic1,pic2;var cropRect1, cropRect2;function create() { pic1 = game.add.image(0, 0, 'trsi'); pic2 = game.add.image(0, pic1.height/2+10, 'trsi'); //pic.anchor.setTo(0.5, 1); cropRect1 = new Phaser.Rectangle(0, 0, pic1.width , pic1.height/2); cropRect2 = new Phaser.Rectangle(0, pic2.height/2, pic2.width , pic2.height); // console.log(cropRect); // Here we'll tween the crop rect, from a width of zero to full width, and back again // var tween = game.add.tween(cropRect).to( { width: pic.width }, 3000, Phaser.Easing.Bounce.Out, false, 0, 1000, true); pic1.crop(cropRect1); pic2.crop(cropRect2); // tween.start();}function update () { //pic.updateCrop();}
  8. Hi Tuan, Here is the link. it may help. http://www.html5gamedevs.com/topic/18671-phaser-with-intel-xdk-sound-problem/
  9. interesting game On samsung s4, stock browser, everything seems fine. My high score is near 8 for flappy bird. on this game i made near 40 combo points, imho, its a bit easy.
  10. nice game but a bit difficult to play for me I would like to see any sample code. Can you point me some? Thank you.
  11. Once the game is instantiated, you can change states. Is it what you are asking for? as an example VohoGame.game = new Phaser.Game(VohoGame.gameOptions.gameWidth, VohoGame.gameOptions.gameHeight, Phaser.CANVAS, "gamecanvas"); VohoGame.game.state.add("Boot", VohoGame.Boot);VohoGame.game.state.add("Preload", VohoGame.Preload);VohoGame.game.state.add("GameTitle", VohoGame.GameTitle);VohoGame.game.state.add("GameStart", VohoGame.GameStart);VohoGame.game.state.add("GameOver", VohoGame.GameOver);VohoGame.game.state.add("GameSuccess", VohoGame.GameSuccess);/* Start the game with Boot state */VohoGame.game.state.start("Boot");
  12. More levels COMING SOON! nice game
  13. I think I have experienced the same problem. if you are using Crosswalk, dont use version 8-10, it has some problems. try to change crosswalk version.
  14. Hi to all again I have developed and published another game. I think the gameplay is unique, i havent seen any matching game using flying birds. Here is the advertisement free link http://oyna.oyuntt.com/kuslari-eslestir-hafiza-oyunu/oyna/ You can publish the game on your portal using <iframe id="playframe" width="660" height="850" src="http://oyna.oyuntt.com/matchingbirdiesv2/index.html" frameborder="0" scrolling="no"></iframe>I encourage you to make comment. All comments are welcome.
  15. Hi to all, I have reskinned of my 1010 square game using halloween items. Also, i added an animation to make gameplay a bit joyful. Here is the advertisement free link http://oyna.oyuntt.com/1010-halloween-blok-cadilar-bayrami/oyna/ You can publish the game on your portal using <iframe id="playframe" width="400" height="625" src="http://oyna.oyuntt.com/1010-Halloween/index.html" frameborder="0" scrolling="no"></iframe>I encourage you to make any comment. I tried to sell this game on codecanyon and its rejected. I have checked all games over there and imho this game has better graphics/gameplay. I cannot understand cc policy!
  16. Hi to all, I am developing small games and now I am skinning my 10square10 game (http://www.oyuntt.com/1010-blok-tetris/oyna/ ) using halloween theme. This is the list of items i need (*) - the skull is moving from left to right and when the row/column is cleared, it does again. - on main screen -- background lights on/off picture -- sound on/off picture - pause icon on game play screen - on pause screen -- home button -- continue button -- refresh button -- a few more changes according to designer;s view. I am open your suggestions and of course your price.
  17. @bymafmaf, it depends on your game. as i said before, i am no expert phaser but @drhayes pointed a direction using update. imho, update creates a cpu time ( i am not sure!) but you can encapsulate your API. if update is second based, i would try update. if update creates a cpu time + if i were you, i would try this, i would like to save cpu and break rules corrected code: startGame: function (pointer) { // show some fancy loader ! var user = KareApi.getUser(243536); }
  18. so you need a service ( like in angular) but i don't know how to do on game.
  19. nice game. i havent seen it on big publishers. Can I publish it on my website?
  20. hi again, lets try. i am no fan of online editors so here is. c/p your changed code. var userinfo ; // global variable startGame: function (pointer) { var user = KareApi.getUser(243536); //console.log(user.name); // undefined !!! // show some fancy loader ! } getUser: function(deviceID){ var xhr = new XMLHttpRequest(); xhr.open('POST', 'http://XXX/api/user/getUser'); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onload = function() { if (xhr.status === 200) { // in here we set global variable userInfo = JSON.parse(xhr.responseText); // stop showing some fancy screen or just state change this.state.start('Game'); } }; xhr.send(JSON.stringify({ deviceID: deviceID })); }
  21. reskinning my 10 square 10 game using halloween items. need some items, need more code. bring me a designer
  22. Hi, I am no expert at this point but you may try to modify your code due to asynchronous call or you sould try this xhr.open('POST', 'http://XXX/api/user/getUser' , false ); this false makes request synchronous, it blocks until it returns a message and console.log(user.name); gets the variable user
  23. over a decade i use visual studio (at work) at home, i am still insisting to use Notepad++