Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411634 Posts in 69394 Topics- by 58447 Members - Latest Member: wcored

May 13, 2024, 06:36:18 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityDevLogsThe Village
Pages: 1 [2]
Print
Author Topic: The Village  (Read 7302 times)
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #20 on: June 01, 2017, 11:35:44 AM »

I have worked a bit more on forest generation.
Now the tree and leaves are separate objects to allow for leaves animation:



I have also added road building to the game:


Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #21 on: June 03, 2017, 03:45:36 AM »

small updated on game look:




Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #22 on: June 03, 2017, 08:32:10 AM »

Different variants of forest layouts generated from the same map.
I tried to create a probability matrix for each tree based on the neighbouring tiles. If there are no other forest tiles near then the chance for a tree being generated is lower. This should result in more trees in bigger forests and less in smaller tile groups.
Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #23 on: June 04, 2017, 06:50:02 AM »

Since last update I have worked hard to finally implement some more life to the game.
I have implemented A* pathfinding from Aron Gronberg to the game to control the movement of villagers and animals.
I have used the Unity Finite State Machine tutorial to help me with creating a state controller.

First steps were hard.
I made a default idle state anim for a bird:


Then I worked on crating simple pathfinding ai based on the solution from a* implementation:



Unfortunately due to my idea to have colliders - not all of them were scanned by A* Grid, so for now I had to turn them of, or the birds tended to get stuck:




Finally the villagers and birds are walking around






Behind the scenes view of the system:
Blue gizmo means that the character is idle
Yellow Gizmo means it is moveing or looking for target.
The target for now is a randomly selected tile







Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #24 on: June 08, 2017, 03:02:23 AM »

I am working now on creating more life happening in the village.
Now the workers spawn at houses when they are recruited and start to wander around. The amount of villagers now strictly depends on the number of workers and houses


Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #25 on: June 11, 2017, 07:18:02 AM »

Slight update on grass tiles:
Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
protactinium
Level 0
**

Working on 'The Village'


View Profile WWW
« Reply #26 on: June 18, 2017, 12:29:49 PM »

Update on ai. The workers now listen to orders and go to work on the tile you select. Otherwise they get bored and wander around

Logged

The Village - a sim builder / idle game merge
||devlog||twitter||
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic