Comments (7)
https://www.npmjs.com/package/ngraph.path
from tinyking.
http://totologic.blogspot.com/2014/01/accurate-point-in-triangle-test.html?m=1
from tinyking.
We can do square building by allowing a build across both edges of the hex: https://www.google.co.uk/search?q=hex%20grid.buildings&tbm=isch&hl=en-gb&hl=en-GB&tbs=rimg:CUjaAwVEccLAYU6kqadzVVW0&client=safari&prmd=isnv&sa=X&ved=0CBIQuIIBahcKEwiAisD_hPvrAhUAAAAAHQAAAAAQBw&biw=441&bih=650#imgrc=UOR84CLcjdqCAM
from tinyking.
Need to tackle this before real-time experiment, as I need this in order to do both real-time and turn based gameplay
from tinyking.
Actually: another much simpler way of doing this would be to reduce the size of the hexagons and make houses and fields take up more than one hexagon. Can then build Astar pathfinding fairly easily.
from tinyking.
Scrap wall tile buildings - it doesn’t really work and is confusing to work with. Instead I could increase the hex size again, and have buildings take a whole hex with one of six rotations so there’s an entrance side. The rest of the hex is blocked off.
Then when pathfinding across hexes, the person always aims for the exit side which means a) people might walk side by side and b) they’ll always walk in straight lines even when pathfinding doesn't work.
from tinyking.
Next I need to path using the sides of the hex so I'm not going over all the centers each time (which is a waste). I have this information in the navigation map, so I need to return it from the pathfinding algorithm.
After that I should do better weights on the path - trees should be twice as slow (and reduce your speed).
from tinyking.
Related Issues (20)
- Try a real time version HOT 2
- Distributed job queue in people's world reps
- eat and sleep HTN actions - make the day real-time to manage this.
- Rooms and stockpiles
- Plough field real time
- Click on house allows selection of rooms and people within it
- Render everything and cover with fog of war
- Make wearing also go to Center of start and end hex
- Outdoor stockpiles
- Recruiting characters again HOT 2
- Page reloads just before eating on mobile safari HOT 1
- Handle lost WebGL context
- Conversations HOT 1
- If player is holding something perhaps drop it first before doing something else?
- Double order
- Still doesn't plan field straight away
- Customising the game and choosing your character HOT 3
- Build character customiser, with a pixi renderer in the window.
- Bug: PIXI interaction has rotted with latest version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyking.