Friday, December 2, 2022

12/2/22

Time Worked: 5:20 - 6:30

Total Time: 1 hr, 10 mins

Today I worked on adding doos into the game. I recognized that it was a good opportunity for polymorphism since there will be several other types of objects in the game that will be interactable. I want to have a little context popup that has the button that the player should use (E for example, or A if it's a controller...?) and I also want to alert Actors in general, not just the player. 

I went through a few options for this - an independent script, an interface, an abstract class or a a superclass. I decided abstract was the best. I stopped somewhere in the middle of implementation because I felt like it. 

I realize this will also be useful for cover. Cover can implement this instead of having it's own code for being detected. Perhaps remove the coverSensor part from the Actor and just use the trigger volume for hte object. Or maybe better, the other way around, just use the coverSensor but rename it to interactableSensor. I'll have to give it some thought. 

I will make it.



No comments:

Post a Comment

Continuing the Work

 I have been thinking a lot lately. This is a hard thing. There's only so little time... I'm just one person. I'm one person, wh...