• Content Count

  • Joined

  • Last visited

About mwatt

  • Rank
    Advanced Member

Contact Methods

  • Website URL

Profile Information

  • Gender

Recent Profile Visitors

1620 profile views
  1. Matt, Thanks a bunch. I just took a quick look at Hammerjs and I liked what I saw. I'll have a look at what Phaser provides natively for swipe before I make my decision. However, I like the fact that the hammer people have a nice easy 300 ms click fix and I like the fact that the hammertime library seems to provide mouse or touch equivalents -contextually for the hardware. On the face of it, this appears to be what I was hoping for. Your comments on design are also appreciated and I concur.
  2. Hi all, In the past I've made do with detecting taps on sprites. I'm now looking into a game in which I might wish to use gestures, or do a mixture of detecting taps and other gestures. Ideally any mechanism that provided this for phone would do something analogous in a regular desktop browser that has no touch capability but uses mouse instead. Anyone care to make a recommendation? It could be that native Phase provides enough - but perhaps there is a really sweet add-in out there. If anyone has experience with solid, popular solutions I would appreciate the tip. Thank you, Mike
  3. Hi all, I'm seeing fonts display much smaller on Android devices than I am on Apple devices. I'm using Phaser and Phonegap. On Android, I add Crosswalk to the mix. Can anyone explain this and tell me the best way to deal with it?
  4. Thank you Rich. This answer is complete and unambiguous.
  5. Title pretty much says it all. I'm struggling (still) with my home grown solution for scaling my game at different resolutions. I don't want to go into the gory details, nor necessarily invite links to the similar (but different) solutions that other people have already been so kind as to post... Right now I am seeing odd behavior in the emulator for iPhone 6. It LOOKs like the scaling of a background image might be affecting the scaling of a subsequent image sprite placed atop said background. It's hard to tell because my solution is straining my brain and it's a bitch testing in in xcode environment on an underpowered Mac.
  6. Thanks for the response Raicuparta. Sadly, I'd want Leaderboard as well.
  7. I have recently begun thinking about Steam myself. It seems to me like this is might be the way to go: · Node-Webkit (Native apps in HTML/JavaScript on a runtime based on Chromium and node.js) - · Greenworks (Steam achievements functionality as well as Steam Authentication methods for JavaScript) - .... is that how you did it? ​
  8. Thanks for the input folks. I like Rich's approach and I'll give it a shot. To give a little more background, I have 3 pairs of background images that I want to fit to screen without letter boxing or distortion. There are three pairs because I am supporting 3 aspect ratios: 3:4, 9:16 and 10:16. I need device pixel size to initialize Phaser and to calc the aspect ratio to use. All of my images are quite large but are built to these three aspect ratios. I am using SHOW_ALL and also scaling down the background sprite to match the division of screen pixels / image pixels for each of the height and width. I use mainly device to pixel ratio (size plays a role above a certain threshold) to choose the other game image sizes. I have 1X, 2X and 3X versions of all of those. Naturally these sprites get scaled as well. This is working on desktop but I am getting oddness in the actual devices. I am suspecting that using window.screen dimensions is not cutting it, hence this post.
  9. I wish to be able to detect the size of a mobile screen within JavaScript, before creating the Phaser game object. I'm currently experiencing some issues in this area. I have seen a few different opinions posts and articles about the best way to do this. Some of these posts/articles claim that there is no one good way because of the proliferation of devices and platforms and the poor adherance to standards. A couple of obvious options come to mind: * window.screen.width and window.screen.height * window.innerWidth and window.innerHeight. (both of the above in window.onload) There are other tries using document or body properties. Or maybe something else I am unaware of. I suppose CSS Media Queries might be used to piece a solution together. What are the senior, most well-versed people doing out there? What works reliably for all platforms? If Rich is listening, what do YOU do Rich? Thanks in advance if you have a moment to give input. When I go to the wellspring of knowledge that is here, I almost never come away thirsty.
  10. You might be experiencing errors. Are you able to debug and view the console while running IE? IE, though much improved beginning with around version 9, still has many support issues with what is otherwise "standard" JavaScript/CSS. Out of interest, you might try running in the new Microsoft Edge browser which has pretty good compliance. You'll need Windows 10 do to that though.
  11. Just scanned this thread, didn't read it carefully. But I did see Android and performance issues. Somebody recommended Crosswalk. I can confirm that this helps tremendously. Apple is still faster, but Crosswalk on Android closes the gap to a large extent.
  12. If you are using Phonegap/Cordova, performance is pretty good on Safari. It's decent on Android if you use Phonegap/Cordova and throw in Intel's Crosswalk. Otherwise, there are a couple of different envelopes you can use to improve performance but you will have to tweak your code some to do that.
  13. Have you done any comparative performance analysis on your collision detection... say for a circle, vs. a simple square that one might code up? I do a not very complicated collision detection within my game in the Phaser update function, but I'd much rather use a circle. However, performance is extremely important in update....
  14. It has been claimed that Edge supports wav file format. I can't hear wav files play in my Phaser game when running in Edge though... Anybody else successful with this?