Started by: Sacred | Replies: 64 | Views: 5,420

Apex-Predator
2

Posts: 4,296
Joined: Mar 2012
Rep: 10

View Profile
Oct 28, 2014 12:41 PM #1261189
The Methods are the key no matter what language you use.
Logic
2

Posts: 314
Joined: Jan 2013
Rep: 10

View Profile
Oct 28, 2014 2:04 PM #1261223
Quote from Arch-Angel
From what it sounds like you're saying you mainly use JavaScript, which as both me and Sacred mentioned earlier is that it isn't really intended for game creation.

Wrong. Both of you. (I apologize, doe, my Lord of SP *bows down*)
JavaScript is already long in trend for making games. Java is not really a programming language, it's somewhere between an OS and a compiler.
JavaScript in Unity is, however, much more different than the standalone JS that comes with JDK. It's syntax is the same, but other than that, everything's different. Some of the essential classes are preserved, a lot are added, but most of the stuff that has to do with JS running itself, as in case of JDK, is removed. It's in trend because when you port it into a different engine with its own compiler, such as Unity, it's very basic. In Unity, JavaScript scripts are the shortest.
Of course, JavaScript can still be used in browsers, (It is also ported, note that,) but it is not limited to such functionality.
Python, btw, is used in website design just as much as JS.
Sacred
2

Posts: 6,545
Joined: Jun 2007
Rep: 10

View Profile
Oct 28, 2014 3:22 PM #1261249
We never suggested that JS can't be used to create games. We've acknowledged that it's definitely one method of doing so. I haven't used Unity personally. However, I know that JavaScript is a scripting language that's main purpose deals with functionality. And as I made the comparison earlier to Java, JS is a language that's browser-based. Most if not all professional developers can tell you that the C languages are much better suited for such things. Feel free to use JS, but understand that there will be more exterior markup you will have to do since JS is no framework.
Arch-Angel
2

Posts: 9,496
Joined: Jan 2007
Rep: 10

View Profile
Oct 28, 2014 3:31 PM #1261253
Quote from Logic
Wrong. Both of you. (I apologize, doe, my Lord of SP *bows down*)
JavaScript is already long in trend for making games. Java is not really a programming language, it's somewhere between an OS and a compiler.
JavaScript in Unity is, however, much more different than the standalone JS that comes with JDK. It's syntax is the same, but other than that, everything's different. Some of the essential classes are preserved, a lot are added, but most of the stuff that has to do with JS running itself, as in case of JDK, is removed. It's in trend because when you port it into a different engine with its own compiler, such as Unity, it's very basic. In Unity, JavaScript scripts are the shortest.
Of course, JavaScript can still be used in browsers, (It is also ported, note that,) but it is not limited to such functionality.
Python, btw, is used in website design just as much as JS.


My favorite game of all time was written strictly in Java and integrated both jython and python as a way for anyone who wanted to manage or create content for it could have an easy user interface to work with. Unity to my knowledge isn't just for making games. I don't think it has any real web browser functionality, but that's not to say it isn't. I mean, if I use C# in Unity I can make a game for whatever platform, where using JS would probably mean you're looking more web-based with your platform much like HTML5. Like I said earlier, Construct2 is a fantastic engine and I wish Unity was as user friendly as that when it comes to being an engine, but I want to expand my horizons and not be stuck with web browser games. There's nothing wrong with it, I just feel it would open up more horizons and profitability if I went mobile.
Jeff
Administrator
1

Posts: 4,356
Joined: Dec 2007
Rep: 10

View Profile
Oct 28, 2014 3:45 PM #1261256
Actionscript is based on Javascript.
Logic
2

Posts: 314
Joined: Jan 2013
Rep: 10

View Profile
Oct 28, 2014 3:56 PM #1261258
Quote from Sacred
We never suggested that JS can't be used to create games. We've acknowledged that it's definitely one method of doing so. I haven't used Unity personally. However, I know that JavaScript is a scripting language that's main purpose deals with functionality. And as I made the comparison earlier to Java, JS is a language that's browser-based. Most if not all professional developers can tell you that the C languages are much better suited for such things. Feel free to use JS, but understand that there will be more exterior markup you will have to do since JS is no framework.

Framework? That is a really bad argument.
C and C++ do NOT have their own frameworks. Even if they did 30 years ago, nobody uses them now. For people who are into C frameworks such as MVS or QT are given. JavaScript has JQuery and JSMVC for the same purpose. JavaScript is not worse in making games - its just the same in case of pure code (frameworks,) kicks their ass in engines (porting) and goes into a universe not occupied by them - Web programming.
In summary, saying that JavaScript is worse than C in terms of game creation is expression of opinion - it cannot be logically confirmed.
Edit: Sorry, didnt see your post there, Arch. Wrote for a rly long time.
Um, lol, JS does the same things in Unity as C#. You probably haven't researched much there. Both are used the same and work the same. The only differences are that JS is slightly faster and the code can be almost twice shorter.
Arch-Angel
2

Posts: 9,496
Joined: Jan 2007
Rep: 10

View Profile
Oct 28, 2014 4:16 PM #1261264
I sorta have to take your word for it because I truly don't know much at all about JS, all I do know is that from everything ive looked up it seems the most common reference to JS and game programming is for web based games which makes sense, but leads me back to my point about how I feel the language if used in that way is a crutch because it can limit your horizons. I would rather know C#, C++, or maybe even python over JS.
Sacred
2

Posts: 6,545
Joined: Jun 2007
Rep: 10

View Profile
Oct 28, 2014 4:38 PM #1261274
Quote from Logic
Framework? That is a really bad argument.
C and C++ do NOT have their own frameworks. Even if they did 30 years ago, nobody uses them now. For people who are into C frameworks such as MVS or QT are given. JavaScript has JQuery and JSMVC for the same purpose. JavaScript is not worse in making games - its just the same in case of pure code (frameworks,) kicks their ass in engines (porting) and goes into a universe not occupied by them - Web programming.
In summary, saying that JavaScript is worse than C in terms of game creation is expression of opinion - it cannot be logically confirmed.
Edit: Sorry, didnt see your post there, Arch. Wrote for a rly long time.
Um, lol, JS does the same things in Unity as C#. You probably haven't researched much there. Both are used the same and work the same. The only differences are that JS is slightly faster and the code can be almost twice shorter.


I honestly have no idea what you're trying to prove right now. There is no argument. It's a Universal understanding throughout most of the coding world that JavaScript's main functionality is interface within the browser. I understand that this can be implemented into programming things such as games. But JavaScript was developed in order for users to have interactions with a browser-based app/website. Fact: JavaScript is a scripting language. Any language in C is a programming language, and most definitely a preferred method over any scripting language as a tool to design a game. This is unarguable. As such, JavaScript standing alone is not going to design a game. It might design the responsiveness of the game to the user, but it also requires other frameworks. I'm also a little in question on what you think a framework is. jQuery was as well developed for the browser mostly to do with document traversal. But it's an extension of JavaScript, not JavaScript alone. Sort of like how Rails is an extension of Ruby. Or PHP being another extension of JS.

I don't know if you're just trying to stand up for your method of creating games. But I just want you to know that we're not stating that your method is incorrect. If it works then it works. I'm just saying that it's a pretty well agreed-upon understanding that the C languages, and Java, are much more handy when it comes to that. Scripting languages well...script.
Logic
2

Posts: 314
Joined: Jan 2013
Rep: 10

View Profile
Oct 28, 2014 4:42 PM #1261275
Quote from Arch-Angel
I sorta have to take your word for it because I truly don't know much at all about JS, all I do know is that from everything ive looked up it seems the most common reference to JS and game programming is for web based games which makes sense, but leads me back to my point about how I feel the language if used in that way is a crutch because it can limit your horizons. I would rather know C#, C++, or maybe even python over JS.

Honestly, i do not have any intention, neither do you, to argue, but the deal is slightly different from the way you picture it.
JavaScript in Unity is just as usable as any other language there is. If you look into the standard assets, you will find that most of the scripts there are JS.
In frameworks, which is deeper, JS is just as fast, just as usable and flexible as C or anything of the sort. I honestly don't know why people bitch so much about JS being inapplicable in frameworks (No hard feelings, Sacred :D). Get JQuery and fart out any engine you want.

As for Python, i honestly do not recommend going that way. Neither frameworks nor anything else. It has a kind of a weird syntax and its own framework sucks Hitler's balls. It cannot even build programs into .exe. I am not talking about a GUI.

Edit: DAMMIT SACRED HOW ARE YOU SO ACTIVE:(
You are referring to C and C++ as more than just programming languages here. That is the problem. Now when you say "framework," what do you mean? A C/C++ framework is mostly defined as Microsoft Visual C++ or something of the sort. Is it an extension - it is not C nor its original framework. It simply a console called "framework" hidden uner a ton of GUI. (Which languages like Python don't have)
My point is, you have a wrong picture of what C and its brothers are - they are also scripting languages - they are NOT frameworks. Frameworks are written aside from them - like Microsoft Visual Studio. If you do not have that installed, you cannot make a game regardless whether you know C++ or not. Just like JS.
Therefore i conclude that saying C++ is better than JS because it is a frameworm makes no sense. C++ is not a framework. It is a scripting language. If you would add "script" to C++, e.g. CScript, you wouldn't change anything in definition.
Sacred
2

Posts: 6,545
Joined: Jun 2007
Rep: 10

View Profile
Oct 28, 2014 4:51 PM #1261280
Quote from Logic
I honestly don't know why people bitch so much about JS being inapplicable in frameworks (No hard feelings, Sacred :D). Get JQuery and fart out any engine you want.


I'm afraid I'm now not really up for taking your entire side of this conversation seriously. Not once did I say JS is inapplicable. This whole conversation has been my telling you that although your method works, it's agreed by most of the programming community that C and Java are the designated languages to use. It sounds like you're mostly "arguing" for JavaScript because it works within this Unity program that I will admit I don't have too much knowledge about. But for you to pronounce jQuery as such sorta trounces your support and confidence in it. Once again, I'm not doubting that your method works. That's not what any of this was about. But go ahead and fly across the web about programming games, and you will see plenty of people discussing the workings of C, C++, C#, and Java way before you come across Unity.
Logic
2

Posts: 314
Joined: Jan 2013
Rep: 10

View Profile
Oct 28, 2014 5:15 PM #1261283
Let's put this issue to an end.
My side is this: the point that JavaScript is not as good as C or Java in terms of frameworks is an opinion and is not a reasonable conclusion. Both are equally capable of doing the same things.
Lets put a period there unless you have anything else to say. Cheers.
Sacred
2

Posts: 6,545
Joined: Jun 2007
Rep: 10

View Profile
Oct 28, 2014 5:23 PM #1261284
I do have something else to say, my fellow commie.

Explain to me how Unity works and how you use it, since you seem very encouraging of it. I'm interested.
Jeff
Administrator
1

Posts: 4,356
Joined: Dec 2007
Rep: 10

View Profile
Oct 28, 2014 5:23 PM #1261285
I don't agree with what you seem to be implying. You acknowledge that Javascript CAN be used but then go on to act like you shouldn't us it. Part of being a good programmer is choosing the right tools for the job, some times using a high level programming language is overkill. Just because Logic wants to use jQuery doesn't mean he's wrong or less of a programmer, you can do quite a bit with jQuery and I'd argue that it's exactly the right tool if you're targeting certain platforms. It's not like he's not going to be able to get help if he chooses that method, either. There are plenty of dedicated communities for every programming language.
Sacred
2

Posts: 6,545
Joined: Jun 2007
Rep: 10

View Profile
Oct 28, 2014 5:27 PM #1261286
I don't want anyone to have any misconceptions of what I was getting at so I'll clarify once more: I'm not saying his method is incorrect at all in the slightest. I was speaking in terms of usability as a developer to achieve your certain goals. Obviously yes, by all means, use whatever language you feel works for you. I'm not disagreeing with his claim that he can easily build with Unity what most other developers build with programming languages. In fact that's why I'm now asking him how he uses it. If you can achieve something with a language you already know what most others would tell you you'd have to learn a new language to do, that's a good achievement and I'll give credit where credit is due.

And Jeff I know you have some background in this category. Care to share what you've worked with?

EDIT: I just looked into Unity a bit. And while I understand that JS is affiliated, it seems that Unity uses it's own language called UnityScript. And from what I understand, the syntax is INSPIRED by JS. But I don't think that certifies that it's the same. If this is true I'm afraid that this whole concept of using JS on your works might not be accurate, Logic. But I don't use UnityScript, obviously, so tell me how I might be thinking wrong.
Logic
2

Posts: 314
Joined: Jan 2013
Rep: 10

View Profile
Oct 28, 2014 5:50 PM #1261287
Quote from Sacred

EDIT: I just looked into Unity a bit. And while I understand that JS is affiliated, it seems that Unity uses it's own language called UnityScript. And from what I understand, the syntax is INSPIRED by JS. But I don't think that certifies that it's the same. If this is true I'm afraid that this whole concept of using JS on your works might not be accurate, Logic. But I don't use UnityScript, obviously, so tell me how I might be thinking wrong.

Could you please give me the source for this so called "UnityScript?"
All my years with Unity, i have never encountered such a thing lol
When you create a script, it's just a drop-down menu out of which you get to pick JavaScript, C# or Boo. You pick one, a Notepad++ kind of thing shows up (MonoDevelop) and you write the script. It is true that Unity did not implement JavaScript directly - it adopted the same syntax and simply added new classes, but it never renamed it to something else.
I am totally honest. I can give you a screenshot if you want.