What's new:
- Fix the problem that the background music replayed after stopping is repeated.
- Fixed an issue where background music was played briefly after the player died.
Game engine updates:
- Add an interface to stop all audio in the audio module.
- The map module removes the return value of the check map block interface.
- The map module removes the return value of the updated map interface.
- Item module removes component collection, name check when adding component.
- Remove the event detection interface of the drawing module.
- The draw module removes static variables used to mark deaths.
- Separate the interface calls of the two map modules in the drawing loop.
- The variable of the total number of display units recorded in the drawing module is decomposed into the map loading interface.
- The draw module removes the internal coordinate base class pointer member.
- Map module removed two coordinate number acquisition interfaces.
- Draw the interface with higher switching efficiency in the initialization part of the module.
- Code Collation.
- Random module random engine variables are moved into static members.
- The random module unifies the way to obtain random seeds.
- Add null pointer check to the interface of the map module to detect whether the map data exists.
- Add memory debugging function to the enclosure and use macro control switches.
- Event module observer pattern related definitions moved into the header file.
- The main function adds observer mode test.
- The three variables of the item module about the moving distance are moved into the item class for management.
- Multiple interfaces of the map module add operant object parameters.
- Item module player data class changed to struct and removed the three functions that get variables.
- The map module removes the interface to get the edge triggered by the last move.
- The input module adds an enumeration of the direction of key movement.
- Input module key observer class optimization improvement.
- The input module added the test of key observer mode.
- The input detection event of the input module is added to a private member by the observer variable.
- The coordinate template class increases the overload of constant addition and subtraction.
- Add pointer operator overload to coordinate template.
- The input module movement function is implemented in observer mode.
- The input module removes the key observer class to enable the disable function and the key number acquisition function.
- Added the audio event observer class to the audio module.
- The functions of the master operands class are merged into the item base class.
Changed files in this update