DEV website instance!Finishing it offWhat we have constructed so far in this tutorial is a full working code of the "Cloak of Darkness" nano-adventure, but any self-respecting game should carry some additional header information, which must come before anything else, such as name Cloak of Darkness version Tutorial.1.0 author Mike Arnautov date 24 Feb 2024 style 12 All of these five header lines are optional and can occur in any order, but all must come before any other non-comment lines. The information they supply is stored in the games executable and can be displayed by running it with the command option -v (or /v for DOS/Windows). With the exception of the STYLE directive they have no other function. The STYLE line tells the acdc translator which major version of the A-code language is used by the game. It defaults to the current version (style 12). And with that header, the game is complete. For your convenience, here is the final version, exactly as constructed in this tutorial. I've just added some comment line separators to enhance readability. As for converting this code into a playeable executable, please see a separate document explaining how to do that. The simplest way is available if you have access to the bash command shell and have downloaded the current A-code tarball, in which case you can use the advbld script to do it for you – see the advbld documentation.
|