Author Topic: Game Design Megathread  (Read 554708 times)

oh yeah unity also uses javascript technically
That's not javascript.

That's not javascript.
Erm, it does allow for the option of using javascript for scripting.

Erm, it does allow for the option of using javascript for scripting.
That's still not javascript.
It's their own scripting language and there are many differences in syntax and features.

The community gave it the name "javascript", it's actually called unityscript.



That's still not javascript.
It's their own scripting language and there are many differences in syntax and features.

The community gave it the name "javascript", it's actually called unityscript.

The syntax is exactly of javascript though~~~

The syntax is exactly of javascript though~~~
Almost. JavaScript doesn't have classes or function overloading by default.


function PrintType(item : String){
    Debug.Log("I'm a string, type String");
}

function PrintType(item : int){
    Debug.Log("I'm an integer, type int");
}

function PrintType(item : float){
    Debug.Log("I'm a float, type float")
}

function PrintType(item : boolean){
    Debug.Log("I'm a boolean, type boolean");
}

function PrintType(item : Array){
    Debug.Log("I'm an array, type Array");
}

function PrintType(item: GameObject){ //catches everything else
    Debug.Log("I'm something else");
}

function PrintType(){
    Debug.Log("You forgot to supply an argument!");
}

PrintType();
PrintType("hello");
PrintType(true);


class Person{
    var name;
    var career;
}

//Create objects of type Person
var john = Person();
john.name = "John Smith";
john.career = "doctor";
Debug.Log(john.name + " is a " + john.career);


Shamelsssly stolen from http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)

That's not javascript.
that's why i said ""techincally""

Wow, uh...the box thing was just a test, I just posted it because of it's neat unintentional flippy spinny thing. It's a thing

super paper mario

called it


So, I'm very poor with coding skill (I've been studying theory and making mods all this time) and now I'm trying to practice my programming abilities. Anybody got any ideas on where I should start?

Right now I've learnt the basics of C and C++ and I've started practicing with Allegro, and I'm well versed in Unrealscript, but I'm not sure if that's going to be enough. I have Game Dev next term which means I'll probably be doing some minor coding, but it's not Game On where you actually start building games.



One who wishes to learn the fine arts of coding should attend a professional online school of learning
A quite popular named one is Codeacademy
« Last Edit: April 12, 2014, 05:40:40 PM by PurpleMetro »

One who wishes to learn the fine arts of coding should attend a professional online school of learning
A quite popular named one is Codeacademy
It covers all forms of programming...related to Web Design.

I've found a few good tuts on using SDL, so I'll look through these for now.

if you don't know a lot about coding, you shouldn't work with something as low-level as C++.

if you don't know a lot about coding, you shouldn't work with something as low-level as C++.
I agree to an extent, in that C++ is a pretty hard hitter when entering programming, but in the end, it doesn't matter much what language you start with. Hell, what did you think they did before without interpreted languages like Python, Ruby or Lua?