Ofcourse it’s nonsense, it’s school practise, the idea is to learn something. I was trying to point out you can even pretty much use same mental model by just using structs, which I assumed were allowed, and only basically lose encapsulation, which in a project like this doesn’t even matter much.
And the hill I die on: use whatever possibilities the language offers when that feature is the best way to do something. This includes globals, gotos, and multiple inheritance (for which I can’t even think an example where it would be the best solution, but there has to exist one, right?)
You’d hopefully only pass pointers anyways. Or skip even that and have a global datastructure with pointers to game obj.. umm data.
Or just have a global datastructure that models the whole game state, and functions to modify its state and to draw it.
Sure objects are usually pretty good fit for especially games, but they are hardly the only mental model you could use. They also hide state inside them, which isn’t purely a good thing. Also most of the benefits of encapsulation really only shine with teams of devs, when you have to protect your code from others who use it without knowing it.
Hmm, how much does the visible color actually contribute? Over half of the energy is ir and beyond. White is certainly a safe bet when it comes to visible color, but could they make them green without absorbing too much energy?
If you squint hard enough you can almost see a relatively small star in the lower half of milkyway about halfway between centre and outer rim. Squint a lot more to imagine a blue planet orbiting it. On the planet there are clearly multiple bananas (for scale).
Project Management is a skill. So is game design.
Bleed is good. Stun looks like enchantment, poison is.. okeyish? Maybe just make it like bleed with green color?
And I’m pointing out you can very well program anything without objects, it’s not even harder, they are just one tool for structuring a program.
Exactly. But you don’t have encapsulation! 😆
Next you are going to tell me gotos are bad 😀
Ofcourse it’s nonsense, it’s school practise, the idea is to learn something. I was trying to point out you can even pretty much use same mental model by just using structs, which I assumed were allowed, and only basically lose encapsulation, which in a project like this doesn’t even matter much.
And the hill I die on: use whatever possibilities the language offers when that feature is the best way to do something. This includes globals, gotos, and multiple inheritance (for which I can’t even think an example where it would be the best solution, but there has to exist one, right?)
You’d hopefully only pass pointers anyways. Or skip even that and have a global datastructure with pointers to game obj.. umm data.
Or just have a global datastructure that models the whole game state, and functions to modify its state and to draw it.
Sure objects are usually pretty good fit for especially games, but they are hardly the only mental model you could use. They also hide state inside them, which isn’t purely a good thing. Also most of the benefits of encapsulation really only shine with teams of devs, when you have to protect your code from others who use it without knowing it.
Behaviors are just functions that work on structs. So basically what oop does but without encapsulation.
Anything can be made with pure c.
Many older games are pure c.
There is absolutely nothing forcing small and simple. Objects are just a way of doing things, there is no need to use them for anything.
Hmm, how much does the visible color actually contribute? Over half of the energy is ir and beyond. White is certainly a safe bet when it comes to visible color, but could they make them green without absorbing too much energy?
If you squint hard enough you can almost see a relatively small star in the lower half of milkyway about halfway between centre and outer rim. Squint a lot more to imagine a blue planet orbiting it. On the planet there are clearly multiple bananas (for scale).
End of this list.
Back to top