Over the past two weeks, we've rewritten most of the game's draw module, and the stuttering caused by adding a lot of textures has been resolved. This version also adds mouse interactivity, and the next updates will focus on the construction of the game world.
Game content update:
1. Fine-tune the texture on the back of the protagonist.
2. Increase the action of moving up.
3. Significantly improve the frame rate of the game.
4. Fixed the issue that clicking the prompt multiple times would cause the game to crash.
5. Press any button to start the game, instead press the start button to start the game.
6. Restore the equipment texture update function.
Game engine update:
1. Enter the constructor of the module button class to add the parameters of the button text and color and size.
2. Add text-related content setting interface to the input module button class.
3. The input module button class is changed to a button structure.
4. Add button interface to the button page class of the input module.
5. Draw the module texture to isolate the static area from the dynamic area.
6. Adjust the size of the dynamic area of the texture.
7. All textures of the draw module are loaded once at initialization.
8. Added texture array refresh interface to the drawing module.
9. The parameters of the texture rebinding of the draw module have been changed from string to texture number.
10. Draw module texture numbers to completely replace texture paths.
11. Add texture number data output interface to the drawing module.
12. Added shader file path error prompt in the rendering module.
13. The drawing module cuts the number of texture coordinate caches.
14. Draw module to remove texture slot initialization interface.
15. The draw module removes the repeated call to the texture coordinate cache in the Reselect Texture interface.
16. Add texture array generation interface to the drawing module.
17. Draw module removes static texture arrays from namespace.
18. Removed the setting for texture offset.
19. Draw module to fix the problem that the text in other languages is not fully displayed.
20. Added No. 3 game interface shader for drawing buttons.
21. The input module obtains the mouse input interface and returns the coordinates of the pressed key.
22. Add two variables to the input module to store the pressing status of the left and right mouse buttons.
23. The input module adds an interface to get the status of pressing the left and right mouse buttons.
24. Removed logic that prompts font size changes.
25. Fixed the issue that the dialogue shader displayed the wrong coordinates.
26. Button to add start and exit text.
27. Separate game state classes from the engine base class and the drawing module.
28. Add macro in font module to control the output when characters are added.
29. The drawing module sets up the multiplex texture interface to increase the detection of existing textures in the same position.
