prog8/examples/test.p8
Irmen de Jong f2c62bee7e docs
2023-08-01 22:49:55 +02:00

17 lines
293 B
Lua

%import textio
main {
const ubyte ATTR_FALLING=$04
const ubyte ATTRF_EATABLE=$80
sub start() {
void test(10,20)
}
ubyte[10] attributes
sub test(ubyte tattr, ubyte tobject) -> bool {
return tattr&ATTR_FALLING==0 and attributes[tobject]&ATTRF_EATABLE
}
}