Jump to content
Sign in to follow this  
atari2600land

puzzle game

Recommended Posts

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 by atari2600land

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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 by atari2600land

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...