[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Which programming language is best for coding video games?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 74
Thread images: 2

File: coding625x351.jpg (112KB, 625x351px) Image search: [Google]
coding625x351.jpg
112KB, 625x351px
Which programming language is best for coding video games?
>>
JavaScript
>>
>>60733516
isn't that a web thing?
>>
>>60733510
C.
>>
C# if you're comfortable using pre made game engines
>>
>>60733510
HTML
>>
C if you're starting completely from scratch, or else just use whatever your engine of choice supports. Now get off of 4chan and be productive
>>
>>60733528
Yes but because code camps have churned out so many js developers, companies are drooling at the prospect of using JavaScript for everything because they can get js developers for $35k per year. There are even attempts at using it for embedded systems. Eventually it will all collapse but until then, expect to see JavaScript shoved into ever software nook and cranny.
>>
>>60733510

C++
>>
>>60733533
>>60733551
>>60733609
>>60733614
Thanks
>>
>>60733510
they are all terrible
>>
>>60733510
C++

You don't really have a choice if you want to do high-end graphics.
>>
>>60733510
Consider python, it's higher level than other languages and easier to learn but can do a whole lot
>>
>>60733510
6502 asm.
>>
It's honestly a waste of time trying to make your own engine. If you want to use some of the big-boy engines: C++ for UE4, or C# for Unity. You could also use SFML (C++) if you're trying to make a 2D game.
>>
If I wanted to take a chance with game development, I'd choose JS. I'm not really a fan, but:
>It has lots of gamedev resources
>It runs in many devices with little to no effort from the developer
I wouldn't build a AAA game with it. But it seems like a pretty good starting point.
>>
>>60733510
Almost every game engine I've come across in my gamedev career has been written in C++. Almost ever gamedev job requires C++.

On mobile, there's Swift and Obj-C for iOS. Don't bother with Android gamedev since there's no jobs.
>>
>>60733528
There are tons of games that run on javascript. It's not limited to the web either. You can run it on your computer without being connected to the internet. If you're starting out, javascript would be the easiest since you all you need is a browser to run your code.
>>
>>60733698
but isn't c# better in the long run?
>>
Anything from the C family.
>>
Doesn't matter what language you learn because you're not going to flesh out your dream game anytime soon, or ever. Youll be making pong and tictactoe to learn the logic of how it comes together and then apply that to your own model.
>>
>>60733510
Java
>>
>>60734340
Hey, why not PHP while we're shitposting!
>>
>>60734373
4chan is written in PHP
>>
>>60733609
C is only good if you're making a dreamcast or any other system during that gen. Everything before was assembly everything after was c++
>>
The """BEST""" language for video games is assembly, but that's out of reach for everybody but the most autistic people on the planet.

You can write video game mechanics with any scripting or programming languages. 99% of video games is "if" statements and a series of changing integer values and True/False booleans
>>
>>60735085
have fun writing a video game in x86 assembly with all the abstractions modern operating systems provide
>>
>>60734373
I once wrote a rogue-like game in PHP + some JS/HTML for the front end.
>>
Scratch
>>
>>60735317
Then make them run it on DOS in real mode.
>>
>>60735465
haha oh wow
>>
>>60733510

Assembly
>>
It really depends on which platform ur targeting. If ur going for pc, c/c++ or lua are good bets, but for the web, go with javascript
>>
>>60735507
>ur
Seriously, how hard is it to type the extra YO for your?
>>
>>60733510
none, use a free engine instead (unity, ue4, zelda classic, ogre)
>>
>>60733609
this is like the 90s all over again
>there is nothing outside, go do your thing at home, like studying
>>
is JavaScript worth learning for fun little scripts?
>>
>>60733510
C#, with Unity/Mono.
>>
So what Game Engine does /g/ recommend then?
>>
>>60733698
JavaScript is a fucking terrible choice, no games use it
The biggest languages in gamedev are probably C++, C# and Lua
>>
>>60736252
Unity and Unreal
everyone will complain about them but they're the best choices. If you think you're too cool for that, make your own
>>
COBOL
>>
>>60736267
Have you been living under a rock? There are plenty of online games (commercial and free) that are made with Javascript.
>>
>>60736285
games embedded in your browser aren't real games
>>
>>60733712
Are there some good free engines that I could try?
>>
VHDL
>>
>>60736292
Unity
>>
>>60733510
Iv worked with C# in Unity making scripts and it's probably the same deal with C++ in unreal4 but "best" isn't really the word I'd be using to pick a language as they good for different things/plateforms like java running on everything(minecraft).
>>
>>60736309
Is it possible to use unity without the editor? Just with pure code.
I dislike the point-and-clicking, i'd prefer to just write code
>>
>>60733510
C, C++, C#
>>
>>60736383
been meaning to crack open the quakeIII engine since it's written in C and on github if your interested in the tool itself and not making the games.
>>
>>60736390
if you want to use pure code you're probably lookin for a 'framework'
there's Love2D for Lua which is good for beginners
there's Ogre3D for C++, which is bad for beginners, but I dont think you're going to find a beginner-friendly 3D engine that isn't point-and-click
>>
File: memezo.jpg (386KB, 1132x830px) Image search: [Google]
memezo.jpg
386KB, 1132x830px
C / C++ / C# (Core)

Python, Javascript, Lua (Binding)
>>
JAI.
>>
>>60733510
Pick up Unity or Unreal and learn C# or JS or whatever it is they use. Learning to draw polygons from scratch will take forever. You will take a year to learn to code Frogger from scratch. In that same year, if you pick up Unity, you could learn to make Portal from "scratch".
>>
>>60733510
Depends on the size of the game.
If it's large then C++ and UE4 is your best bet.
If it smaller C# and Unity could work. I have this game "7 days to die" it's on Unity and it's hitches every few seconds because of garbage collection. Unity is not suitable for large games.
>>
>>60736830
I wonder how AAA games like Master of Orion made with Unity can run smooth but your tiny game hitches every couple of seconds?
They must be doing something wrong.
>>
>>60736830
>because of garbage collection
no, because people using Unity don't know how to program. It lowers the barrier of entry and makes it so any dumbass can make a game
>>
>>60733712
Can you elaborate on the android part? Why are there no jobs?
>>
>>60733510
If you want to make a game that's kind of what you want and is built on top of someone else's engine, use C# or Java.
If you want more control, use C++ with OpenGL.
>>
I wonder, would anyone build a game with rust?
It has speed, safety and bindings to popular libraries in c++.
>>
>>60737003
>AAA games like Master of Orion made with Unity can run smooth
Stop playing on small maps.
>>
Making a game and programming an engine that can be used to make games are two quite different things. You can do everything by yourself but doing anything beyond the simple 'hello world' -stuff would take years. That's why most of the people end up picking something like Unity or Unreal Engine that take care of a lot of things for you. Using them still requires the ability to program though (Unity uses C# or JavaScript, Unreal is a tad harder with C++).

If you're interested in programming an engine first, take a look at a book called Game Engine Architecture, preferably the 2nd edition.

Yet, if you want to get started with very simple stuff like Breakout, Tetris, simple tower defence, space invaders, etc. Just read this https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript and start creating. You can easily create a small game per day and there's no need to set up tooling or anything.
>>
>>60737010
>no, because people using Unity don't know how to program. It lowers the barrier of entry and makes it so any dumbass can make a game
One of the things which is lowering the barrier is the GC. And those hitches do look like a GC problem.
>>60737003
>They must be doing something wrong.
Judging by tons of autistic bugs they are doing a lot of things wrong.
>>
>>60733510
For high end professional game dev, there are basically 2 options: C++ (UE4) or C# (Unity)
For smaller, indie games, you can use literally anything.
C++, C#, JS, Java, Python...
>>
>>60733614
>attempts
https://github.com/jerryscript-project/jerryscript
>>
C++ and HLSL/GLSL for graphics lua bindings for like controls and shit
>>
>>60734399
> ugly website
>>
>>60735623
Their code is probably shite.
>>
>>60736211
> fun little scripts
Python
>>
>>60736481
this
>>
>>60733812
>all you need is a browser to run your code
The unfortunate thing that made JS omnipresent.
>>
>>60737117
I think using a engine is the best bet.
>>
>>60733510
What games? If you're talking about the game I'm making then Typescript is definitely the best. If not then you should make your question more specific.
Thread posts: 74
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.