Well that did make me laugh out loud. That's twice now.assumed was some sort of satanic language.....etc
What has happened here is that I copied the code from
FTL. I gave names (you may not like them) to the functions
that the FTL code called. I gave names to the particular
parameters that FTL used when they called these functions.
The code you see in Skin0Code.txt is very nearly a word-for-
word translation of the FTL code, rearranged to make it easy
for me to compile. Mostly I changed 'infix' notation to 'postfix'.
Code: Select all
result = DrawObjects(roominfo[2], GetXY(12),12, 0x3421);
becomes
F4L1Contents F4L1xy F4L1 DrawOrder3421 StdDrawRoomObjects
do? It is simple. First, you asked how this would work:
Code: Select all
: Skin2Stone
CurrentSkin WallGraphicID CurrentSkin WallMaskID CurrentCell DrawCustomGraphic
at the end. A definition starts with a colon ( pronounded 'define')
and ends with a semi-colon (pronounced 'end of definition').
The code defines a function named Skin2Stone. It does not
turn Skin into Stone. It defines how to draw a Stone wall in Skin2.
Ie: Draw Skin2 Stone Wall.
The last word in this definition is DrawCustomGraphic. That is the
word you will use to draw floors, Middles, Ceiling, and Walls and
any other things you like to draw. You can draw your Floor and
Wall Decorations, Teleporters, Apples, or anything using this
function. You can draw your mother's left ear on a stairway.
It is the funtion to draw arbitrary things. It is all you need.
Everything else can be done with numbers.
Code: Select all
DrawCustomGraphic ( graphicID maskID mask# . . . )
I don't think there are any. You can draw whatever you pleaseWhat are the other variables/functions available
with this one word. What more do you want? I am going to
break now and start a new post to clear up some silly details
that will make things easier for you.