Buttons
1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Friday, October 3rd, 2008 | Programs

buttons





For more including Author's Notes download the eBook pages with this program's code listing.

Buttons is a fun puzzle game, not to difficult. Whenever you push a button down buttons around it will change. You can only push a button down if it is up. If all the buttons are down at one time you’ll lose, unless that is your goal. If you complete all the goals you win the game.

On a personal note, I have a long history with this game. I first seem to recall playing it on the Commodore 64, although if I remember it was actually a written for the PET computer. I remade it on the C64 in BASIC using a sprite pointer that you controlled with the joystick and snazzy 3Dish graphics created with the C64’s tile set and color control. This was also the first version that had multiple goals, where as the original only asked you to make an “O” to win. Imagine my disappointment when years later I went back and found it painfully slow. I made a new version in assembly years later, sans the multiple goals, and snazzy graphics.

For an extra challenge, look for the line in the function puzzle() that reads:
bd = rand () % 0×01FE + 1;
…and change it to…
bd = rand () % 0×01FE + 1; goal[lv] = rand () % 0×01FE + 1;
…and every time you play you’ll have completely random goals.

Buttons was written by Joseph Larson

Share and Enjoy:
  • StumbleUpon
  • Google
  • del.icio.us
  • Facebook
  • Digg
  • Slashdot
  • Fark
  • Live
  • Spurl
  • TwitThis
  • E-mail this story to a friend!
  • Reddit



Tags:

No comments yet.

Leave a comment

Support Cymon's Games

Recent Comments

Search

Sponsored Links

Cymon's Amazon Store