Ok, I am completly new to the whole game scripting/coding aspect so work with me here, the most I usually code is databases and websites for low traffic.
ATM I have a lay out of how I want the game to work, but am running into the whole will this work ok, since its a engine that does multi platform, and I never used a Apple, iPhone/Tablet, etc, so not really sure.
If I plan to release the finished version on all the systems, is anyway better then another for efficently running scripts? Like will a Android run the same scripts the same way as a iPhone or a Linux box? Or would I be better making seperate functions/scripts to determine what OS to run what way?
I know for example Windows has DX, and so would XBox, and I think Linux is OpenGL, but aside from graphics is a certain language like C# better to use for fast code running on all systems, or be better to use JS to make sure it runs the same on all systems?
Since I am new to the whole scripting aspect, I want to focus learning one language and do everything I can in it, not a little of this and a little of that so curious if there is a more preffered language for MultiOS games deved with Unity.
Also, is there a site/tutorial that is more set for newcommers that dont know scripting? I read threw the Refrence site on alot of the stuff, but its all confusing since never scripting like this before not sure how to accualy use the code they have shown. I am more a visual learner and most of the info I find just says to do this or that dosent show how to make it happen. I am watching threw theslayers tutorials on YouTube, since he does show the code and explains a bit so alot of his stuff is great, but he dosent speak clearly, weird ascent so sometimes have no clue what hes saying <.< Just looking for ideas on best ways to get going so I can dive in and not drown >.>
-
use more white space. makes your questions etc easier on the eyes (walls of text get ignored by alot of people).
-
I believe to be on a Microsoft device is has to be c#. Not aware of any other restrictions, but i’m of the personal opinion C# is the best choice as there are far more c# resources around seeing as it is a mainstream language. The JS in unity is a hybrid Unity/JavaScript so it has minimal benefits outside of Unity, and then there’s boo. Dont know f’all about this language, and you will find getting help for it hard work since its the least common choice of Unity script choice.
-
You may need to write some custom platform specific code, however it should be minimal. You shouldn’t really need to worry about the graphics engine driving it. The idea is code once, build many, and while its not quite that easy, about 95% of your code base should work regardless of the platform you target.
However, in saying that, there are restrictions on the different platforms, so you may find benefit in splitting some code out into platform specific files. Havn’t played around with multiple devices enough to be an authority on such information.
- Getting started, I did the lerpz tutorial. It should be in the asset store. I found it was a great little intro to Unity if you know code. It from memory had sections that explained the purpose of scripts, but that may have been a different tutorial.
Using Unity, I would certainly recommend C#, but if you’re not using Unity, Microsoft (Native, WinRT and Windows Phone) allows C++. You can use C++ and DirectX directly, or you can use a managed wrapper with C# such as SharpDX or SlimDX. I would just stick with Unity and C# though. Much easier and a great community. ![]()