I know this has been asked a million times. But how can you check for a specific tile. I'm making a shovel and want to check the tile in front of the player. I have the algorithm for checking in front of the player. But what I have for checking for a grass tile is not working.
PHP Code:
grassTile = {0x7FF};
if (grassTile in tile[ar[0],ar[1]]) {