Jump to content
IGNORED

Lights Out! for 2600


atari2600land

Recommended Posts

Hey gang, I'm porting the classic game.com game Lights Out! to the Atari 2600/VCS. I won't be putting in the easier levels, and already there's something in this version that the other one doesn't: A level editor.

left difficulty switch A - level editor

left difficulty switch B - level select

select a level with the select switch.

To start a game, press fire.

 

In the level editor: To turn a square off or on, select a square with a cursor and press fire.

Not in the level editor: To select a square, use the cursor and press fire and normal Lights Out rules will apply.

 

To exit the level editor and try to solve the puzzle you've created, press reset switch.

To reset the level you're on to try again, press the reset switch.

Once you've finished the puzzle, it moves on to the next level. There are 5 levels put in so far so if you pass level 5, nothing will happen.

 

Also, if someone can test this on a real 2600, I would appreciate it.

lightsout2.bas

lightsout2.bas.bin

  • Like 1
Link to comment
Share on other sites

A suggestion... random levels.

 

Lights Out levels are super-easy to create randomly. For each level, start with a "blank" array and pick a bunch of random moves automatically, and then hand control to the player.

Easy for you maybe, I wouldn't know how to even begin programming this.

Link to comment
Share on other sites

In pseudo-code...

 

1. Clear game board

2. For N=1 to (level*2)+1

3. X=random X co-ordinate

4. Y=random Y co-ordinate

5. Perform a "lights out" operation at the random X, Y co-ordinate

6. Next N

 

Step 5 is the same operation that happens when the player presses the fire button during a game.

Link to comment
Share on other sites

Thank you so much! Now it can be a 2k game, not that size matters or anything. Here is a revised binary file. Should I go for 4k and put fixed puzzles in or should I keep it as is and maybe add a little title screen music or something? It was a little confusing since you switched what is on and what isn't, but I've gotten used to it. Thanks again!

lightsout4.bas.bin

lightsout4.bas

Link to comment
Share on other sites

Thank you so much! Now it can be a 2k game, not that size matters or anything. Here is a revised binary file. Should I go for 4k and put fixed puzzles in or should I keep it as is and maybe add a little title screen music or something?

No problem! My suggestion would be to leave it with random levels. If you want to add to it, then you could add an option for larger puzzles, but obviously you'd need to recode a fair bit to do that.

 

 

Here's a little better version with title screen and a short noise that plays once you complete a screen. I did run into a few screens that I couldn't solve, though. (See the picture below. How would I solve this?)

Nice update!

 

I checked out the javascript Lights Out solver, and it says that configuration can be solved by choosing the following cells...

-*----

***---

-*----

------

------

------

Link to comment
Share on other sites

So is it possible that every combination that shows up can be solved? Also, I did forget about vblank, so I used it to change the color scheme between b/w and color. But now it doesn't tell me how many bytes are left. It just says this when I compile it:

bytes of ROM space left

 

--> vblk2 f3a8

I thought if I had enough bytes left that I could add two more notes to the solving sound so it would go C E G C instead of the current G C.

 

Link to comment
Share on other sites

So is it possible that every combination that shows up can be solved?

Yup!

 

 

Also, I did forget about vblank, so I used it to change the color scheme between b/w and color. But now it doesn't tell me how many bytes are left. It just says this when I compile it...

Does a new correctly-sized binary get created? Try posting the latest .bas with the vblank addition.

Link to comment
Share on other sites

Well, I got it to make a normal 2k sized ROM and actually say how many bytes I have left (2). I added two more notes to the congrats sound, as well as a flashing title screen. I made it kind of like a flickering neon sign. I've run into that problem sometimes, where I use vblank and it doesn't say how many bytes I have left. Also, would anyone like to try this on a real 2600?

lightsout5.bas

lightsout5.bas.bin

Link to comment
Share on other sites

Really? I wonder why. Did you make sure to put the settings on it to be a 2k game? Or is it the same whether it's 2k or 4k? Anyway, I've deleted the score, so that freed up some room, so I added a little title screen song. If you want to turn the bass notes off (which is also the background music for in-game), turn the left difficulty switch to A.

lightsout6.bas.bin

lightsout6.bas

Link to comment
Share on other sites

I just tried this on real hardware (A Vader via Harmony 1.03) and it works fine.

Title screen and music look/sound good, but like any other game, get annoying as it repeats ;-)

I liked playing Bob Colberts Supercharger version (Okie Dokie) but your random levels is nice as well.

I did not test resetting a level or the editor yet, but I will.

Link to comment
Share on other sites

I just tried this on real hardware (A Vader via Harmony 1.03) and it works fine.

Title screen and music look/sound good, but like any other game, get annoying as it repeats ;-)

I liked playing Bob Colberts Supercharger version (Okie Dokie) but your random levels is nice as well.

I did not test resetting a level or the editor yet, but I will.

The left dif switch seems to pause music, I can't get the editor, or reset a level.

Color/BW does change pallette. I like the sound at end of a puzzle.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...