News for hackers. Stuff that matters.
Re:The faster you unlearn OOP, the better for you and your s... by lerno on Sunday November 25, 2018 @07:05PM (#18529926)
Been exactly there with a game. Solution? Take a data centered approach: a command object (just a function really) updates HP, XP, triggers visual effects etc. Monster and Player classes are just thin wrappers around plain data structures.

I tried the more ”OO”-approaches for all too long thinking it would lead me right. It doesn’t.

There are no comments on this comment yet.