+atari2600land Posted October 27, 2008 Share Posted October 27, 2008 (edited) I'm making a puzzle game similar to Marble Jumper (the difference is the ending piece can be anywhere on the board), and was wondering if there was a way to tell the program that if there is only 1 pfpixel on on the whole screen to make t{0} be 1. puzzle.bas Edited October 27, 2008 by atari2600land Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted October 27, 2008 Share Posted October 27, 2008 Seems like if you count each one as it disappears, the program will know how many are left. Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted October 27, 2008 Share Posted October 27, 2008 Seems like if you count each one as it disappears, the program will know how many are left. True. Another option would be to use the pfread function to count how many pfpixels are turned on. But keeping track of the count as you suggested would take up fewer cycles per frame. Michael Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted October 27, 2008 Author Share Posted October 27, 2008 (edited) OK, I did that, now, how can I not allow certain moves? Like, for example, I don't want the player to take the lowest piece and move it down or right. puzzle2.bas Edited October 27, 2008 by atari2600land Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.