Example

Tetris Puzzle Toy

6

was8bit 2023-03-24 05:23

.... just sharing....


was8bit 2023-03-24 05:26

This auto checks for contact with existing sprites pieces as well as auto checks for contact with anything drawn to BG 1... forbidding any movement that would have contact...


was8bit 2023-03-24 05:27

... can also reposition existing played sprites...


was8bit 2023-03-24 05:28

+ adds a new Sprite
< > changes the new sprite

Once a Sprite is touched it is no longer "new"

Moving any Sprite to X deletes that sprite


was8bit 2023-03-24 05:30

Editing the wall background will instantly effect how sprites can manouver as the code auto checks the entire BG 1 and only allows movement to empty space...


Ericisonit 2023-04-02 05:58

So why is there a block shaped like a “+”? All Tetris pieces have only four tiles I thought.


was8bit 2023-04-02 10:30

Yes, a slight variation... i also didn't add the straight piece...

This fleshes out basic movement code for games like Rush Hour, and also other block puzzle games ;)


was8bit 2023-04-02 11:11

Ok, so you've motivated me into making my version of the klotski Puzzle ;)


Log in to reply.