nkholski

Members
  • Content count

    147
  • Joined

  • Last visited

  • Days Won

    2

nkholski last won the day on April 22

nkholski had the most liked content!

1 Follower

About nkholski

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    nikbrg

Profile Information

  • Gender
    Not Telling
  • Interests
    x

Recent Profile Visitors

2,618 profile views
  1. nkholski

    Should I use Phaser 3?

    @phaserlover I think you might have missed http://labs.phaser.io/index.html
  2. nkholski

    Grid physics plugin for Phaser 3

    Have you tried "npm run dev"?
  3. nkholski

    Custom Tile Collision Width

    You can achieve it with collision callbacks. Read my answer here:
  4. nkholski

    [TILED TILEMAP] Round tile edges and collision

    You could set a callback for the tiles, make a collision test of your own in the callback function. If all sides of the tile should be collidable, return true immediately, otherwise check where the tile is overlapped and return true only if it's where it's solid (maybe just check for collisions, and if it reach the end of the function return false). I never used Tiled in that way but you should be able to navigate through the tilemap object (or cache) to find the information you refer to and implement that in your callback.
  5. nkholski

    Generic platformer + ES6 / Webpack 4 boilerplate

    I've done some work on reorganizing and otherwise improve the code, but when the code got really messy (by the end of the Game create method) I lost focus a bit and couldn't resist implementing fire Mario. If you're using this, what would you prefer: Improved code base or additional features? The online demo was also updated:
  6. nkholski

    Phaser Plugin Starter

    I made a repository with a starter project for creating Phaser 3 plugins (Phaser 3.8.0+): Demo for testing your plugin with dat.gui integration for easy testing. Build script to build uncompressed and minified versions of the plugin (with source map) Webpack 4 ES6 support This is a cleaned up version of what I've been using for my Grid Physics and Animated Tiles plugins. Feedback and suggestions are appreciated. Clone it with git: https://github.com/nkholski/phaser-plugin-starter
  7. nkholski

    Generic platformer + ES6 / Webpack 4 boilerplate

    @B.Guyl The webpack-stuff of repository a clone of a Phaser 2 boilerplate which I've managed to get to work with Phaser 3 through trial and error. I'm not a great source for webpack best practises. 🙂 (1) No idea. It's just kept as it was in the original repository. (2) I don't really understand the question. I prefer a source folder with content that should be transpiled, a static folder and a build folder that everything get copied to. I load the assets with the Phaser 3 file loader. (3) @snowbillr got you covered 🙂
  8. nkholski

    Creating Minimap as second Camera view

    I added a link to this thread and the codepen to the issue I mentioned above (https://github.com/photonstorm/phaser/issues/3547)
  9. nkholski

    Brunch with Phaser 3 (starter project)

    I'm using the es6-version. Great work. Sometimes it seems that it fails to wait for all imports though. I'm working with a button class and get this error now and then "menu.js:35 Uncaught TypeError: _button2.default is not a constructor" which resolves if I just save the file with the button class again unaltered. It was a thread here about making an official template. I think that's a great idea and maybe this could be a candidate? How does the build compare to webpack? I think an official template would get much more attention from the community, with examples on how to extend it and PRs to keep dependencies up to date.
  10. nkholski

    Creating Minimap as second Camera view

    Might be related to this issue when zooming in: https://github.com/photonstorm/phaser/issues/3547
  11. nkholski

    Grid physics plugin for Phaser 3

    Added support for levels (walk on or under a bridge) and updated the online example git-page today. Also replaced the image in the first entry of this thread with three gifs.
  12. nkholski

    Grid physics plugin for Phaser 3

    A proper Phaser 3 demo is now online on http://metroid.niklasberg.se/P3GridPhysics/ and I added turn-based mode toggled by dat.gui. You may also test things like setting a limit for the number of bodies the player can push, strength and velocity.
  13. nkholski

    Grid physics plugin for Phaser 3

    Thanks! Will try to upload a proper Phaser 3 demo until then. It'll be similar to the existing Phaser 2 demo minus pathfinding plus a few bugfixes and a working turn-based mode. With some luck, I'll manage to add z-index so that you can walk on or under a bridge.
  14. nkholski

    Grid physics plugin for Phaser 3

    Thanks! It's a plug-in with a demo, not a game to play. All you can do is walk around, test collision and push boxes. What do you mean with autofocus?
  15. nkholski

    Proper way to scale a game in Phaser 3

    The Mario example was made mainly while Phaser 3 was in beta and much by trail and error. That line should be removed because it does nothing (I found https://codepen.io/samme/pen/JMVBeV and tried it in my game with no success). I should really sit down and clean up the source. I ended up making a custom method to scale the whole canvas.