alforno Posted October 11, 2014 Share Posted October 11, 2014 HexPixiJs is a very simple library (if you can even call it that) for hex grid based games. As the name suggests it is written on top of PixiJs. I'm not sure what my future plans are for this code are yet. If you are a game developer that is trying to make a hex grid based game this this code may be useful to you. https://github.com/mark-harmon/HexPixiJs Enjoy! BasomtiKombucha and austin 2 Quote Link to comment Share on other sites More sharing options...
alforno Posted October 11, 2014 Author Share Posted October 11, 2014 and a blank map benny! 1 Quote Link to comment Share on other sites More sharing options...
agamemnus Posted October 12, 2014 Share Posted October 12, 2014 Hey, not bad. Not bad at all. Looks like a nice starting building block for many different games. alforno 1 Quote Link to comment Share on other sites More sharing options...
alforno Posted October 15, 2014 Author Share Posted October 15, 2014 Updated demo site with a simple map editor. Import and export functionality coming soon. http://www.yungsippin.com/hexpixi/pb_mapeditor.html Quote Link to comment Share on other sites More sharing options...
Son Tran-Nguyen Posted October 20, 2014 Share Posted October 20, 2014 Awesome! This can save others a lot of time on hex grid. Have you considered using the hexagon tileset from Kenney (http://opengameart.org/content/hexagon-tiles-buildings) for a little bit more visually appealing? alforno 1 Quote Link to comment Share on other sites More sharing options...
agamemnus Posted October 20, 2014 Share Posted October 20, 2014 That's really nice. Just alforno's hex tile code and the two Kenney tileset could generate a number of different games. alforno 1 Quote Link to comment Share on other sites More sharing options...
alforno Posted October 21, 2014 Author Share Posted October 21, 2014 Awesome! This can save others a lot of time on hex grid. Have you considered using the hexagon tileset from Kenney (http://opengameart.o...tiles-buildings) for a little bit more visually appealing? Thanks! Hexpixi would need some modifications to show a stack-able tileset correctly. After I'm finished with the map editor demo I'll see if I can get that tileset working. No promises. Quote Link to comment Share on other sites More sharing options...
alforno Posted October 21, 2014 Author Share Posted October 21, 2014 Updated github repo and demo site with new code that makes it possible to create hexagons with a custom width and height. The old code would force a uniform sized hexagon based on a perfect circle. The new code calculates cell position and the hexagon's poly shape from an ellipse. This update also includes some refactoring and simplification, hopefully making it easier to understand and use. As the library develops I will continue to whittle away at bad patterns and redundancy. Quote Link to comment Share on other sites More sharing options...
alforno Posted October 21, 2014 Author Share Posted October 21, 2014 Good momentum going on this right now resulting in another update. This time I've added partial support for Kenney's tileset and any other tileset using a similar art system. The update does not have the stackable functionality yet (allowing for tall buildings made of multiple images stacked). It wouldn't be hard to add but is a little time consuming for the map editor UI since it would introduce tile layers. Soon though. Also started versioning the library. This update puts the version at 0.25 (alpha). Quote Link to comment Share on other sites More sharing options...
agamemnus Posted October 21, 2014 Share Posted October 21, 2014 Even though the real work is in the code, that looks delicious. alforno 1 Quote Link to comment Share on other sites More sharing options...
alforno Posted October 27, 2014 Author Share Posted October 27, 2014 Updated to version 0.26. - Removed jquery dependency from hexpixi.js- Remove jquery dependency for simple demos- Removed bootstrap dependency for simple demos- Added basic support for using the asset loader There are two new demo pages that are bare-bones and do not require anything but pixijs and hexpixijs.http://www.yungsippin.com/hexpixi/simpleDemo.htmlhttp://www.yungsippin.com/hexpixi/simpleDemo2.html Quote Link to comment Share on other sites More sharing options...
DavidBM Posted November 2, 2014 Share Posted November 2, 2014 Wow! This is great!! What is the license of the code? Quote Link to comment Share on other sites More sharing options...
alforno Posted November 8, 2014 Author Share Posted November 8, 2014 Thanks DavidBM. I had forgotten to add the license info to the readme.md file, so I just added it. The library is released under the MIT License. News: I am in the process of adding a camera for the map and adding the ability to have an empty hex. Quote Link to comment Share on other sites More sharing options...
alforno Posted November 8, 2014 Author Share Posted November 8, 2014 Updated hexpixi library to version 0.30. - Made for PixiJS 2.0+- Added empty cell support.- Various bug fixes Quote Link to comment Share on other sites More sharing options...
Tweeper Posted November 18, 2014 Share Posted November 18, 2014 Where can I find v0.30? In readme.md on github it still says v0.26 Very nice work alforno!! Looks fantastic! Quote Link to comment Share on other sites More sharing options...
alforno Posted November 21, 2014 Author Share Posted November 21, 2014 v0.30 is what is on github. The readme.md file was not updated so I updated it to the correct version. And thank you! Quote Link to comment Share on other sites More sharing options...
elwis Posted February 6, 2015 Share Posted February 6, 2015 Just great! I knew that googling would save me a lot of time in the end!!Now I just need to send the family away somewhere so I can get some serious boardgame coding done this weekend... Quote Link to comment Share on other sites More sharing options...
alforno Posted February 21, 2015 Author Share Posted February 21, 2015 Released version 0.40 which adds some basic import and export map functionality. The demo page stringifies the map data to a text control, which you then have to copy and paste somewhere to save it. Later you paste that text back into a text control to import the map. You'll see on the demo page if you want. Gotta go because my annoying cat won't stop pestering me. http://yungsippin.com/hexpixi/pb_mapeditor.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.