What is the most cross-platform friendly coding language?

Let's say I want to create an FPS game, say, clone Crysis so that everyone understands what type of graphics and performance I will use. What is the best code for writing this game as easy as possible to port it to all common platforms? Of course, I want the application to feel and carry the platform. It also means that you can easily take advantage of the new Snow Leopard features, such as the new OpenCL and Windows 7 features. I understand that the GUI is written separately for different platforms, and that’s not a problem.

So my question is what is the best language to work with. I'm not looking for a solution for everyone, but more like a kernel language. I guess one way to say that the best language is if you need to port the same program to Windows, OS X, and Linux? Java is out of the question.

+3
source share
11 answers

C (and now for some addition to reach 15 characters)

+20
source

Have you ever seen the Blues Brothers? In the film, Jake and Elwood go into a tramp to make a concert and ask what kind of music they like, what the woman behind the bar answers:

We have both types: country and western.

? , 3D-, , ?

: C ++.

+12

++. "if #define" ( , / ). .

- .

+3

, C , C89, Visual ++, MinGW gcc C99 (V++ 2008 C99, , ++ ).

, GNU , .

, , Lua Python , C, .

+3

Lua . ANSI C, , : ( , ) ++ : C , lua. , , !

+2

Java, , , . Java, , "" , -, JavaScript, CSS HTML/5, , , , ... =) FPS Java, , , , # ++, , , , .

+2

, , . , Java (Python - ), . , , </intelligent-looking-padding> C ++.

: . wxWidgets.

+1

- ++, - ; , C. !

API, , . -, ​​ Qt wxWidgets GUI. .:)

+1

, C/++ , () .

"", , , , , C/++. 2 Lua Tcl.

Lua, , WoW , . , Tcl " " ().

0

++ - . , . SCons CMake /make Windows/Linux/MacOS.

0

C - , - . , ++, , python. sfml pygame.

0

Source: https://habr.com/ru/post/1717001/


All Articles