nkholski Posted April 22, 2018 Share Posted April 22, 2018 I've published the first version of my grid-based physics plugin for Phaser 3 (a port and improvement from the Phaser 2 version). It makes it easy to create a game where the movement is restricted to tiles or a grid and comes with helpful built-in features such as a system for pushing objects or walking on one-direction tiles. I'm making the plugin to use it in a RPG I'm developing but it's suitable for everything from Sokoban-like games to Rouge-like. However, the development of the plugin will be focused to add features I need and fixing bugs that affect my game. Let me know if you use the plugin and feel that stuff is missing or if you run into issues. I won't be adding stuff just for the sake of the plugin unless there is a demand. 1. Testing a bridge and tiles will collidable borders. 2. Testing one-way collision (and I got stuck). 3. Turn-based mode with smooth animations. Multiple bodies getting pushed. DEMO http://metroid.niklasberg.se/P3GridPhysics/ (Use dat.gui to toggle turn-based mode, maximum number of bodies the player can push, velocity and more) Github: https://github.com/nkholski/phaser-grid-physics samme 1 Link to comment Share on other sites More sharing options...
Marius Posted April 22, 2018 Share Posted April 22, 2018 funny. but I don't udestand how to play... and the autofocus doesn't work so good... Link to comment Share on other sites More sharing options...
nkholski Posted April 22, 2018 Author Share Posted April 22, 2018 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? Link to comment Share on other sites More sharing options...
mattasaurus Posted April 23, 2018 Share Posted April 23, 2018 Just wanted to remark that this is pretty cool, makes me happy to see tile based and RPG type games getting some love. nkholski 1 Link to comment Share on other sites More sharing options...
rich Posted April 25, 2018 Share Posted April 25, 2018 This is great Will be in the next newsletter! nkholski 1 Link to comment Share on other sites More sharing options...
nkholski Posted April 25, 2018 Author Share Posted April 25, 2018 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. Link to comment Share on other sites More sharing options...
nkholski Posted April 27, 2018 Author Share Posted April 27, 2018 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. Link to comment Share on other sites More sharing options...
nkholski Posted May 1, 2018 Author Share Posted May 1, 2018 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. Link to comment Share on other sites More sharing options...
Jambutters Posted July 22, 2018 Share Posted July 22, 2018 The example folder isn't bundled to be ran. Link to comment Share on other sites More sharing options...
nkholski Posted July 22, 2018 Author Share Posted July 22, 2018 Have you tried "npm run dev"? Link to comment Share on other sites More sharing options...
Jambutters Posted July 31, 2018 Share Posted July 31, 2018 Ahh, my bad, not used to webpack. Link to comment Share on other sites More sharing options...
Recommended Posts