![]() |
![]() |
|
![]() |
![]() |
Encyclopedia :
Z :
ZZ :
ZZT :
ZZT-oop |
|
|
ZZT-oopZZT-oop is an early in-game scripting language. It was designed by Tim Sweeney as the scripting language used for his computer game ZZT.OverviewZZT-oop is object-oriented and event-driven. A ZZT game is composed of a set of objects, each of which has an attached script. Scripts are executed concurrently (one command being taken in turn from each script running on the current screen), and objects communicate by passing messages to one another. Peculiarities and limitationsShortcomingsThe ZZT-oop language is very limited in application to say the least. It was designed for simplicity rather than flexibility. Boolean flags are the only type of variables, making arithmetic impossible, forcing the programmer to be creative with algorithms, often relying on physical movement, possibly in invisible (but still physically present) objects rather than arithmetic calculations. Although ZZT-oop is object oriented, objects are not instantiable due to their physical nature, meaning that one needs to duplicate much code to create complex systems. ZZT-oop also lacks functions, and routines are likely to be interrupted—by rogue messages including ones sent by the object itself when it is shot or touched—and never completed. One can overcome this crudely using state flags or using the lock and unlock commands during important routines; however, this is likely to cause the object to miss out on signals. ZZT-oop is wholly run-time interpreted with no pre-parsing. No lexical analysis is performed before running, nor is any byte code translation applied. This means that any errors are reported in a cryptic way during run-time, and this can make debugging consuming and frustrating. StrengthsHowever the language does have some advantages, its simplicity and intuitiveness for one, its lack of mathematical operators and integration within a fun game makes it very nonthreatening to budding programmers in primary school. The physical nature with a concrete geographic position makes objects far easier to visualise than abstract data types, and the parallel operating multi thread design is easy for one to think about in terms of a dynamic environment. SyntaxThe syntax of the language is simple, there are 4 categories of instructions: Closing ThoughtsZZT-oop provides a great stepping stone into programming especially for children. It has a huge amount of historical significance, and it can provide one with many hours of fun, but very little else. External LinksOnline version of the ZZT-OOP reference included with the game.
|
|
|
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License. |
|
| © 2008 Chamas Enterprises Inc. |