• Hey! Guest! The 37th GMC Jam will take place between May 28th, 12:00 UTC and June 1st, 12:00 UTC. Why not join in! Click here to find out more!

Looking for the meaning inside code (Yoyo Brick Breaker Demo)

I am new for the GML. I have tried to read the code in Yoyo Brick Breaker Demo.

I have see this code in the script "ClearBlock":

var count = global.hits[# argument0>>5,argument1>>4]-1;

I have no idea what happened if it use shift operator (>>) for argument0 and argument1,
And the # symbol, I have tried to search its meaning in help file but cannot find.

May someone know and kindly advise? Thank you.


ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
a[#b, c] is shorthand for ds_grid_get(a, b, c)

(a >> b) is roughly the same as floor(a / power(2, b)) - so, in this case, it divides coordinates by 32 and 16 accordingly. A bit faster, but in most games you don't have to worry about such small details.