Words Fail Posted December 4, 2022 Share Posted December 4, 2022 (edited) I've got some blocks on the playfield. Let's assume level 1 has 16 blocks. I can fly my ship over them and they disappear.. aka Pac-Man eating dots. I can't figure out how to make the game know you got all the blocks and it should load level 2. I can set variable=16 and do variable=variable-1 until it reaches 0, but I've no way to actually tell whether you ran over a block or just dead space. Right now I'm checking x and y coordinates of the ship and doing a pfhline to get rid of the block. If the block was already gone, it's just wasted cycles because my game doesn't know whether it was gone or not to begin with. What do I do? (if you're curious why I used pfhline is because I was using two pfpixel commands.. pfhline takes up a little more cycles (294 vs 160), but it lessens the length of my code, so I could fit this whole crap in bank 2) Edited December 4, 2022 by Words Fail Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.