Work Post

Nov. 18th, 2018 09:41 pm
relee: Picture of Relee Starbreeze, Wizard (Default)
[personal profile] relee
9:41pm - Somehow I'm doing even more work tonight, even though it's late. It's probably because of that dream I had last night of playing an ASCII-art space game; it was inspiring.

Anyways I'm implementing Pathfinding in my game right now.

9:52pm - Okay so I'm thinking about making a big change to the Tile class. I'm thinking about making MovementCost return the cost of moving through the tile, while taking its contents into consideration, instead of having it just return the movementCost of the tile itself. So, if it has an InstalledItem in it, it gives that InstalledItem's MovementCost, and if it has an Actor in it, it gives a 0.0f because it's impassible.

This could change the way I do a lot of my stuff in ways I can't quite predict, because I already did it a different way. But it should make the pathfinding a lot easier, and make more sense overall for other elements of the code.

So, I think I'mma do it.

10:04pm - Geez, I think I'm going to have to re-write my "MoveActorTo" method entirely. I think it'll be much shorter now.

10:20pm - It works fine with the changes I made. Yay. <3

11:11pm - Alright I've put in the Pathfinding code, but it doesn't interface with the game yet. It's late though, so I'm going to wrap up for now.

Next time, I make the pathfinding algorithm return a path, then after that I make it multithreaded.

Profile

relee: Picture of Relee Starbreeze, Wizard (Default)
Relee Squirrel

July 2023

S M T W T F S
      1
23456 78
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 29th, 2026 03:23 am
Powered by Dreamwidth Studios