I am going to write a 2D game engine based on OpenGL, is now complete one part, but encounter many problems, I hope everyone can give some advice.The whole project source code and some examples here.https://sourceforge.net/projects/xeffect2d/

The new version (1.0.1245) has been uploaded.Modify some bugs.
A new example (examplePhysics.zip), this example for demonstration collision detection and physical simulation. (press 's' key to put an object, press 'd' key to start the simulation, simulation stop if an error occurs)
exampleFish (bin). zip: a complete example of using the 1080p resolution, demonstrates the shader.
exampleGemGame.zip: a complete game with 720p resolution.
exampleControl.zip: example demonstrates various functions, including control, video playback, audio, sequence frame, guide curves.

If you want help on this, make another topic in which the name of the topic clearly indicates the classification of the troubles you are having.The people who can help with this type of issue are not going to look for such issues inside a topic called “Try to write a Game engine”.