Python vs C++

I khow a little bit of both. In which one should I go deep in in order to be able of develop a videogame for Linux?

Attached: Ask.jpg (602x466, 32K)

Other urls found in this thread:

godotengine.org/
en.wikipedia.org/wiki/List_of_best-selling_video_games
stackoverflow.com/q/15647789
stackoverflow.com/q/28862834
github.com/CRYTEK/CRYENGINE/blob/release/Code/CryEngine/CryEntitySystem/Entity.cpp
twitter.com/AnonBabble

Vidya is c++, unless you want to make jap porn game, then python and renpy it is

learn godot and gdscript

Try python + pygame

Lua

depends if you want it to be shit or not

Ofcourse no user.

>brainlets actually think there are that many steps to outputting text in cpp

honestly, it depends on if youre confident in your ability to read your code. cpp and python are strikingly similar in many cases (granted python has added functionality to make it more compact at times), but i literally cannot get over the annoying indentation faggotry. id much rather write more slightly more code in a more complex language than write less while abiding by annoying ass rules.

I have never played a game in python that wasnt shit, dont know if its because the developers were bad, or python is just bad. C++ would be harder, but you would be able to do much more with it. Just learn Vulkan

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

Attached: 1526846871343.jpg (520x700, 136K)

>Just learn Vulkan
He barely knows how to program, and you want him to start with the most difficult graphics API possible?

Suck a cock.

Its not that bad user. Its actually nicely setup IMO, but yeah probably dont learn vulkan yet OP, you'll want to kill yourself. Just use some game engine that already has a million tutorials.

It's possible, sure, but I'd definitely recommend OpenGL or DX 11 first. Far simpler for a beginner, and the concepts you learn translate into Vulkan well.

>int argc, cat ** argv
WHO THE FUCK DOES THIS?

Attached: 1521908657125.jpg (500x474, 72K)

Do what?

its to make it look more complicated, C is for losers who watch anime all day. Real programmers use Javascript.

Attached: deathgrips.png (1080x1074, 858K)

?

>dx11
>op says he wants to make a game for Linux

just use WINE lel

So don't use that then? It was just an example of an easier API to start with.

it compiles without it

Attached: Capture.jpg (555x419, 49K)

No shit. You can pass arguments to the program with it though.

Java

Did you not know that its meant for passing arguments in on execution?

This

It doesn't matter what language you use. Pick what you're comfortable with and start.

Your first game will be shit no matter what.

>He doesn't know about the secret third argument to main

Attached: Screen Shot 2018-05-20 at 1.34.44 PM.png (1634x1010, 301K)

>java
>vidya gayme
>java gui at all
>java anything

Attached: DWlJzBVW0AABtr7.jpg (750x766, 64K)

Misleading. Most of the time, it would end up like this in python:
def main():
print("Hello, world!")

if __name__ == "__main__":
main()

Anyone on planet earth making a program that takes arguments from a CLI?

python is no good for videogames, it's too slow

go look at pygame's list of games that use it and see if you recognize any

C/C++ with Lua. Lua is sort of similar to python, but actually has use in making games. Lua is also really easy to embed in applications and has a great binding on both ends as well. Lots of games use it.

Both are useful to know.

>see if you recognize any

>Battlefield 2
>Civilization IV
>Eve Online
>The Sims 4
>Vampire: The Masquerade - Bloodlines
Well, I do.

What a useless language.
In R, it would be:
"Hello, world!"

libgdx and minecraft.

I think Javafx is pretty neat.

Ok, and what's the point to pass arguments to a program that prints a "hello world" ?

You can name them however you want. And arguments in C are pretty simple.

Whoever made the picture is a retard trying to show how ebin python is

There isn’t. But there are also very few “ussful” programs that neither have a gui nor take arguments passed via command line.

With GoDot you can use both.
Python for game logic and C++ for time-critical functions.

>godotengine.org/

Hello world is a useful program because it shows your toolchain works.

THAT } IS NOT INDENTED PROPERLY

I'm gonna indent my dick in your mum m8
also define { as begin and } as end

hello would has no practical application outside of a programming environment

if you’re making a useful tool that other people will end up using, 99% of the time it must either have a ui or take args. Even ncurse style programs still take args.

en.wikipedia.org/wiki/List_of_best-selling_video_games

that java clone from microsoft is used in the most popular game engine

I don't disagree.
But you argue that there should be arguments to a hello world program and I disagree.
In my projects, this would mean a compiler error because of unused variables.
Some applications might only take a config file as input and that is fine too.

> (OP)
>Misleading. Most of the time, it would end up like this in python:
>def main(): print("Hello, world!") if __name__ == "__main__": main()

TopKek fo sho!

Attached: 1523678185051.png (439x456, 311K)

use godot
it's worth it

Yeah, you don’t have to use argv if you’re making a small program that doesn’t need any form of input, sure.

But
>this would mean a compiler error because of unused variable
I don’t know of any C or C++ compiler that would complain about unused variables from main.

The whole thing is a dumb thing to argue about anyway.

to make sepples look overcomplicated and python look cool

That is not argument for java. Java manages to make opengl stutter and javafx is literally on the same boat as electron

it is a better argument than assertions pulled out of your ass

>stackoverflow.com/q/15647789
>stackoverflow.com/q/28862834
Stick to writing bloated spring code poojeet.
GUI is not for you

Virtually all of the AAA games are made in C++. Any language with a garbage collector is pretty much an non-starter if random framerate drops would be a problem for your game.

Java is really bad because its object-oriented, which produces poor locality (lots of cache misses) but its interpreter is still faster than Python's because its static typed.

C++ is object oriented too, Java is "bad" because its JIT compiled, which makes it less efficient than actually compiled C++.

>inb4 you dont have to use Objects in C++
then just use C

So this is autism..

I've been using IntelliJ IDE daily and Bitwig Studio on the weekends for several years now and they're both written in Java

virtualy all of the AAA games made in C++ use OOP
ex. github.com/CRYTEK/CRYENGINE/blob/release/Code/CryEngine/CryEntitySystem/Entity.cpp

B-But OOP is for Pajeets thats what gee told me!!!

Should first look into some libraries/engines you wanna lose.
With that said, its generally better to learn c++ over other things. You learn more about programming with c++ than with py.

Objects are actually useful for vidya games as long as you don't go overboard

you are a fucking retard

Attached: images.png (190x266, 4K)

>hello world

Wojakposters should be fucking murdered in the streets

>i cant read a thread