Forum for the creative side of the game development process: art, music, storyline, gameplay, concepts, etc. Any sort of relevant discussion is welcome here.
Right now I'm writing a game in C#, so I'm taking advantage of the use of delegates (function pointers). So when I add a menu item, I pass in the function that will execute when it's selected, such as:
In Golvellius, I'm essentially doing the same thing by specifying Lua methods with each menu item - which I prefer, but I'm not using Lua on this game so delegates are a happy medium.
trufun202 wrote:Right now I'm writing a game in C#, so I'm taking advantage of the use of delegates (function pointers). So when I add a menu item, I pass in the function that will execute when it's selected, such as:
In Golvellius, I'm essentially doing the same thing by specifying Lua methods with each menu item - which I prefer, but I'm not using Lua on this game so delegates are a happy medium.
honestly, I don't even know anything about anything. I'm just learning C, and I suck at it.