enpu

Members
  • Content count

    1,346
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by enpu

  1. enpu

    Essentials Flash Question

    https://www.panda2.io/plugins/essentials/docs/Sprite Callback function Check out the example project to see it in use.
  2. enpu

    Essentials Flash Question

    @Ninjadoodle I just added four new parameters to the flash function, which allows you to cut it from left, top, right and bottom: // Cut flash 100px from left and 50px from right sprite.flash(400, '#ff0000', null, 100, 0, 50, 0); I have attached new version of the plugin here, could you test how it works before i publish it? panda2-plugin-essentials-1_2_2.zip
  3. enpu

    Open link in new window?

    @Ninjadoodle Your code sure is correct. Mobile Safari seems to block all pop-ups by default, that can be changed from settings. You can also just change the url with window.location.href = 'https://www.panda2.io'; Though that will change the url of the current browser window, meaning it will completely exit your game. But that code should work anywhere, not just at interactive function. I just fixed window.open to work on the editor, will be on next release. Also need to make changes to Panda Remote so it works there too, and when exporting as native app.
  4. enpu

    Open link in new window?

    Sorry by touch events i mean interactive functions on Panda, like mousedown: https://www.panda2.io//examples#sprite-interactive https://www.panda2.io//examples#scene-mousedown
  5. enpu

    Open link in new window?

    Mobile browsers usually require that you call window.open on touch event, otherwise it will be blocked. On native app, it might require plugin. Try it on touch event and let me know how it works.
  6. enpu

    Open link in new window?

    @Ninjadoodle try window.open('https://www.panda2.io');
  7. enpu

    SystemText Class Bug?

    @8bitdna Personally i have been using bmGlyph (https://www.bmglyph.com/), though it's Mac only. Glyph Designer would be another good option (https://www.71squared.com/glyphdesigner). Litter is known to work free bitmap font generator that works straight from browser: http://kvazars.com/littera/
  8. enpu

    SystemText Class Bug?

    @8bitdna You are absolutely right, good find! I wonder why there was that double scaling This should be now fixed and pushed to dev branch.
  9. enpu

    Hypothetical Question

    Yeah would require some manual work outside of Panda. This will change in the next release
  10. enpu

    Border color

    @ftguy2018 What you are looking for is probably the background color of the html body. You can change it with this line: document.body.style.background = '#ff0000';
  11. enpu

    Hypothetical Question

    @Ninjadoodle Yeah project can have only one source folder, but source folder can have multiple subfolders. You could try to put all your projects in same folder, would that work for you? Every project would use the same source folder, but every project could have their own game specific modules. Also then every project would use same engine folder, which would be handy. Also media folder could have subfolders for each project. Your folder structure could look something like this:
  12. enpu

    Hypothetical Question

    @Ninjadoodle Yeah that sounds like it should work, though you might want to double check it.
  13. enpu

    Pixi plugin error with text

    Great to hear that it works!
  14. enpu

    Hypothetical Question

    @Ninjadoodle That sure is a complicated situation you got there. I would suggest you to think to put all into one project. Then make one scene that would act as the "selection screen", then other scenes will be the actual games. Then on your website you could make links to that game with different url parameters, which would change the starting scene of your project. That way it would look like it's separate games, but actually one single project.
  15. enpu

    Pixi plugin error with text

    @ftguy2018 I just added support for CSS loading to the engine. Once CSS file is loaded, it will be automatically added to the webpage. Just update your engine to latest dev version. Now minimal example of using Panda 2 with AlertifyJS´╗┐ library would look something like this: game.module( 'game.main' ) .body(function() { game.addAsset('alertify.js'); game.addAsset('alertify.css'); game.addAsset('bootstrap.css'); game.createScene('Main', { click: function() { alertify.alert('Ready!'); } }); });
  16. enpu

    Pixi plugin error with text

    @ftguy2018 Any JavaScript library should be possible to use with Panda 2. In the end, Panda 2 game is just a simple HTML page with some JavaScript code.
  17. enpu

    Pixi plugin error with text

    @ftguy2018 For text input, it really depends on your target platform and the kind of solution you are looking for. You have few options, use the keydown function to read what buttons user presses and show the content. Use DOM input element with HTML/CSS, this way you could use the browsers built-in keyboard on mobile, if that suits your needs. Or then you could build your own on-screen keyboard, something similar i did on Panda Remote. Let me know if you need any help!
  18. enpu

    Pixi plugin error with text

    @ftguy2018 Just updated PixiJS plugin to 1.2.2 which should fix the error: https://www.panda2.io/plugins Thanks for letting me know!
  19. enpu

    Xbox Panda Remote

    @8bitdna This sure sounds like an issue to me, will have to take a closer look. So there is now no way to return to the connection screen?
  20. enpu

    Pixi plugin error with text

    @ftguy2018 What engine version are you using? Could you try to update to latest version? Thanks!
  21. enpu

    Question about Javascript library

    @ftguy2018 You are right, you can load any JavaScript file as an asset. Or then you can make module (as an plugin for example) and have any JavaScript code there.
  22. enpu

    Discord server?

    @SomeT I have never used Discord, what would be the advantages to have one?
  23. enpu

    Hypothetical Question

    @Ninjadoodle Could you just have all your mini games as different scenes? Then you would have all in one project that you can easily publish. Or do you need them to be as individual projects in Panda 2?
  24. enpu

    Hypothetical Question

    @Ninjadoodle So what you are after for, is a way to share assets and modules for multiple projects? You can have multiple html files on same folder, which you can open in Panda 2 as individual projects, and still use same media folder for example.
  25. enpu

    Show Name of the current leader

    @JairoGames Try this: var name = player.getName();