3 ms·
Always found it interesting how the entire state of the game is statically allocated. This places hard limits on the game's engine. For example, there can only
by matheusmoreira 7y ago
Always found it interesting how the entire state of the game is statically allocated. This places hard limits on the game's engine. For example, there can only be so many active objects at the same time. I wonder how they determined these limits.
Static memory allocation also makes things easier for hackers. No need to find and follow pointers. Many emulators have Lua support and it's possible to interface with the game this way. Amazing tools can be built. For example:
https://github.com/brock-heinz/NESDev/blob/master/Emulators/FCEUX/luaScripts/MegamanII-LaserEyes.lua https://github.com/brock-heinz/NESDev/blob/master/Emulators/...
More data:
https://datacrystal.romhacking.net/wiki/Category:RAM_maps https://datacrystal.romhacking.net/wiki/Category:RAM_maps
https://datacrystal.romhacking.net/wiki/Category:ROM_maps https://datacrystal.romhacking.net/wiki/Category:ROM_maps
http://tasvideos.org/GameResources.html http://tasvideos.org/GameResources.html
- dcow 7y agoGames are engineered products in heavily constrained environments. General software is more like: clever ways to automate annoying tasks. General software can be maximally lazy or elegant or both. Games are clever yet practical and efficient. What baffles me is how often I find a game design to be far more elegant than that of common software..
- matheusmoreira 7y ago> General software can be maximally lazy or elegant or both. Games are clever yet practical and efficient. Video games are soft real time applications: performance visibly degrades if the targeted frame rate is not met. Given the hardware of the time, they had to be practical and efficient. This might not be the case anymore. Today we have hardware with incredible performance but some of that speed powers abstractions that make it easier to develop the game. Older games had complete control of the machine but now they are merely one program scheduled to run by the operating system. > What baffles me is how often I find a game design to be far more elegant than that of common software. I think it's because of how little abstraction there is. The data structures we find in the code of older games are directly related to the game itself. It's rare to find a retro game with a separate game engine.