Jump to content

Tom Atom

  • Content Count

  • Joined

  • Last visited

  • Days Won


Reputation Activity

  1. Like
    Tom Atom got a reaction from totor in Annihilate - puzzle game made with Phaser   
    @totor: thanks! It is our first HTML5 game, so we wanted it as simple as possible. It is simplified version of our Android/iOS game Fruit Dating.
     The levels are generated proceduraly in our special level editor. For Annihilate we decreased the difficulty rate to make it accessible for wide range of casual players. I wrote an article on the level generation on my blog: http://sbcgamesdev.blogspot.cz/2014/10/procedural-generation-of-puzzle-game.html
  2. Like
    Tom Atom got a reaction from Riddik in samsung s3 stock browser problem (double screen)   
    Hi, today I had also problem with strange stretching which appeared only in Stock browser. I found this post here at forum: http://www.html5gamedevs.com/topic/3282-android-doesnt-load-atlas-and-sound/
    See turboboing's answer. It worked for me. It seems that Stock browser (at least on on S3 and Tab3) has some problem with WebGL. Forcing to canvas solved it.
  3. Like
    Tom Atom reacted to turboboing in Android doesn't load atlas and sound?   
    I also had problems with the stock browser on the Galaxy Tab 3, and like you said using canvas fixed it.
    So I added this hacky fix for now.
    var ua = navigator.userAgent; var bAndroid: boolean = (/Android/.test(ua)); var bChrome: boolean = (/Chrome/.test(ua)); if (bAndroid && !bChrome )   super(width, height, Phaser.CANVAS, 'game', null); else   super(width, height, Phaser.AUTO, 'game', null);
  4. Like
    Tom Atom reacted to pxam in Tween onStart callback problem in Phaser 2.2.1 (works in 2.0.4)   
    onStart is dispatched on tween.start() or in your case directly via the autostart parameter before the onStart handler was added.
    in current versions it's currently more like an 'onTweenStartWithoutDelay' then an 'on(tween)Start' event
    //create the tween without delayvar tween = this.add.tween(this.sprite).to({x: 100, y: 200}, 2000, Phaser.Easing.Quadratic.InOut, false, 0);//add handlerstween.onStart.add(function(){ console.log('start');}, this);tween.onComplete.add(function(){ console.log('complete');}, this);//delay the tween startthis.time.events.add(Phaser.Timer.SECOND * 2, function(){ tween.start();}, this);
  5. Like
    Tom Atom got a reaction from pranadevil in why does my game lagging when played on firefox?   
    I think there is problem in Firefox itself. Even the simpliest thing is running 40-44 FPS for me. While it runs 60 FPS in Chrome and IE (and iPad Safari too).
  6. Like
    Tom Atom got a reaction from clark in How to retrieve all atlasXML frames ?   
    Hi, in my opinion it does not matter whether the atlas is loaded from XML or JSON. Let's say you atlas has name 'Atlas'. Onece it is loaded you can get number of frames like this:
    var frameCount: number = this.cache.getFrameCount('Atlas');  If you need individual frames then do this:
    var frame: Phaser.Frame = this.cache.getFrameByName('Atlas', 'frame_name');  This will tell you which index in atlas is previously asked frame or what is its width and height:
    var baseIndex: number = frame.index;var width: number = frame.width;var height: number = frame.height;
  7. Like
    Tom Atom got a reaction from clark in Candy Crush on Phaser?   
    This is not HTML5 tutorial, but Match-3 genere is explained here deep and very well: http://www.raywenderlich.com/66877/how-to-make-a-game-like-candy-crush-part-1
  • Create New...