enigma-devel
[Top][All Lists]
Advanced

[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.

Attachment: nat15-without-callbacks-library.lua
Description: Binary data

Attachment: nat15-with-callbacks-library.lua
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]