Jun. 24th, 2021

Work Post

Jun. 24th, 2021 09:16 pm
relee: Picture of Relee Starbreeze, Wizard (Default)
9:16pm - Late start tonight, but that's okay. I got some good rest today.

First up on the agenda, moving the movement code from the actors into the map. The actors will tell the map to move them, instead of just modifying the map to move themselves.

9:19pm - On closer observation, the code that used to move actors on the map is missing. I must have deleted it without thinking ahead. Or maybe I'm just remembering poorly and the functionality wasn't so complex as to require copying?

Anyways what's past is past and I need to re-write the movement code anyways.

9:46pm - Okay I've moved the movement to the map class. Now the actor just calls a method on the map class to move itself.

The next step is the attack code. Previously, I had set it up so that an actor could attack in a direction, and hit whatever was there. This is a bit tricky now, since there could be many things in that direction, or nothing, or a wall, in addition to just one thing. So, I'm not sure what to do about that.

I'm going to have to halt and give this some thought.

11:50pm - I gave it some thought and I think I'm going to have to implement the Command Pattern to handle actor events, which is a lot more work to implement, but I'll get it done next time. It's too late now.

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

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 24th, 2025 07:36 pm
Powered by Dreamwidth Studios