Jump to content



0

puzzle game


3 replies to this topic

#1 atari2600land ONLINE  

atari2600land

    Quadrunner

  • 6,491 posts
  • All hail the zyzzyva!
  • Location:Salem, Oregon

Posted Sun Oct 26, 2008 9:25 PM

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.

Attached Files


Edited by atari2600land, Sun Oct 26, 2008 11:04 PM.


#2 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,911 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sun Oct 26, 2008 9:51 PM

Seems like if you count each one as it disappears, the program will know how many are left.

#3 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sun Oct 26, 2008 10:47 PM

View PostRandom Terrain, on Sun Oct 26, 2008 11:51 PM, said:

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

#4 atari2600land ONLINE  

atari2600land

    Quadrunner

  • 6,491 posts
  • All hail the zyzzyva!
  • Location:Salem, Oregon

Posted Sun Oct 26, 2008 11:06 PM

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.

Attached Files


Edited by atari2600land, Sun Oct 26, 2008 11:07 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users