- Home /
Getting ready to make RTS game like CoH, though I need help
Hey guys
I'm trying to make a RTS game like Company of Heroes, but I can't decide which game Engine would be the best. Do you think Unity would be the one for me? I've never made any game before.
Also, if I'm going to make it on Unity, what kind of programming language should I learn?
Thank you for your time!
Hey $$anonymous$$amikami - how is your progress on this?
I'm asking because I am too trying to build an RTS on Unity, with some ideas (scale, urbanity, PoV) from CoH.
Answer by Kiwasi · Aug 10, 2014 at 02:38 AM
Unity is certainly adequate for the job. Unity's primary draw card is multi platform development. While its not the best engine for any particular genre of game, it works well enough for all game types.
Unity has 3 scripting languages. C#, JavaScript and Boo.
C# is your best bet, the language is the more powerful, less prone to error, and has better internet support.
JavaScript is marginally easier to learn, and does a lot of things behind the scenes for you. However its more prone to errors and has slightly less power.
Boo is only included in the engine so that game developers that learned boo when Unity first game out don't have to relearn scripting. There are probably less then a hundred users of this language in the world. Don't go near it.
Thank you for your reply!
I have a question, what is the real difference that C# and JavaScript has? Are there something that I can't do in each language?
As Bored$$anonymous$$ormon said, C# is a good choice. JavaScript is a bit easier to learn, but learning C# is going to be well worth the effort for the reasons mentioned above. As for things you can and cannot do: Those won't be relevant to the basics of your game development. Once you get to a level that you're hitting the limits of a program$$anonymous$$g language you'll most likely be good enough to find some way around it. The important thing though is to actually get started and jump right in. $$anonymous$$any questions you might have are most likely going to sort themseves out that way. Or at least after some quick googling!
$$anonymous$$ey differences:
C# requires strong typing. In general this means you have to tell C# exactly what you want to do. C# also forces you to understand variables and typing.
JavaScript allows dynamic typing. It will figure out what you want to do, and makes up a lot of stuff without explicit instructions. Sometimes this makes it hard to see what is actually going on behind the code. Some errors that C# picks up in the compiler cause run time errors in JavaScript.
Its also worth noting that the difference between learning curves is marginal. You might be writing code fifteen $$anonymous$$utes earlier with C#. But you will loose that much time later learning to debug the language.
Answer by Stardog · Aug 11, 2014 at 08:07 PM
It's quite easy to make an RTS in Unity, but not for beginners.
You will have to break it down into all of the pieces and learn each one - selection boxes, selecting individual units, unit attacks/abilities, enemy/friendly AI, gui, etc.