stupot

Members
  • Content count

    230
  • Joined

  • Last visited

About stupot

  • Rank
    Advanced Member

Recent Profile Visitors

2,115 profile views
  1. stupot

    Phaser code obfuscation

    I've used the closure compiler in a phaser project with maximum optimisations, the output was smaller and faster than uglify2. But it took a lot of work to manually create and maintain all the required externs, I don't do this anymore becasue of this, mobiles have become much more powerful to compensate. Phaser has a lot functions/properties created programatically that cannot automatically be scanned for, so debugging the optimised code back to the source to see what else whould be extern'd was a nightmare. Luckily I only used a minimal portion of Phaser so didn't have to do a full job on it.
  2. stupot

    Particle Editor for Particlestorm

    Found an apparent mac download here: http://www.didgin.com/downloads/particle-editor-for-phaser
  3. stupot

    ScaleManager.SHOW_ALL

    there's a project plan here: https://prod.teamgantt.com/gantt/schedule/?ids=843041&public_keys=eXjoWRdx8pM7&zoom=d100&font_size=11&estimated_hours=0&assigned_resources=0&percent_complete=0&documents=0&comments=0&col_width=255&menu_view=0&resource_filter=0&name_in_bar=0&name_next_to_bar=1&resource_names=0#user=&company=&custom=&date_filter=&hide_completed=false&color_filter=&ids=843041 according to this it's currently (possibly) in development
  4. stupot

    image is not loading

    Hi akwa6971, The image hasn't loaded by the sounds of it, check your console for error messages. Is the image file name/path correct, is the upper/lower case correct? Also. this post should be in the main Phaser thread, rather than this Phaser3-Beta thread - you'll get more help there.
  5. stupot

    What about Transform/Parent?

    Thanks @rich sounds like a good plan, that's given me some food for thought.
  6. stupot

    What about Transform/Parent?

    Looks like I'm going to have scratch a little deeper than the surface, conceptualy Phaser3 looks to be quite different to Phaser2. I've a few different ideas about how parent transforms could be implemented and applied only to required objects but I need to get my head around the new P3 internals first. Any pointers or suggestions you might would be useful now.
  7. stupot

    Extending Phaser.GameObjects.Sprite (ES6)

    Removing always-there pre-post updating/rendering/etc is great for performance but will slightly increase the difficulty of using Phaser whether an alternative is native or pure user implementation. I'd like to see a native solution to this otherwise the forums will be filled with people asking how to hook in an update function and getting several differing answers. It's common enough functionality to expect something built in to standardise the way people do it. Looking at UpdateList.js now though reminds me of several problems I've had in the past where the triggering criterea was hardcoded into it, ie here it depends on gameObject.active. How about a more general callback processor - like a simple event/subscriber model? The system would have several built-in reserved events ("preUpdate", "postUpdate", "preRender" etc) which any object could subscribe to, along with any custom user events. Possibly the system could have the ability for subscriptions to also register the triggering criterea, maybe by a list of properties with boolean values. Eitherway, always calling the callback function would provide the ultimate user control.
  8. stupot

    Phaser 3 + ES6 + Webpack bootstrap project

    I was just running through the readme.md and it says you can do that, though I do realise this was cloned from the PhaserV2 version which says exactly the same. I did fix it up myself because I wanted to compare the output and play with the uglify compress options but my fix (bodge) was for my purposes only rather than a generic one so didn't try to submit it.
  9. stupot

    What about Transform/Parent?

    ok, got it. The biggest speed optimisations I made to a version of Phaser I used was to bypass a lot of repeated scenegraph traversal for the functionality I didn't require, so I can see why this has been done, but it'll leave a functionality hole for many. Sounds like the skelly-bone classes are what I'm looking for, not a native/global performance hog, but something available when needed, any idea when dev on these begins?
  10. stupot

    Reload Example Button Not Working

    I don't think this has been working for a while. There used to be a rocket button for 'run' but this was also problematic. The examples heve never 'all' worked and never will, probably a little frustrating for newcomers, it should have a warning at the top really. I think the sandbox was created partly in reason to pickup where the examples were failing. It's usually quite easy to port an example to the sandbox, eg https://phaser.io/sandbox/edit/mwhvynxr In preload(), just has to add the baseURL and crossOrigin then modify the asset paths accordingly (remove the leading assets/), so you'll have the same example running that you can modify and run and save for later. Not sure if there's anyway to target a specific version of Phaser though.
  11. stupot

    What about Transform/Parent?

    Hi, Just had my 1sy proper quick play with with Phaser3. I notice that the traditional scenegraph approach for transform inheritance was dropped earlier in the year and now runs with single flat display list. Is that right or have I got the wrong end of the stick? If this is right, then how do we now have a child object whose transform is offset from a parent object? Cheers, Stu
  12. stupot

    Phaser 3 + ES6 + Webpack bootstrap project

    you'll need to fix up the webpack.production.config.js to be able to run 'npm run deploy'
  13. stupot

    Spritesheet display glitch with subpixel movement

    Hi Tangaroa, If an image coordinates aren't whole integer values then it can't be drawn to the screen with exact pixel mapping, the renderer may have to sample outside the source pixels which is where you sometimes see a little bit of the adjacent image ("edge pixels from the catcher's net"). If you want to keep your movement at += 5.5 then add some blank space to separate each cell of your spritesheet (look into texture atlases and the texturepacker app, this makes doing this easy). This will also help with this problem showing during scaling. Or change your movement +- to whole integer values so there are no 0.5's being added to the coords.
  14. Phaser doesn't recreate any gfx, it simply takes into account any trimming when calculating the render matrix.
  15. stupot

    Phaser text auto resolution broken?

    Not sure exactly what you mean by 'automatically adjusting'. But the example you referenced on a retina display will show a nice crisp 'High DPI Text' and a fuzzier 'Low DPI Text'. The default resolution is set to window.devicePixelRatio in the game config (=2 on retina display). The overall crispness will depend on the resolution setting and the amount of canvas scaling, nothing is automatic you have to set things how you want them.