[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-devel] Before/after example of callbacks library
From: |
Nat Pryce |
Subject: |
[Enigma-devel] Before/after example of callbacks library |
Date: |
Mon, 20 Oct 2003 18:28:53 +0100 |
As another example of how to use the callbacks library, here are two
versions of my "Caterpillar" level, the original version that does not use
the callbacks library and a new version that does. This example
demonstrates:
- how to use the library to define callbacks with mutable state
- how the library makes level code much less verbose
- how the library reduces duplicated logic and boilerplate code
Enjoy!
Cheers,
Nat.
nat15-without-callbacks-library.lua
Description: Binary data
nat15-with-callbacks-library.lua
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Enigma-devel] Before/after example of callbacks library,
Nat Pryce <=