top | item 45871206

(no title)

eastoeast | 3 months ago

This is really cool. Nice project!

I tried doing something much more rudimentary before. Will be following

discuss

order

BSTRhino|3 months ago

Oh, thank you!

I would love to hear more about what you were trying to do with your project before. Was it more similar to the declarative coding part, the automatic multiplayer part, or something else? Part of why I'm doing this is to explore the design space of how games should be made and I'm interested to hear what problems, issues, pet peeves, "bugbears" etc that other people think are worth solving.

eastoeast|3 months ago

It's been a while. But I believe what caused me the most headache while trying to build something like this was handling the interactions between different elements. Declaring which objects were affected by "attacks" or could be "player interactive" or "affected by player but not by NPC". Really this boiled down to proper inheritance. But I found myself so deep and tangled a fresh reset would have been better. Then determining if the object itself or an "objective manager" should perform the calculation each cycle.. etc

It was messy. I ended up having NPC, Item, Attack classes and for each a NPC Manager, Item Manager, and Attack Manager to calculate all their interactions and states.

That's why your project seems interesting because it seems to handle the heavy lifting of behaviors and "behind the scenes".