• Content Count

  • Joined

  • Last visited

About obiot

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
  • Location

Recent Profile Visitors

2,070 profile views
  1. obiot

    Can't Add Image Layer from PNG

    Can u share your game.resource list to verify if background is the actual asset name ? (As opposed to the filename)
  2. well that's an interesting one too, I was just looking at the code and indeed there is nothing to manage key status when the window/browser is losing status. So two solutions to that : you can disable the pauseOnBlur feature (true by default), which means the game won't pause when the window will loose focus, and that the keys will properly "behave" or (and this is what I would do in melonJS to fix this), is to register on the state pause or resume event (that are called when the window is losing/regaining focus) and simulate the required keydown or registered keys using `triggerKeyEvent(YOU_KEY, false) these are more workaround, but at least they won't conflict with a later fix in melonJS
  3. glad that you found it, thank you for the analysis and feedback, I guess a way to prevent this kind of error would be to throw an exception if the loader ecounters assets with duplicate/similar names. what do you think ?
  4. Hi, to help me track down the issue, or at least allow me to confirm it's still present in the current 6.2 version, could you define the most minimal example that reproduce the issue and share it ? you know that if this is a bug I'll fix it on the coming 6.2 version though.... so unless you want to back port it to the 5.1 version, you will have to upgrade thanks !
  5. obiot

    hidden GUI objects slow game render?

    @can2nac FYI I know that since you changed the way you implemented the UI, but yet I did the changes we discussed in the thread. how is your game progressing by the way ?
  6. obiot

    frame has no offset property

    oh ok good you did then ! what exactly was the issue ? (I fail to see how it was triggering the above exception) Else you should really upgrade to at least 6.1 (6.2 is not yet publicly released), tons of improvements since 5.1 and except for the utils.xxxx functions, there are no major breaking changes
  7. obiot

    melonJS 6.1.0 release

    Good catch on this one, was probably hanging there since version 5.x !
  8. added to master :
  9. there is no really an event for it currently, but you can check for the inViewport value to detect if the object is currently in the viewport or not. definitely a good addition though, created a ticket to keep it under our radar :
  10. obiot

    melonJS 6.1.0 release

    Hi fellow melon lovers Here is a 6.1.0 version, beside others small improvements, this version focus mainly on the issue(s) raised with the 6.0.0 version around Linux and our WebGL Renderer (as you can read it here). Download link : Full changelog : Audio : latest audio core update (2.0.15) Core : new linux detection flag under me.device Renderer : now systematically warn when using non POT texture in both Canvas and WebGL mode Sprite : new function to allow reversing a given or current animation TMX : support for the Tiled 1.2 beta JSON property format (backward compatible with previous 1.1 version) CanvasRenderer : fix drawImage sub-pixel rendering in Canvas mode when using the short notation (2 or 4 parameters) WebGLRenderer : only throw an exception (e.g. stop execution) when using repeat/wrap mode with a non POT texture WebGLRenderer : properly fallback to Canvas mode in AUTO and WEBGL mode when failing at creating a valid WebGL Context Also, there are no API breaking changes, so purely a "drop-in" replacement ! Cheers, -- the melonJS Team
  11. obiot

    Disable respawn on leaving viewport

    Hi, did you progress or find out what is happening ?
  12. obiot

    Disable respawn on leaving viewport

    2 more things : * first your game is really looking awesome so far * in the latest 6.0 version of melonJS we added a camera damping features that really help in smoothing camera movements : // set the camera to follow this renderable on both axis, and enable damping,, 0.1);
  13. obiot

    Disable respawn on leaving viewport

    well honestly.... I don't know..... I really don't see what would be causing that in melonJS. would you mind setting a breakpoint on the loadLevel function so that we can see the call tree ?
  14. obiot

    Using sprite animations with particles

    I feel like I'm only the bearer of bad news recently, but for now the particle emitter only accept image .... that should not be that hard to add though, basically just check what is passed as parameter and either just draw it if an image, or call the update/xxx-draw method of the sprite from the corresponding methods, if a renderable is passed.
  15. obiot

    registerPointerEvent not emitting in 5.1

    FYI, added it in the boilerplate :