we can develope a game by using a c language

Dani AI

Generated

Good follow-up, — and is right: you can make games in C. To expand usefully: C gives low-level control but has no built-in graphics/audio/input, so you rely on libraries. C++ adds language features (classes, RAII, STL, smart pointers) that make larger projects easier to structure. Many professional engines use C++ (for example, Unreal Engine) and it is a common choice for performance-sensitive code.

If you are starting, pick a scope and toolset. For small 2D projects try libraries like SDL ([https://www.libsdl.org/]) which has a C API, or SFML ([https://www.sfml-dev.org/]) for a C++-oriented approach. For 3D you'll either use graphics APIs (OpenGL/Vulkan/DirectX) or an engine; for build systems use CMake ([https://cmake.org/]) and a modern compiler (g++, clang, or MSVC).

Quick practical tips: begin with a tiny project (pong or a top-down shooter), separate game loop, keep a fixed timestep for physics, and separate rendering from game state. In C manage memory carefully; in C++ prefer RAII and smart pointers. Use sanitizers and profilers early to find leaks and hotspots. If you tell us your target platform and whether you want pure C, C++, or an engine, we can point to specific starter tutorials and libraries.

Recommended Answers

All 2 Replies

no it is not solved

we can develope a game by using a c language

Yes, you certainly can.

no it is not solved

What?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.