[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/jp/ - Otaku Culture


View post   

File: 118 KB, 648x657, 1321017279912.jpg [View same] [iqdb] [saucenao] [google]
8877087 No.8877087 [Reply] [Original]

The real question is:
C or C++?

for games

>> No.8877094

Assembly

>> No.8877095
File: 598 KB, 654x900, 5896c8eb4dd1559a1d681cd47c92e9b9.jpg [View same] [iqdb] [saucenao] [google]
8877095

love2d

It's soft as heck!

>> No.8877097

C++ or C#. Although DirectX and OpenGl are written in C...

>> No.8877101

C++

You need to be really good at C to produce something remotely usable. Sepples on the other hand, is the PHP of game programming.

>> No.8877106

C#

It's easy, simple, and accomplishes 99% of whatever game creators on 4chan would ever want to make.

Why use some complex and overly complicated tool when there's a simple alternative that will get the job done? It's like pirating photoshop so you can draw stick figures. Just use paint.

>> No.8877104

i only know some python and ruby

come at me

>> No.8877110

Unless you want to write everything in one class, you best be using C++, nigger.

>> No.8877108

>>8877101
>Sepples on the other hand, is the PHP of game programming.
Is this good or bad?

>> No.8877116

You can get over 20k in funding on kickstarter with fucking RPG maker

Just use that

>> No.8877121

>>8877108
It's good in a sense that it's much easier to use than C.
And if you want to go completely full retard you can try C#/XNA, it's even more brainless.

>> No.8877118

>>8877106

because C# has/uses proprietary libraries.

>> No.8877119

Obviously Sepples. Object-oriented programming is clutch for games.

>> No.8877124

If you are making games a hobby it doesn't matter too much what language you use. Use a language you like with expansive libraries for rapid development.

If you really want advice, I'd go with C# (XNA) or with Java (AWT/Swing).

>> No.8877125

>>8877121
I wouldn't call XNA full retard. More like full cruise control.

>> No.8877129
File: 23 KB, 198x198, ange-eyeroll.png [View same] [iqdb] [saucenao] [google]
8877129

>>8877125
It allows you to go full retard by being full cruise control.

>> No.8877130
File: 294 KB, 800x1131, 2f65a15546230f4beb8bf44ed7132d03.png [View same] [iqdb] [saucenao] [google]
8877130

i don't know about programming but Youmu is so cute!
^_______________________^

>> No.8877131

What makes C so hard to program games?
Besides not being object-oriented.

>> No.8877137

Beat me to it...

>> No.8877132

>>8877131
Manual memory management. Lack of STL/Boost.

>> No.8877142

>>8877087
C if you're targetting a platform where every single processor tick counts, especially if it runs on batteries.
C with C++ if you can afford to waste a couple of cycles for a nice abstraction and readability.

>> No.8877141

There is no reason for any indie game developer to learn C++ and by indie game developer I mean one guy making one game on his own.

It's just not really practical. If you want to make a 2D game then use C# / XNA or java. If you want to make a 3D game then use one of the many available engines like Unity or UDK.

If you're all alone and you want to make a game then you should pick the simplest and most efficient options or you're never going to finish it.

>> No.8877149

Why would you bother with C# or Java when you could use Haskell?

>> No.8877151

Sepples for games.

There's no way to code games properly anyway, because of all the global state bullshit necessitated by the horrifyingly designed APIs you need to use, so might as well go full enterprise.

>> No.8877156

>>8877142
Let's be real. If he "just wants to make games" he isn't going to be writing applications that require optimal performance./

>>8877149
Haskell's Maybe and Either types are clunky as hell.

>> No.8877161

>>8877149

Because ghc is over 100MB.

>> No.8877162

>>8877141
XNA is perfectly capable of doing 3d.

>> No.8877172

>>8877141

>If you're all alone and you want to make a game then you should pick the simplest and most efficient options or you're never going to finish it.

This, really. You'll likely never finish it anyway.

>> No.8877171

Will i still be a faggot if i take steroids?

>> No.8877176

>>8877156
I want to make good and optimized games.

That's why I am learning Assembly also.

>> No.8877181

>>8877132
>Lack of STL/Boost.
Yeah because there are no libraries for C (apart from, y'know, all of them) and Boost is so well designed.

C's standard library is just that anyway--a STANDARD library. Why people decided graphics, networking, music playing, cloud connectivity, and rocket ship control were "standard" features is beyond me.

>> No.8877188

>>8877176
C and a modern compiler will produce better optimizations than you ever could by hand.

>> No.8877190

>>8877161
>Because ghc is over 100MB.
Such a file size means nothing in this post web 2.0 world.

>> No.8877185

>>8877162
>XNA is perfectly capable of doing 3d.
and I'm also capable of not sucking on a cock 24 hours a day but that doesn't mean its a good idea.

>>8877176
When working with assembly it is important to learn and master antiquated architectures like C64 so you can bully people on /g/ who just want to learn x86.

>> No.8877191

>>8877185
That seems like it'd be very tiring, especially for your jaw.

>> No.8877202

>>8877171
Probably a bigger faggot than before if you don't cycle right. Taking test will make your gonads produce less as your body will not need to produce any more than you already have, so natural testosterone production will fall and your testicles might shrink.
If you cycle it right, you have to ebb out slowly out of it I believe.

>> No.8877201

>>8877131
You'll need to write a lot of things from the ground up.
You won't have nice things like RAII and smart pointers in C++ to help you with automatic memory management.

C was designed for writing operating systems. It's really bare metal, gives you very fine control, and only a minimal set of standard libraries.

C++ adds a few more libraries (double linked list, queue, regex, vector, allocator, thread, atomic, mutex, smart pointers) and nice things (OOP, RAII, exception handling, templates, operator overloading) that makes writing code less painful while still maintaining low level control. It comes at a cost: if you screw up, you screw up big.

Java is like C++, except it totally doesn't allow you to do low level control, making it impossible for you to screw up.

C# is what Turbo Pascal's supposed to be if Borland didn't screw up, and let Anders Hejlsberg move to Microsoft.

>> No.8877209

>>8877201
> what Turbo Pascal's
Meant to say Borland Delphi

>> No.8877216

>>8877191
Not going to lie around hour 14 I start to get tired and just let the man fuck my throat.

>> No.8877217

Care about Go. It's modern, it's designed by the C/UNIX/Plan 9 guys, it already has a lot of great resources/documentation/libraries, and it compiles to machine code.

Please care about Go, someone ;_;

>> No.8877219

>>8877181
>Yeah because [...] Boost is so well designed.

Are you seriously claiming that Boost is not well designed? Much of the work in Boost ends up in ISO C++, and you're making the claim that you are smarter than both the Boost working group and the ISO C++ committee you aren't.

>C's standard library is just that anyway--a STANDARD library. Why people decided graphics, networking, music playing, cloud connectivity, and rocket ship control were "standard" features is beyond me

C++ contains none of those features. You may as well wonder why C requires archaic nonsense like console I/O and ill-defined floating point.

>> No.8877228

>>8877219
Boost is god awful. It's 80% cruft. Saner alternative to some of the libraries:
http://libtom.org/

>> No.8877237

>>8877185
>and I'm also capable of not sucking on a cock 24 hours a day but that doesn't mean its a good idea.
so your saying that you never go 24 hours without sucking on a cock..?

well, this is /jp/

>> No.8877245
File: 291 KB, 1440x810, 1284523200441.jpg [View same] [iqdb] [saucenao] [google]
8877245

>>8877209
Every worthwhile feature Borland came up with was in TP7.

Delphi was just OWL with a Pascal interface and UI builder + BP7 for Windows.

There will never be a compiler + IDE as good as TP7. Period.

>> No.8877244

>>8877217
Let's form a Go user group, just you and I. We can cuddle together under a blanket and write neat things.

>> No.8877251

>>8877217
Too hipster for me.
I'll stick to C/C++.

>> No.8877249
File: 239 KB, 700x800, nexttomyon.png [View same] [iqdb] [saucenao] [google]
8877249

fortran. It's the only way to program.

>> No.8877261

>>8877228
>alternative to Boost
>libtom

What?

That's like saying refrigerator is an alternative to English.

>> No.8877263

>>8877249
there's no good reason to use fortran when there's cobol

>> No.8877260

x86 with a little bit of C for graphics.

>> No.8877269
File: 115 KB, 640x480, 3.jpg [View same] [iqdb] [saucenao] [google]
8877269

>>8877260
Sup Chris Sawyer.

>> No.8877275
File: 12 KB, 450x335, steve-austin.jpg [View same] [iqdb] [saucenao] [google]
8877275

Could a game be programmed in Common Lisp?

>> No.8877277
File: 32 KB, 221x222, 1332935923055.jpg [View same] [iqdb] [saucenao] [google]
8877277

I've been planning on making a touhou tower defense game in C++ w/SDL, but have no real motivation to start.

>> No.8877279
File: 763 KB, 1024x692, Crash_Bandicoot1.jpg [View same] [iqdb] [saucenao] [google]
8877279

>>8877275
Kinda.

>> No.8877280

A+
http://www.aplusdev.org/

You can be free your NEET lifestyle and get a job at Morgan Stanley.

Or learn SecDB and work at Goldman!

The possiblities (and money!) are endless! Why be a NEET?

>> No.8877287

>>8877275
Abuse and every Naughty Dog

http://www.franz.com/success/customer_apps/animation_graphics/naughtydog.lhtml

Although the Uncharted series was RSR5 Scheme and not CL.

>> No.8877289

>>8877275
Yes. In fact there is someone actively working on a visual programming environment for Common Lisp that is amazing for making games (http://www.blocky.io).

>> No.8877296

Can I learn LISP without knowing basic calculus?

Probably not, huh. Dammit.

>> No.8877319

>>8877296
Lisp definitely doesn't require calculus or any high level math. Lisp itself is no harder to learn than other languages, but the style of programming you do it in will require you to think differently.

>> No.8877324

So C#?

>> No.8877366

So is it time to pick up a book on LISP or a book on C++?

Which one is more forgiving to those who are inferior at math? The last thing I did in math was Taylor Series and Lagrange Error which I believe is called Calculus 2.

>> No.8877369

>C or C++
Wrong board. Also :
- C if you're hardcore
- C++ if you're lazy but want to look hardcore
- C# : Why would you do that?

>> No.8877377

>Programming
>Being bad at math
ISHYGDDT

>> No.8877385

>>8877201
>regex
Exists in C
>while still maintaining low level control.
No. Everything is black boxed. If I want a vector to not double its allocated size every time I fill it I have to write my own. Also, you pay for all the features you don't use.

>>8877366
C++, it's more widely used.

>>8877369
This.

>> No.8877388

>>8877377
So how math-heavy is it? I'm decent at math I just don't particularly like constantly doing calculations.

>> No.8877409

>>8877385
Thanks honey.

>> No.8877419

>>8877388
I recommend knowing Math because programming requires a lot of logic.

If you are good at literature, history, etc, then, forget about it.

>> No.8877427

>>8877419
"Good" at subjects that are hardly more than simple recall, good one

>> No.8877432

>>8877385
Would creating a game in C be more educational in the long run rather than doing it in C++? It won't be anything flashy.

>> No.8877450

>>8877427
Some people know how to express better or have more criativity, you know.

>> No.8877454

>>8877450
I meant being "good" at something like history, there's not much more to that than recall

>>
Name
E-mail
Subject
Comment
Action