________________________________________________________________________________________________________________
day 16 - 16 days left HALF TIME !
Hi, i fixed orthogonal stop at destination for solo Unit.
How to manage a Turtle path-finding with walls , enemies and just-now-dead units?
As i said before, i'd like the captain to stay at the center of the group, so it should decide other's unit position, but how to walk among complex battle-field ?
If you have time, try to look and give comment here or here:
https://www.reddit.com/r/rust_gamedev/comments/hr7m3j/which_lib_do_you_use_for_p...
https://github.com/samueltardieu/pathfinding/issues/251
________________________________________________________________________________________________________________
day 17
I have done Click&Drag today and I'm making squads. Tomorrow i'll try to work on tiled and after that pathfinding.
________________________________________________________________________________________________________________
day 18
Today i tried: to implement this:
you get a kind of unit's ghost projection to show where they will land when clicking for walking destination.
It's a translation thanks to delta x ,y from selecting to choosing destination.
I did squads, so like in Command&Conquer, it's very useful to group your units inside squads.
But, i have a loop problem i think, probably MainState update function interacts with side effect from mouse or keyboard ?
The logical part seems to work but nothing graphical, tomorrow with coffee i will see clearer or do without it.
I have documentation to read and tutos on youtube to watch. Gamedev is huge working.
________________________________________________________________________________________________________________
day 19
I just killed a fucking bug with selecting squads. 24 h lost for that.
My eyes burn. I was very close to give-up it. But i'm happy, i think i have the feature.
Important for the game play.
Next step, make Code less dirt, make my ghost projection work (equation already written but not yet tested) , integrating camera scroll, i hope tiles.
________________________________________________________________________________________________________________
day 20
My ghost projection for moving unit, and grouping squads does work in windowed mode.
There is a strange effect with full screen mode, i've seen a post somewhere about that problem.
Now, i'd like to add scrolling camera, zoom in/out would be nice and i have no read yet Legion docs and examples.
But if i go on this way, my code is so dirt that it probably will explode.
Twenty days writing code, it's tiring, i want to break a little bit the dynamic, so i think tomorrow i will have a look on Legion to think how i can plug it to the work i have already done. I think i will use a basic pong to experiment on it Legion. Idem for tiled.
I also need to test for implementing fights logical.
"Graphics" are ugly now.
________________________________________________________________________________________________________________
day 21
I'm studying how i can add Legion library inside what is already done :
i dont want to change too much my units code, so here is the idea:
i could manage gold, food, stone,wood and population resources via ECS , so it doesn't destroy the existing code.
________________________________________________________________________________________________________________
day 22 - Ten days left
I'm trying to introduce Resources with Wood, Gold, Stone, Agriculture and Demography.
I think population for making Soldier, Builder, Peasant ...
May be somebody can help me here:
https://github.com/TomGillen/legion/issues/162
________________________________________________________________________________________________________________
day 23
Je traverse une terrible épreuve.
merci à ceux qui ont participé.
voici ma production à ce jour :
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d107f62f...