Skip to content

ZDCode v2.5.0!

Compare
Choose a tag to compare
@wallabra wallabra released this 07 Nov 20:35
· 198 commits to master since this release

2.4.0 has added anonymous classes, and, thanks to a Windows virtual machine, we are now able to distribute binaries again: now check v2.5.0, which also has inline macros!

For a good example, check the little following excerpt of ZDCode:

class AaaSpawner {
    is NOGRAVITY;

    macro SpawnEither(A, B, C) {
        TNT1 A 0 A_SpawnItemEx(class extends TeleportFog {
            set Translation to "Ice";
        });
        TNT1 A 0 A_SpawnItemEx(class extends RandomSpawner {
            set DropItem to A, 128, 22;
            set DropItem to B, 200, 6;
            set DropItem to C, 255, 1;
        });
    };

    label Spawn {
        TNT1 A 35;

        x 3 {
            sometimes 60 inject SpawnEither("ChaingunGuy", "Revenant", "ArchVile");
            sometimes 60 inject SpawnEither("ChaingunGuy", "Revenant", "PainElemental");
        };

        Loop;
    };
}