I would like to ask you guys, in game development, characters find their way in maps. In the framework of pathfinding algorithms like PathFinding.js, the map matrix needed is generated immediately during the pathfinding operation, or corresponding to th...
problem description suppose the map in a 2D game is made up of floors, monsters, chests, etc. how to generate maps randomly. my current idea is: characters generate a fixed-length random map for each sprint. For random maps, first generate a map r...
such as how do online games save the real-time location of user roles and Synchronize? now design a game combined with the actual map database using mongoDB data table with a location field to record the user s current location so that others can ge...
when I make an object move by holding down a key, the object usually moves one unit of distance, and then moves continuously in a certain unit. So, in the way of movement, there is often a time interval from a starting unit to a continuous unit, how to e...