First, you need to use the Scratch editor or its mod(Gandi IDE, Turbowarp and so on). Secondly, the game needs to run on the browser, there are no other restrictions
i made a tile system engine called t square engine https://scratch.mit.edu/projects/911401797/