Re: My thoughts on C# and gaming.
Nick Trout <[email protected]>
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <[email protected]> |
> > why use C# as a scripting language as opposed to Lua? Because it was the least worst option. I'm not trying to diss either language, but often there is no "best" solution. You're weighing up the options and choosing the "least worst". The usual solution used to be roll-you-own, then you'll get the best... but experience tells us reuse is better than cold pizza at 2am. It might be that the team aren't familiar with Lua. Or that dynamic typing is perceived as a danger (although Google, with Python, demonstrates impressive scalability). Or that C# is perceived as a "proper" language by the stakeholders. Civil engineers build bridges by knowing their materials and allowing error tolerances. Software engineers manage their problems in somewhat similar ways. There's not always a clear cut answer: "we did it because of X, Y and Z". "On balance the risk appeared to be best managed by doing P." Cue postmortem. Tuppence. On 25 January 2010 20:47, Brandon Van Every <[email protected]> wrote: > On Mon, Jan 25, 2010 at 1:48 PM, Miguel de Icaza <[email protected]> > wrote: > > > > Games typically use Mono as a scripting engine for AI and UI, not really > > for the actual game engine. The game engines remain in C, C++ and > > assembly language while the high-level bits are coded in C# or > > another .NET language. Here are some rough numbers that we have from a > > big game built using Mono: > > > > * C# code made up 33% of the code in the final game. > > > > * About 56% of the developers worked primarily in C#. > > > > * The entire game code is rebuilt in 35 seconds; They did > > not share with us the time it takes to build the C++ code, > > but the note says "takes much longer". > > Ok, why use C# as a scripting language as opposed to Lua? > > > Cheers, > Brandon Van Every > _______________________________________________ > Sweng-Gamedev mailing list > [email protected] > http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com > _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com