Robot

From MZXWiki
Jump to navigation Jump to search

Robots are the main power behind any MZX games that are more than rudimentary, and are analogous to Objects in ZZT. Their use provides a unique approach to game programming by naturally encouraging game designers to divide their program code into discrete, self-contained parts which effectively run as separate threads. Robots are often used to represent objects and actors within the game, to govern effects and changes to the game world, and to implement engines. Robot code is written in Megazeux's own programming language, Robotic, and its uses can be surprisingly versatile given the kludgy nature of the language itself.