Skip to main content
Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

How does the Noita Spellto implement something like Noita's spell system worm, programming wise?

As per the title/question. Does anyone have any insight or at least a guess as to how the spell system works in Noita. The?

The game is done in cpp. AndC++, and it has a spells that can be modified with other spells and spell modifiers that each have their own logic and so on. What

What I'm wondering is how theyto manage itsuch a system. I'm still trying to learn programminlearning programming, so I'm trying to decipher how something of that sort would hebe done. At a surface level, I guess it would he a massive switch case for each effect with an enum for the type. But that frankly seems stupidimpractical. So iI would think it's storing some function thaythat a spell has and calling it each time a certain condition is meet. Suchmet, such as when the projectile hits an enemy.

How does the Noita Spell system worm, programming wise?

As per the title/question. Does anyone have any insight or at least a guess as to how the system works in Noita. The game is done in cpp. And has a spells that can be modified with other spells and spell modifiers that each have their own logic and so on. What I'm wondering is how they manage it. I'm still trying to learn programmin, so I'm trying to decipher how something of that sort would he done. At a surface level guess it would he a massive switch case for each effect with an enum for the type. But that frankly seems stupid. So i would think it's storing some function thay a spell has and calling it each time a certain condition is meet. Such as when the projectile hits an enemy.

How to implement something like Noita's spell system?

Does anyone have any insight or at least a guess as to how the spell system works in Noita?

The game is done in C++, and it has spells that can be modified with other spells and spell modifiers that each have their own logic and so on.

What I'm wondering is how to manage such a system. I'm still learning programming, so I'm trying to decipher how something of that sort would be done. At a surface level, I guess it would he a massive switch case for each effect with an enum for the type. But that frankly seems impractical. So I would think it's storing some function that a spell has and calling it each time a certain condition is met, such as when the projectile hits an enemy.

Source Link
Spoon
  • 11
  • 1

How does the Noita Spell system worm, programming wise?

As per the title/question. Does anyone have any insight or at least a guess as to how the system works in Noita. The game is done in cpp. And has a spells that can be modified with other spells and spell modifiers that each have their own logic and so on. What I'm wondering is how they manage it. I'm still trying to learn programmin, so I'm trying to decipher how something of that sort would he done. At a surface level guess it would he a massive switch case for each effect with an enum for the type. But that frankly seems stupid. So i would think it's storing some function thay a spell has and calling it each time a certain condition is meet. Such as when the projectile hits an enemy.