Recent comments
-
2 hours 47 min ago
-
1 day 9 hours ago
-
1 day 11 hours ago
-
6 days 2 hours ago
-
1 week 3 hours ago
-
1 week 6 days ago
-
2 weeks 1 day ago
-
2 weeks 5 days ago
-
2 weeks 6 days ago
-
3 weeks 5 days ago
-
3 weeks 5 days ago
-
3 weeks 6 days ago
Follow us
Elk News - the email newsletter
Subscribe to the Elk RSS feed, including blog posts, pictures and videos.
Titles only
Full content
Comments aren't included in these feeds. For them you can click the RSS icon in the Recent Comments box.
Our videos at
YouTube
Add new reply
For generating rivers the random map generator uses A* pathfinding. Reusing that it was relatively easy to make the family members to find a path from the cabin to the task location. Technically speaking the movement animation works, and each morning we see the sprite traveling a path from home to work.
But there is a problem which made me feel unsure at the earlier stages of the game development. Every time I heard someone suggesting "show them family members on the map" I felt like it is going to be one sped-up mess of dashing sprites. As the game tries to simulate the flow of time so that we can actually see kids growing up to start homesteads of their own, so I designed the simulation and visual representation to have 24 hours as the smallest unit of time. Now, let's do some calculations;
one tile size is 10m x 10m.
Assuming walking speed of 6 km / hour we get ten minutes per kilometre. 100 m per minute. So, to cross one tile it would take 1/10 of a minute, which is 6 seconds.
So, somehow I need to find a way to visualize timescales of 24 hours and 6 seconds, so that they both make sense. I'm not yet sure how to do that. But, solving problems is one of the reasons I like programming =)