• Content count

  • Joined

  • Last visited

About NumbOfAthma

  • Rank
  • Birthday 02/02/1988

Contact Methods

  • Skype

Profile Information

  • Gender
  • Location
    Ploiesti, Romania
  • Interests
    Learning to build awesome games!

Recent Profile Visitors

304 profile views
  1. @Tom Atom Duuuuudee! Thank you very much for taking your time to write such a post! I really appreciated it! I'll give it a try and let you know how it works! Thank you again! You are awesome!
  2. Nice one, trying to build a game like this myself but I'm still struggling with the p2 :)) I was wondering how do you check the balance of the brick tower?
  3. Hi guys, Is there any way you can change the position of an emitter created with Particle Storm from (x,y) to (x1, y1) and then to (x2, y2)? Any ideas? --- Or how to destroy an emitter?
  4. Ummm I did it like this, it's ugly but it does the trick: // Deduct the width and height of the screen window.width = navigator.isCocoonJS ? window.innerWidth * window.dips: window.innerWidth; window.height = navigator.isCocoonJS ? window.innerHeight * window.dips: window.innerHeight; window.width = ~~width; window.height = ~~height; window.ratio = Math.round( (height / width) * 100) / 100; var game = new Phaser.Game(480, 800, Phaser.CANVAS); // --- Add states here window.onload = function() { var rw = Math.round(window.width / game.width * 100) / 100; var rh = Math.round(window.height / game.height * 100) / 100; var r = (rw <= rh) ? rw : rh; var actualGameWidth = ~~(r * game.width); var actualGameHeight = ~~(r * game.height); var paddingTB; paddingTB = ~~((window.height - 1 * actualGameHeight) / 2 / window.devicePixelRatio); var paddingLR; paddingLR = ~~((window.width - 1 * actualGameWidth) / 2 / window.devicePixelRatio); var canvas = document.querySelector('canvas'); = "absolute"; = paddingTB; = paddingTB; = paddingLR; = paddingLR; }
  5. @espace3d, thanks for the solution, I'll give it a try. @samme, I've tried many properties from the game, including scale.height. In the browser the value it's ok but in Cocoon doesn't have the same value as in the browser, it fallsback to the height used to instantiate the game
  6. Thank you, rich!
  7. Hey guys, I was wondering if Particle Storm can handle an atlas: I'm trying to port this: var emitter =, this.moon.y - ~~(this.moon.y * 0.5), 25); emitter.makeParticles("prefabs", ['present_0.png', 'present_1.png', 'present_2.png', 'present_3.png', 'present_4.png', 'present_5.png', 'present_6.png', 'present_7.png', 'present_8.png', 'present_9.png']); emitter.gravity = 200; emitter.start(true, 3500, null, 15); and from what I've seen until now there is only this setup in Particle Storm: var data = { lifespan: { min: 2000, max: 3000 }, image: ['flare_diamond', 'flare_point', 'flare_vertical'] }; Any ideas? Thank you!
  8. Yup, about I'm talking too. I got a portrait game and I cannot center it vertically. I've tried both of your suggestions... no success
  9. Thanks! But it only works in the browser, in Cocoon wrapper it does not work
  10. Or.... what to use to get the height of the game canvas AFTER it's been resized to fit the device screen.. I've looked on the game.canvas, game.context.canvas, game.scale properties... but nothing helpful... Any ideas?
  11. Hello guys, I'm struggling to vertically center my Phaser game inside Cocoon IO wrapper. In the browser it's all centered both horizontally and vertically but when I load it into Cocoon the game is aligned top. My setup: - html & body tags' height property is set to 100% - I don't have a div containing the canvas element, I let Phaser handle the creation of the canvas. - In the Boot state I use: this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.scale.pageAlignHorizontally = true; this.scale.pageAlignVertically = true; this.scale.refresh(); For some reason, though my screen is 1920 x 1080, and the canvas been displayed like this: <canvas width="480" height="800" style="display: block; touch-action: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 1080px; height: 1800px; cursor: inherit; margin-left: 0px; margin-top: 60px; margin-bottom: -60px;"></canvas> I end up in Cocoon with the game align to the top of the screen and the 120 extra pixels in the bottom and not distributed equally on the top and bottom of the game. Any advice on this? Thanks!
  12. [Bump] Any solution to this? I'm still getting "Not implemented createElement: video" in Cocoon even after I've made a Phaser custom build from which I've removed the video module. Any advice on this? Thanks! -------- I even removed the audio from the game... still no luck...
  13. Great game! You really put some effort into it! I was wondering how did you managed to restrict de movement when you draw the letter. -------------- PS: It's a good example of excelent game animation!
  14. Oops!... Thanks a lot, I've edited it the post! Merry Christmas!
  15. Hello! My second Phaser game, Gift Rush, has hit the Google Play and Amazon Appstore (coming soon on Apple Appstore)! The game is FREE and does NOT have any ADS... it's a Christmas game after all. The plot: Grinch has stolen all of the Christmas presents. Follow the trail of presents and collect as many as you can to save Christmas. Instructions: Tap the screen to change platforms, collect presents & power ups and avoid icicles. Google Play: Amazon Appstore: Hope you guys enjoy it... and Marry Christmas!