Is it possible to make games with C (not C++)?
Is it possible to make graphics games with just the C language, or do you have to know C++?
Yes it''s possible. Quake I & II were written in C. C++ is easier; objects, inheritance and polymorphism help a lot, and stl container classes help tremendously. However, using C++ doesn''t make it easy, it still involves a lot of hard work.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
its entirely possible. the quake games are all written in c. you may want to use openGL, since it uses c style functions. you can use direct3d with c also, its just a little ugly (you have to explicitly dereference the vatable pointers -- c++ does this automatically) because COM is really meant to work with c++.
C++ is easier?
It has all that stuff, which makes it more organized, but easier???!
"I''ve learned something today: It doesn''t matter if you''re white, or if you''re black...the only color that REALLY matters is green"
-Peter Griffin
It has all that stuff, which makes it more organized, but easier???!
"I''ve learned something today: It doesn''t matter if you''re white, or if you''re black...the only color that REALLY matters is green"
-Peter Griffin
"I've learned something today: It doesn't matter if you're white, or if you're black...the only color that really matters is green"-Peter Griffin
quote: Original post by matrix2113
C++ is easier?
It has all that stuff, which makes it more organized, but easier???!
Yes and No. I wasn''t trying to spark a C v C++ debate. But in the context of games, I would say yes, easier for making games: object support, ready made containers, etc... In other contexts I would say that C is easier.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
just because you could something in c, does not mean you have to use a c compiler. i suggest using a c++ compiler, but keep your layout using c methdology (ie structured procedural programming). then you get the benefits of c++ stronger type checking, and relaxed varible decalrations (ie declare varibles whereever you want vs at the type of a scope before any code).
all games developed for dos were coded in c, with some asm (mainly for changing some clock stuff, nothing you would need to do in windows, though some games did use asm for optimizing some rendering operations).
all games developed for dos were coded in c, with some asm (mainly for changing some clock stuff, nothing you would need to do in windows, though some games did use asm for optimizing some rendering operations).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement