💾 Archived View for ythraverse.xyz › gemlog › index.gmi captured on 2024-06-19 at 22:51:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-06-16)

➡️ Next capture (2024-07-08)

🚧 View Differences

-=-=-=-=-=-=-

Dr.J's Gemlog

Home

Atom Feed

Entries

2024

2024-06-19: VVO Line of Sight Working

2024-06-18: VVO Map Movement Achieved

2024-06-11: VVO Client Now Displaying Map Tiles

2024-06-07: Random Map Fun

2024-06-04: Initial work on Vanquish Vanguard Online

2024-06-01: On roleplaying systems

2024-05-31: It feels like the old Internet again

Latest Entry: 2024-06-19: VVO Line of Sight Working

I guess my expectations were a bit skewed by how long it took me to get movement working thanks to all the scaffolding and client/server communication I had to set up, but I wasn't expecting it to be so easy to get LOS (line of sight) working. It helps that I implemented it entirely on the client side, so there was no pesky client/server interaction to deal with. Just a simple raycasting algorithm using Bresenham, displaying some shading over tiles that are "previously explored but not currently visible," and we're good to go:

Screenshot of LOS working in VVO

Another screenshot of LOS working in VVO

I love how much cooler it looks with LOS and fog of war working.

Maybe next up I'll implement some pathfinding. It would be annoying having to always move one space at a time, so adding the ability to click and move seems like a good player convenience -- and monsters will need pathfinding in any case. I'm guessing that this will take a bit longer to implement than LOS, so I'm not expecting to do another consecutive update tomorrow (though that'd be pretty sweet).

Home