7 ms·
This is certainly a thing of beauty. See, for instance, the way the trainers are defined: https://github.com/kanzure/pokecrystal/blob/master/trainers/trainers.
by Ideka 12y ago
This is certainly a thing of beauty.
See, for instance, the way the trainers are defined:
https://github.com/kanzure/pokecrystal/blob/master/trainers/trainers.asm https://github.com/kanzure/pokecrystal/blob/master/trainers/...
It almost looks like a high-level language.
- monocasa 12y agoThis is a pretty commmon technique in video games generally referred to as "data driven design". Basically put as much of the runtime decisions that are made into a data value that can be tweaked by designers without having to ask an engineer to do it each time.
- ionforce 12y agoFinal Fantasy for the NES seems to be designed the same way. A lot of the spells are actually "call function A with strength N, call function B with strength M and flag X". And with a large enough vocabulary of functions and flags, you get fire spells, healing spells, instant death spells, protection spells, etc.
- userbinator 12y agoIt's also common in embedded systems since it makes for extremely compact code. The data basically gets used as "instructions" for an application-specific virtual machine/interpreter (which may or may not be Turing-complete - most usually aren't.)
- infogulch 12y agoIt's... beautiful.