Hi all,
Can I ask you all, what kinds of tool/api you use to write 2d game such as chess or mario?? And does a 3d api capable of making 2d game?? Currently I am using allegro as a start, is allegro old??


Thank you all!

Dani AI

Generated

Good progress so far — proving the toolchain with a GLUT triangle means the basics (compiler, include/lib paths, runtimes) are working. ’s idea of starting with higher-level libraries and moving down to raw APIs is a practical learning path. pointed at OpenGL resources; if the goal is a playable web game, consider options that target browsers directly instead of wrestling with ancient build issues.

Pick a level and stick with it for one small project:

  • If you want simple C/C++ 2D work: try SDL or SFML for sprites, input and audio (SDL, SFML). Allegro is still maintained but SDL/SFML have larger modern ecosystems.
  • If you prefer engines (faster to ship): Godot is lightweight and 2D-first; Unity/MonoGame suit C# devs and have broad export options (Godot, MonoGame).
  • For Java/Python-first workflows, use libGDX (Java) or Pygame (Python), or an HTML5 engine like Phaser for instant browser play (, Phaser).

Quick Visual Studio troubleshooting checklist (common causes when libraries “don’t work”):

  • Match target architecture (x86 vs x64) between your build and the library binaries.
  • Use the correct runtime (Debug/Release and /MD vs /MT).
  • Set Project -> VC++ Directories (Include/Lib) and Linker -> Input (add .lib names).
  • Copy required DLLs beside the .exe or install them system-wide.
  • Prefer package managers/build helpers (vcpkg) or prebuilt SDKs to avoid manual mistakes (vcpkg).

For web publishing, HTML5 exports or compiling C++ to WebAssembly with Emscripten are the most user-friendly routes; itch.io is a simple place to host playable builds (Emscripten, itch.io).

Recommended Answers

All 9 Replies

I can write C/C++, Java, python, C#
I would like to post the made game on internet, so that ppl can play!

C++
Allegro (easy): Keep using it until you are confident to move on.
OpenGL (intermediate): Can be used for 2D. Don't get frustrated and stick with it.
Direct2D (hard): Specially built 2D library, but DirectX is hard to code.

Python
PyGame (easy): Same as allegro really.
PyOpenGL (intermediate): Use it for 2D first, then 3D. Needs to be used through PyGame.

As for sharing it on the internet, why don't you upload it to sourceforge when you are done? Then people can join you if you want an extra pair of hands, report bugs easily and it's just generally great for project hosting.

How about Irrlicht?? it got good rating

well, oh my god
I am not able to make use of any of these :allegro, Irrlicht, opengl
I don't know how to setup with VS2008

already browse a bunch of tutorial...

Finally I can use glut to draw a triangle using a sample demo provide by others....now at least the environmental setting should be ok!

You could use a seperate IDE. Dev-C++ (though no longer in development) makes it easy to install libraries. You literally choose what you want from a list and it will download and install it.

Or you could take a look over at NeHe, there you can find tutorials on a lot of handy OpenGL things. Over at their "New tutorials" session, you can also find how to set up OpenGL in Code::Blocks, which is a pretty handy free C++ IDE

Good Luck!
Emil Olofsson

The site is good, but the tutorial is quite old.......
The author already stated that he is using an already not being used library GLaux.lib.
And I can't reproduce his result with remedy he mentioned.

Thanks dude!
and thanks dudes up here!

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.