Nov. 12th, 2018

Work Post

Nov. 12th, 2018 02:36 pm
relee: Picture of Relee Starbreeze, Wizard (Default)
2:41pm - Well, it's another day to work at the McDonald's. My last work session left me about to test the new LOS Algorithm I came up with. I had a thought that I might have made part of it backwards, a false where I want a true perhaps? So I'm going to double check the code before testing.

2:54pm - Just got the news Stan Lee has passed. Holy crap he looked young for his age. Not sure what killed him but it seems he died in hospital.

Well, cartoonists and comic-bookers, it's your turn now. Who wants to be the next Stan Lee?

Going back into the code now.

3:18pm - Yeah I had a logic error like I thought, but I commented out my code a bit more to make sure I had it right. Now to test it.

Though I do have a problem. My dungeon as it is currently, has no walls to block line of sight. XD

I'll have to add some I guess...

3:28pm - Alright, I added a wall just north of the testing player's start point. I can put an NPC with a BrainChase brain in it on the other side of the wall to test if it can detect the player.

3:55pm - Hmm, interesting...

I've got a couple warnings in my console that say I'm violating a serialization depth limit. I think I might have made something accidentally recursive. Good editor, for spotting that for me.

Now let's see if I can fix it.

4:08pm - A man in an electric wheelchair is screaming in what seems like pain in the McDonalds. I'm letting the staff handle it but i'm really worried about him.

4:30pm - I'm having trouble untangling this chain of 'has a' relationships I've accidentally made.

The WorldController has a world object, which has a list of Actors, which each have a Tile they're contained by, and the tile has a reference to the world they're in, which has a list of Actors...

5:30pm - It's getting cold and dark outside and I'm still struggling with this chain.

I asked on a gamedev discord I'm a member of and they reccomended switching out the list of actors for a list of IDs that the actors can be referenced by. I'm having a problem though because I'm not sure how I want to generate unique IDs.

Right now I'm thinking of making a nextID static property and every time it's referenced it's incremented. The trouble then is that I can only have so many actors before I run out of IDs.

I want to have some way of recycling IDs.

5:41pm - Oh yeah, object pooling. That should do it I think!

Okay I think I'm burned out for the moment. I'm going to look this up next time. Now how long did I work today...

Three hours!

That doesn't seem like very long. Half as long as I'd like to. I don't think I'll be refreshing myself tonight though, so even if I stay here and goof off for an hour I doubt I'd get another three hours of work in.

Time to pack up!

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 Sep. 3rd, 2025 12:07 pm
Powered by Dreamwidth Studios