rich

Administrators
  • Content Count

    6484
  • Joined

  • Last visited

  • Days Won

    309

Reputation Activity

  1. Like
    rich got a reaction from mazoku in What would you recomend to replace Signals?   
    I just found it amusing that the original post was asking what to use instead of Signals in v3 (the answer is, of course, Events), and then gave an example of something a Signal couldn't ever do anyway.
    The biggest issue is that web devs lead almost exclusively asynchronous development lives. The overwhelming majority of your code and practices are honed around this, and there are so many libs out there to help with it. Which makes perfect sense, it's how the web itself works after all. Look at Promises, created specifically as a proxy to an as-yet-unknown value. A very common occurrence in web apps.
    In a game, this is almost never the case though. Very rarely do you ever have to wait for the value, it is nearly always calculated instantly (or should be) or available elsewhere in memory. So introducing an artificial async jump into this value fetch is a really backward step. It's the same with data streams too. Unless you are genuinely fetching remote data all you've actually managed to do is add overhead to a situation that didn't need it.
    The absolute shortest possible path for your data is the best. Retrieved in the fewest jumps possible, with minimal or no branching, invocations or creation of un-necessary objects (which includes anonymous functions, those wonderful little bundles of gc bait). This goes against everything that is standard for a web app. But you're not building a web app.
  2. Like
    rich got a reaction from jdnichollsc in Phaser & SVG Files   
    Wow, I never knew that would work. I may experiment supporting loading SVG files then They would have to render to bitmaps of course, as the game itself cannot (and should not) run in SVG, but at least it would let you load and use the assets.
  3. Like
    rich got a reaction from jdnichollsc in Loading image dynamically   
    Yes, you can load files at any time, even while an active load is running.
    Take a look at the examples here: http://labs.phaser.io/index.html?dir=loader/loader events/&q=
    The 'Start Loader Manually' one is probably the most relevant.
  4. Like
    rich got a reaction from Electrk in What would you recomend to replace Signals?   
    One day I really ought to write an article about what's good for a web app is almost never good for a game loop.
  5. Like
    rich got a reaction from msanatan in Prevent game stopping on tab switch   
    There’s nothing you can do. The browser halts Phaser, it doesn’t do it itself.
    You ought to pause the game fully if they switch tab and resume when they come back. If this is an IO game and you want it to not pause then you’ll have to work out for yourself how to pause and resume in a seamless way, because the browser is going to halt phaser regardless.
  6. Like
    rich got a reaction from AhmedElyamani in Collider in group does not work   
    Don't add the collider inside the socket function, or it will create a brand new collider ever time that function is called, which I'm pretty sure is not what you wanted.
    Instead, try and get it working without using a Socket connection at all - do the bombs work locally? If so, I think it's likely just a scope issue.
  7. Like
    rich got a reaction from viveketic in Sprite vs Image   
    You can use animations on Images, the docs need updating. The difference between an Image and Sprite is quite minor now, it used to be a lot more noticeable when they were first implemented, but not really any longer. They're mostly kept for legacy reasons. Even I tend to just use Sprites only now.
  8. Like
    rich got a reaction from TheBoneJarmer in Forestry Games are illegally selling HTML5 games - check to see if yours are in their shop   
    I'm now aware of several companies taking legal action against them.
    Sadly, I suspect all they will do is pull the site, "rebrand it" and put it up under a new name.
    People like this are the scum of the earth.
  9. Confused
    rich got a reaction from jonforum in Forestry Games are illegally selling HTML5 games - check to see if yours are in their shop   
    Hi all,
    If you produce HTML5 games for media clients, or have released them yourselves, then you may want check they haven't been ripped off and are now illegally for sale by these little shits:
    https://shop.forestrygames.com/
    (I link to their site only so you can hopefully contact your clients and issue DMCAs against them)
    They even have the nerve to slightly change game titles and logos, so they don't look completely stolen, yet they are.
    Cheers,
    Rich
  10. Sad
    rich got a reaction from mentuat in Forestry Games are illegally selling HTML5 games - check to see if yours are in their shop   
    Hi all,
    If you produce HTML5 games for media clients, or have released them yourselves, then you may want check they haven't been ripped off and are now illegally for sale by these little shits:
    https://shop.forestrygames.com/
    (I link to their site only so you can hopefully contact your clients and issue DMCAs against them)
    They even have the nerve to slightly change game titles and logos, so they don't look completely stolen, yet they are.
    Cheers,
    Rich
  11. Thanks
    rich got a reaction from b10b in Forestry Games are illegally selling HTML5 games - check to see if yours are in their shop   
    Hi all,
    If you produce HTML5 games for media clients, or have released them yourselves, then you may want check they haven't been ripped off and are now illegally for sale by these little shits:
    https://shop.forestrygames.com/
    (I link to their site only so you can hopefully contact your clients and issue DMCAs against them)
    They even have the nerve to slightly change game titles and logos, so they don't look completely stolen, yet they are.
    Cheers,
    Rich
  12. Thanks
    rich got a reaction from Alexalten in Phaser Camera Won't Respond At All!   
    That is how you move the camera, but you have to have given it a bounds first, otherwise it has no-where to go!
    game.world.setBounds(0, 0, 2000, 2000);  
  13. Thanks
    rich got a reaction from spinnerbox in Phaser docs on Github   
    Phaser 3 repo is at https://github.com/photonstorm/phaser
    Phaser 3 Docs are at https://github.com/photonstorm/phaser3-docs
    If you clone the repo, the docs are in the 'docs' folder.
    eslintignore is nothing to do with docs. It's to do with what gets lint checked. However, there is no eslint file in the docs repo. There's also no 'npm build' command either,  so you were looking in a different repo.
    Phaser 2 repo is at https://github.com/photonstorm/phaser-ce
    Phaser 2 docs are in the docs folder of that repo.
  14. Like
    rich got a reaction from MirroW in Why GameObjects dont have add child functionality?   
    There's nothing wrong with using Containers in Phaser 3. The example given by mazoku (a UI Button) is a perfect use-case for them. As are multi-part sprites, i.e. complex Game Objects. But if a Container has just a single child, that's when it doesn't usually make sense any more.
  15. Like
    rich got a reaction from FKL34TI5T5 in How does the .on('pointerdown') listener work? [Possible Bug]   
    Are the buttons positioned over the top of each other? Because a button with alpha zero is still a button that will receive pointer events.
    A `pointerup` event is not the same thing as a `pointerout` event and will not trigger an out state.
    `pointerupoutside` is for detecting pointer up events outside of the game canvas, not a button.
  16. Like
    rich got a reaction from plicatibu in Alexa and HTML 5 Games   
    Hi @Chelsea - I've also signed-up as it sounds very interesting! We are the developers of Phaser and I'd love to take a look at what would be involved to enable our game engine to work with the Alex platform directly.
  17. Haha
    rich got a reaction from plicatibu in In-Game Advertising for HTML5 games   
    Mochi for Flash? Which decade are you living in?
  18. Thanks
    rich got a reaction from gzai in Loading bar with scene files payload   
    Yes, sure. Usually, you'd use the payload for things like json files that the game needs, or plugins, or maybe some assets the preloader can use like a preload background and loading bar graphic. That kind of stuff.
    And then you use the proper Preloader to load the actual game assets.
  19. Thanks
    rich got a reaction from plicatibu in Welcome to the Facebook Instant Games forum   
    Hi all,
    I've created this sub-forum specifically for discussion about Facebook Instant Games. Use it to chat about the API, ask questions and post links to tutorials or code you've found useful.
    It doesn't matter what HTML5 game framework you're using (if any), but if you are using one, please say so in your post, so others can better help you. The FB API is the same regardless, but how you implement it is likely framework specific.
    This forum will be moderated by Facebook Instant Games staff where possible.
    Cheers,
    Rich
  20. Like
    rich got a reaction from quiphop in Sprite with .inputEnabled=true blocking other input   
    If doing an art package style thing then I would suggest using Input.addMoveCallback to get a smoother result than polling pointer coordinates in an update.
     
    Also the Input manager has a coordinate history feature built in btw (Input.recordPointerHistory) but I wouldn't use this for a drawing app personally.
  21. Like
    rich got a reaction from quiphop in Simple game - horrible performance on Android/CooconJS   
    Ok so when you use forceSingleUpdate you basically eliminate the delta timer inside Phaser. This means all physics will be using an 'assumed' dt value of 60fps. If you know your game can reach 60fps under Cocoon without any troubles, then it will be fine. Also if your game doesn't really use much or any Arcade Physics, you will be fine doing this too. P2 has its own physics timer, so it won't touch that.
     
    All that is likely to happen is that on really crappy devices that can't manage 60fps then the Arcade Physics calculations will likely be wrong. But like I said above, this might not matter. Depends on the game.
  22. Like
    rich got a reaction from jdnichollsc in Alexa and HTML 5 Games   
    Hi @Chelsea - I've also signed-up as it sounds very interesting! We are the developers of Phaser and I'd love to take a look at what would be involved to enable our game engine to work with the Alex platform directly.
  23. Confused
    rich got a reaction from jdnichollsc26 in forum problem - no emails for subscribed threads   
    Ahh. I have gone into the Admin area and re-enabled email notifications for you!
  24. Like
    rich got a reaction from Horizonicblue in Uploading screen shots should work again now   
    Hmm, moving server broke this feature, but I've enabled it again (along with SSL, which also broke for some reason).
    So now, you can upload things again.
     

  25. Thanks
    rich got a reaction from b10b in Uploading screen shots should work again now   
    Hmm, moving server broke this feature, but I've enabled it again (along with SSL, which also broke for some reason).
    So now, you can upload things again.