Thread: Scorpion Engine
View Single Post
Old 01 October 2019, 14:43   #226
earok
Registered User

 
Join Date: Dec 2013
Location: Auckland
Posts: 2,193
Quote:
Originally Posted by Clydos View Post
Great progress, earok! And thanks for the tutorials.

I struggle a bit with, what is a keyword and what is a self defined variable. E.g. are Block_Type and Block_X/Y are reserved words?

And the line "Block_X = Block_X + 1" sets the pointer to the next block and the following "Block_Type = null" destroys this current block, right?
Cheers!

They are special variables that have certain side-effects in the engine when they're set. The list of them is at https://github.com/earok/scorpion-en...ters/README.md

Setting Block_Type = null does destroy the block. But alternatively, we could set it to a different block type. For example, if we had coins underneath the wall, we could use something like "~ Block_Type = Coin" to change the wall section to a coin.
earok is offline  
 
Page generated in 0.06612 seconds with 11 queries