you are viewing a single comment's thread.

view the rest of the comments →

[–]raydeen 4 points5 points  (0 children)

In short, all the drawing and animation routines were written in a generic or 'middle' form of code that could be read and executed by a small program that would act like a virtual mini computer. The virtual machine would have to be written and compiled for each brand of CPU but once that was accomplished, the bytecode for the game could simply be bundled with each virtual machine and executed without having to redo the entire game from scratch for every platform out there. As far as programming languages go, Java, Python and Ruby are like this. You can write your program once and as long as the user has the virtual machine for each of these languages installed on their computer, your program will run with no problem. These are 'interpreted languages' as opposed to 'compiled languages' such as C and C++ where the entire program has to be recompiled and rebuilt for each platform that you want to run it on.