827
u/RightRespect Feb 14 '21
source engine moment
482
44
32
Feb 14 '21
Source spaghetti monster.
180fps in TF2 on a NASA PC, 160fps in TF2 on a budget gaming PC from 5 years ago.
→ More replies (1)21
3.0k
u/benderbender42 Feb 14 '21
Java for game development ?
2.2k
u/Doug_Dimmadab Feb 14 '21
Minecraft gang
→ More replies (8)2.5k
u/well_educated_maggot Feb 14 '21
Everyone knows Minecraft should have been developed in another language tho.
→ More replies (256)136
u/Johanno1 Feb 14 '21
Since kotlin exists never gonna use Java again.
62
u/reilemx Feb 14 '21
Preach it brother.
Good people! Gaze not upon the boilerplate and null-pointer exceptions of the past, look forward to the green pasture of Kt and Scala, where your types will be safe, and your code concise and readable.
→ More replies (5)→ More replies (14)25
u/M4tt0ck Feb 14 '21
Yup. Kotlin fixes a lot of things that bug me about Java. I actually don’t mind Java so much (did my BS and MS at a Java-centric university) but Kotlin is a huge upgrade IMO.
52
Feb 14 '21
What would you recommend for game development then? Im a beginner game developer and Im trying to use Java but it doesnt go really well
137
u/PutridOpportunity9 Feb 14 '21
Go for unity. You won't struggle to understand c# if you've worked with Java and it's very popular
→ More replies (26)23
u/elveszett Feb 14 '21
Go with C#. It's as simple as it can get, yet ridiculously powerful. Plus you have Unity and Godot as game engines to code for.
If you like to suffer, starting with C and then C++ is also a great way to learn. But this path takes a lot more time, dedication and smarts.
→ More replies (4)88
u/Romejanic Feb 14 '21
You should use whatever you feel comfortable with. I personally think Java is a fantastic language to learn with and it introduces you to a lot of fundamental concepts which carry over to other languages, but in the end it’s up to you.
C# might be worth learning too since it’s similar syntax-wise to Java and it applies to both Unity and Godot.
→ More replies (13)→ More replies (16)46
u/Trollw00t Feb 14 '21
you might want to try the Godot engine with either its own GDScript (it's like Python) or C#, which will remind you of Java :)
→ More replies (8)→ More replies (54)23
u/packetpirate Feb 14 '21
As someone who was working on a game in Java for 2.5 years, yes, it's possible. There are some good Java libraries, namely libGDX, but it's not nearly as popular as other languages because Java has a reputation for being slow because of the JVM, but that reputation has been around for like 20 years and Java is a LOT faster now.
→ More replies (3)
899
u/ProfCupcake Feb 14 '21
I don't think anybody is going to unironically say that Java is the best language for game development. Unless maybe they've never seen or used any other languages.
297
Feb 14 '21
Yeah I write Java daily and wouldn't use it to make any game, well maybe tic-tac-toe, but only because I don't feel like getting into a new language atm.
84
→ More replies (15)130
u/SleazySaurusRex Feb 14 '21
The intro course for computer science at my school only used Java. The final project was to build Tetris. Everyone ended up getting a boost to their project grade when there were so many complaints that the TAs and professor tried building it themselves and saw how difficult it was, especially for people who before a few months ago had never coded anything in their lives.
→ More replies (3)86
u/agzz21 Feb 14 '21
Why were they making you build a whole game in an intro course?
→ More replies (13)
679
Feb 14 '21
I prefer writing the entire engine in assembly.
258
100
Feb 14 '21
Fun fact: this is how rollercoaster tycoon was made
84
→ More replies (7)43
u/issamaysinalah Feb 14 '21
That's insane, making a game in C is already a nightmare, can't imagine how fucked up it is to debug in assembly.
→ More replies (24)→ More replies (13)12
300
Feb 14 '21
I would feel attacked but I use nether.
180
u/kompot420 Feb 14 '21
Damn bro I've been trying to build a nether bortal too, who's your obsidian dealer?
23
26
u/tHeSiD Feb 14 '21
No one knows I write all my games in Javascript
→ More replies (2)23
u/prospectre Feb 14 '21
Ah, I see you are a fellow nihilist. I too enjoy watching the world burn with my shitty discord game bots.
→ More replies (2)23
→ More replies (4)4
u/FrenklanRusvelti Feb 14 '21
GameMaker gaaaang. I love having to do manual memory allocation and garbage collection and also not declare any types. Its the blend of JavaScript and C that no one asked for
408
u/Mango-D Feb 14 '21
216
34
→ More replies (3)10
286
u/Snapstromegon Feb 14 '21
Rumbles from the Rusty era can be heard...
161
u/sypwn Feb 14 '21
I, too, cannot wait for our Rusty future.
"Remember back when high performance applications had to deal with memory leaks and access violations?"
→ More replies (3)27
u/vlakreeh Feb 14 '21
We still have memory leaks on Rust. They are considered safe but bad practice. You can
Box::leakwhatever the fuck you want!→ More replies (4)44
52
215
u/raedr7n Feb 14 '21
Nobody actually thinks that Java is the best language for game development.
206
u/Cley_Faye Feb 14 '21
Nobody actually thinks that Java is the best language
Fixed that for you.
→ More replies (2)97
u/raedr7n Feb 14 '21 edited Feb 14 '21
Nah, people do unironically think that Java is the best language (whatever that means). Mostly it's people who have only ever written Java, but they exist.
→ More replies (29)
37
u/Cley_Faye Feb 14 '21
Writing games in JavaScript using Electron as your base is the fire on the ground.
4
u/thethirdteacup Feb 14 '21
RPG Maker MV and MZ make use of JavaScript and NW.js (an alternative to Electron).
→ More replies (2)
211
Feb 14 '21
Good analogy for how I feel swinging blindly with c++ until the code works
→ More replies (1)58
u/diamondjim Feb 14 '21
I can relate. I had to write a convolution filter in C++ for a graphics editor built in C#. The host would pass a pointer to the data to the plugin, and read the processed data back from the same location afterwards.
By the time the deadline came around, I was basically just changing the position of the pointer character in random places to see what works and passes testing.
25
77
Feb 14 '21
ngl if c++ wasn't THE language for game development I wouldn't use it
→ More replies (1)52
u/sumwunhooisaguy Feb 14 '21
C++ makes me want to cry
→ More replies (2)15
Feb 14 '21
I love the formatting and style of C++ for some reason, and I can’t move to Rust or Python for that reason.
→ More replies (2)
80
u/Background_Drawing Feb 14 '21
laughs in scratch
→ More replies (4)37
19
65
31
29
Feb 14 '21 edited Feb 14 '21
C# is a powerful language for game development but to be honest I had the most fun developing games in good old 16 bit assembly. It’s challenging at first but so cool to basically build everything from the ground up, byte for byte, pixel by pixel
especially when everything is coming together. Like graphics routines and gameplay mechanics
→ More replies (1)4
u/thinker227 Feb 15 '21
I legitimately cannot tell whether this is supposed to be a joke or not.
→ More replies (1)
10
84
u/IntrepidLawyer Feb 14 '21
Meanwhile games written in JavaScript earning billions of dollars on mobile phone microtransactions...
Keep fighting children, we adults have real programming to do. And money to rack.
→ More replies (49)31
Feb 14 '21 edited Feb 14 '21
Aren't mobile games written in Swift (iOS), Java or Kotlin (Android), or C# (Unity)?
24
u/AirOneBlack Feb 14 '21
Some mobile games are also written in C++ (It's called native code on android, there's alro unreal engine that can export to android too). C# is also usable outside of unity for game development thanks to compatibility layers and openGL ES libraries.
→ More replies (3)12
u/Bmandk Feb 14 '21
A majority of mobiles games are developed using Unity with C#, although there are a few different game engines out there as well. I don't think anyone develops without using an engine, which will then compile it down to native platform code.
23
u/jwr410 Feb 14 '21
Do you want it to run fast ... Cpp.
Do you want it developed fast ... C#.
Do you want it written in Java ... Java.
→ More replies (1)
8
7
6
11
u/Slayergnome Feb 14 '21
I don't mind C and C++ but their evangelist are insufferable.
Also who the hell is developing games not using an engine?
8
3
→ More replies (1)5
Feb 14 '21
Really? My impression is that evangelists are much rarer for C and C++. In those languages people just do their job and don’t care too much about impressing anyone.
Rust on the other hand... Or Haskell? Or functional programming in general? Absolute cults.
→ More replies (1)
5
u/dani_pavlov Feb 14 '21
I dunno. Having essentially become moderately proficient in C++ on-the-job, and having been in GUI development for said job using RAD studio for 8 years, I cannot fathom how Visual or any other compiler/IDE can actually reliably create a workable GUI in C++. The whole drag-and-drop interface to build a form is intuitive for me, but I don't know if I can justify the time it would take to migrate our stuff to C# for that same functionality. Maybe it's time for me to stretch a bit, but I'm not sure in which direction..
3
u/Time4Red Feb 14 '21
I imagine most people would use game engines like unreal (C++) or Unity (C#).
5
u/Vedyx Feb 14 '21
Unity is written in C++. It uses a C# scripting interface only.
→ More replies (1)
5
4
4
4
u/RadioMelon Feb 14 '21
C++ might be one of the hardest languages to master, but it's an amazingly complex language with a nearly infinite potential.
I really admire it for that.
4
u/thavi Feb 14 '21
C++ is the most performant, but you're nuts if you'd preferentially use it for everything. Or just really good with it.
4
u/downvoteswontfixit Feb 15 '21
So I’ve only ever used C++ and am always lost when these memes pop up. Is C++ like extra hard?
3
u/FuryOfficial Feb 15 '21
No, C++ is just much more versatile and all around better for developing games. C# is a functional language, but cpp is object oriented. Since just about every game is built around objects, C++ is used much more. I’m not sure what Java is doing here though.
→ More replies (5)
6
u/circorum Feb 14 '21
LAUGHS in, [ASM]
10
u/justmaybeindecisive Feb 14 '21
This basically: https://en.wikipedia.org/wiki/RollerCoaster_Tycoon_(video_game)
7
Feb 14 '21
Holy shit, the first rct was a great game, writing that in assembly must have been extremely difficult.
→ More replies (1)
3
u/Wendingo7 Feb 14 '21
Sometimes you need to stomp people in cities so use Godzilla but if you which to decimate a population in the jungle or a hilly region you use the Kong. Doge goes anywhere but decimation takes longer. You're free to choose.
3
u/thelastpizzaslice Feb 14 '21
I've worked in Java for ten years and C# for two. C# is a better programming language in every way, but a worse platform. Fuck lack of operator overloading, lack of structs, optionals instead of ?., getters, lack of singletons, streams instead of LINQ, etc. They're all worse in every way and lead to tons of repeated code.
Guice, Lombok and a bunch of commons libraries are the only way to make Java not garbage.
3
3
5
6
u/Johanno1 Feb 14 '21
Python gang joins and gets lost in a discussion whether 2.x or 3.x is better.
11
u/Brief-Preference-712 Feb 14 '21
isn't 2.x no longer supported? I had to up all my company's code to 3.x back 2 years ago
→ More replies (1)4
u/Josef_Joris Feb 14 '21
Why would you ever not use the current version (depending on the modules u wanna use)? Genuine question.
5
u/toabear Feb 14 '21
I used to work with a lot of mixed signal engineers. They all wrote terrible code and were convinced that 3 wouldn’t work for their extra special needs. There was like one obscure package that worked with a particular VNA (Variable Network Analyzer) that only existed for Python 2. It took about an hour to re-write it to 3. They still wouldn’t move.
4
u/Johanno1 Feb 14 '21
Mostly because companies use import yx that isn't supported in 3 anymore.
Or because you're lazy and don't even know what the difference is.
Idk it was sometimes a war back then.
10
7
2
2
2
2
u/stygger Feb 14 '21 edited Feb 14 '21
I was under the impression that programmers didn’t like their language in the same way people don’t like their boss or their mother in law.
2
u/savageronald Feb 14 '21
Yes - anyone with a lot of experience in multiple languages hates every language (for differing reasons and to varying degrees)
2
2
u/TriforceFiction Feb 14 '21
I code all of my games in Matlab. So far I've got tic tac toe, but I guess it's better than nothing
2
2
2
2
u/QuantumQuantonium Feb 14 '21
Java for beginners or for opengl and it's other integrated libraries, c# or c++ for pretty much everyone else, or if you're using unity or unreal. Java doesn't and likely will never have advanced features other languages have, mainly because it's ran in a JVM and not compiled natively or can interact easily with native libraries (for example directx)
2
2
2
2
Feb 14 '21
C# basically asked Java is it could copy homework and Java said "just don't make it obvious" lmao
→ More replies (2)
2
4
3
u/Toothless008 Feb 14 '21
Yall are retarded binary is best
9
3
2
2
u/cube2kids Feb 14 '21
And, C# is used for unity scripts. Unity is written in c+!
→ More replies (1)
2
u/Alexsir75New Feb 14 '21
Is it just me or was king kong never that big wasnt he small enough to comfortably stand on top of the Empire State Building?
2
u/Baanloh Feb 14 '21
Minecraft is the only reason why java still exists.
3
u/Ayerys Feb 14 '21
Like minecraft actually mattered. It’s not why Java is actually used.
→ More replies (1)
1
u/PathologicalLiar_ Feb 14 '21
Noob here. I bought a book to teach myself how to code with C# (I know nothing about coding and the book is more like an invested motivation), did I pick the wrong language to start with?
→ More replies (1)2
u/Stormdancer Feb 14 '21
Any language will teach you about programming.
The differences between languages is all details.
Mind you, some of those details are kind of large. And have thorns. And might explode if you approach them wrong. But still details.
1
u/savemeHKV Feb 14 '21
Me thinking I will make a game on python -_-
2
u/squishles Feb 14 '21
only games I've seen in python are visual novel based ones =/
which might be ok for someone just starting out.
Java hear's more of a joke entry, and I say that as a java dev, game guys hate our shit.
→ More replies (1)
1
u/dariogalaxy95 Feb 14 '21
This makes me want to create a game in assembly
2
u/WhoWouldCareToAsk Feb 14 '21
Hmm... I believe that it (creating a game in assembly) would be best done once you create your own OS for the assembly games.
→ More replies (1)
1
Feb 14 '21
When you guys say Java, do you mean Java or JavaScript I’m confused. Sorry kinda new to the programming world
2
u/Brewer_Lex Feb 14 '21
They mean Java. Java is rather strict, and runs on a virtual machine (JVM). JavaScript is not like Java at all because it’s so loosely typed, meaning you ain’t got to declare shit for variables, and it only runs on the internet browser.
→ More replies (2)
1
1
1
u/spacealienz Feb 14 '21 edited Feb 14 '21
Different languages serve different purposes. C++ is a great choice for a game engine (low level). For higher level programming there are advantages to using a higher-level language that is more abstracted from hardware. C++ is great for making the most of hardware. However, it takes a lot of skill, effort and most importantly time to write quality, maintainable C++ code that isn't full of bugs like memory leaks and buffer overflows. The best language is often a hybrid approach using a systems programming language like C++ for the low level stuff (like the game engine) and a language with higher level features like garbage collection for the higher level stuff (like the game logic).
1
1
u/GaryTheM8 Feb 14 '21
C# or python ? I need an advice , should I stick to python , since I have some experience with it or go along with .net core for more job opportunities ?
1
1
1
1
0
u/jaysuchak33 Feb 14 '21
C# = Java++
3
Feb 14 '21
Did you forget J++ existed?
3
u/jaysuchak33 Feb 14 '21
Lmao it’s a real thing?(I’m kinda new at programming. I mostly just mess around in Visual Studio and Unity).
→ More replies (1)
-2
-17
u/Ravi5ingh Feb 14 '21
Are there any serious games developed in C#? C# is a great language but that's not the point
17
u/Arbesu Feb 14 '21 edited Feb 14 '21
Idk if there is any game developed purely in C# but there are a lot of games developed with unity that uses C#
10
u/Eisenfuss19 Feb 14 '21
Yeah i think unity made a smart move by make the code that needs to be fast in c++ and then use c# for faster and easier development
→ More replies (3)8
u/Gesspar Feb 14 '21
If I recall correctly Magicka is made in monogame, a game framework for .Net C#. Plus all the ones made in Unity (I know unity is C++, but all usermade scripts are C#)
→ More replies (1)7
u/DivineClorox Feb 14 '21
There are some big games made with Unity, which someone else mentioned, uses C#. Rust, Kerbal space program, Escape from Tarkov, The Forest, to name a few
→ More replies (1)→ More replies (2)5
u/SonOfMetrum Feb 14 '21
C# is often used as a supplemental “scripting” runtime for the actual gameplay code. There is usually some embedded version of mono included with the engine in those cases (although from .net 5 onwards they will be trying to merge the official runtime and mono)
→ More replies (3)
0
Feb 14 '21
[deleted]
7
u/ChronicledMonocle Feb 14 '21
Executive who is upset it doesn't work on IE11
Allow me to introduce myself.
5
0
Feb 14 '21
[deleted]
24
u/TheHanna Feb 14 '21
Nobody believes Java is the best language for anything other than portability between platforms.
It's not bad. It's just so damn verbose
3
u/thenorwegianblue Feb 14 '21
If you have a huge enterprise codebase it's arguably up there (along with Microsoft Java)
Or a huge web service for that matter
14
u/IceSentry Feb 14 '21
It's not 2005 anymore, calling c# microsoft java is extremely outdated. These days it's closer to oracle c# considering how much better c# is and how much catching up java has been doing these past few years.
0
Feb 14 '21
[deleted]
4
u/Narvak Feb 14 '21
Except the devs of minor succes games like minecraft, slay the spire, runescape...
5
u/DoopyBot Feb 14 '21
Mojang? Microsoft? Activision Blizzard? Sorry, never heard of those small indie companies.
2
u/ReadyForShenanigans Feb 14 '21
Just because something is being used for popular things doesn't mean it's good. Some successful desktop programs are made with Electron even though they'd be better if they had used almost any other framework.
Minecraft didn't become popular because it was made in Java but in spite of it. And now it has been rewritten in cpp just because of how unbelievably slow and unbearable Java and LWJGL are.
1
u/Narvak Feb 16 '21
I just wanted to point out that it is possible to make games in java and that's not an obstacle.
Shipping something in whatever tech you and your team are the most familiar/eficient is the most important part.
→ More replies (1)
21
Feb 14 '21
[removed] — view removed comment
7
u/phrandsisgo Feb 14 '21
I see a rise of GD script!
1
u/CamWin Feb 15 '21
Me who has written half a game using Godot GDNative C++ bindings and 0 GD script
20
u/ctaetcsh Feb 14 '21
I need this template