Jump to content

Photo

Peg Solitaire


27 replies to this topic

#1 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • 687 posts
  • Location:Lurking in the Darkness

Posted Wed Feb 2, 2011 8:49 AM

With my unhealthy obsession for the system & no sense of priority in daily life, I just finished a quick implementation on Peg Solitaire. Both English and European variant can be played.

Nothing is gained once the puzzle is solved.

I think I'll try and add music to this, since I still need to dive into some implementation details for that. And probably some animated background to distract you from solving the game.

Controls:
- Select a marble with A, and set it to an adjacent target cell with A again.
- B cancels the first selection
- opt1 returns you to the intro screen.

If there are bugs in there, please let me know.. I was really hasty on this one.

Attached Files


Edited by Ninjabba, Wed Feb 2, 2011 9:15 AM.


#2 TrekMD OFFLINE  

TrekMD

    River Patroller

  • 3,902 posts
  • Location:Coral Gables, FL

Posted Wed Feb 2, 2011 11:35 AM

Cool, I will check it out!

#3 im_reg OFFLINE  

im_reg

    Dragonstomper

  • 518 posts
  • Location:Leicestershire (UK)

Posted Fri Feb 4, 2011 1:40 PM

Great little game. I got down to 3 pegs on my first try.

#4 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Sat Feb 5, 2011 7:13 AM

I'd really like to see a screenshot of a solved game :) I never solved a single game so far, but read somewhere that the strategy is to work symmetrically.

#5 karri OFFLINE  

karri

    River Patroller

  • 2,561 posts
  • Location:Espoo, Finland

Posted Sat Feb 5, 2011 7:36 AM

I'd really like to see a screenshot of a solved game :) I never solved a single game so far, but read somewhere that the strategy is to work symmetrically.


Nice implementation. Although I did not solve it on my first attempt.
Screenshot-cart.png

--
Karri

#6 rygar OFFLINE  

rygar

    Chopper Commander

  • 240 posts
  • Location:France

Posted Tue Feb 8, 2011 1:12 AM

Very good job programming :thumbsup:
With a little music would be perfect.
I finished the two versions and I saw no bugs. :)
snap02.JPG
snap01.JPG

Edited by rygar, Tue Feb 8, 2011 1:18 AM.


#7 Willard OFFLINE  

Willard

    Stargunner

  • 1,340 posts

Posted Tue Feb 8, 2011 1:08 PM

i've been playing this game in the form of T-Break on the Bandai Pippin lately, pretty addicting. Will have to try this out once I get some free time to better learn how to use my flashcard :)

Edited by Willard, Tue Feb 8, 2011 1:09 PM.


#8 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Tue Feb 8, 2011 2:01 PM

Great to see people trying to solve it :) I still haven't solved it... but good to hear it looks like its bug-free. Now to fix some tune..

Edited by Ninjabba, Tue Feb 8, 2011 2:03 PM.


#9 karri OFFLINE  

karri

    River Patroller

  • 2,561 posts
  • Location:Espoo, Finland

Posted Wed Feb 9, 2011 2:00 AM

Great to see people trying to solve it :) I still haven't solved it... but good to hear it looks like its bug-free. Now to fix some tune..


Don't forget a nice background. I like Gremlins style of adding atmosphere to a board game like this.
image.jpeg
--
Karri

#10 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Wed Feb 9, 2011 8:06 AM

Ah good ol' HeroQuest. Pretty entertaining game, and another good example of what could be done on the Lynx. I was thinking of some nature scenes. Some running water with Eric Satie's Gymnopédie would be great..

#11 EricDeLee OFFLINE  

EricDeLee

    Quadrunner

  • 5,818 posts
  • Location:Michigan

Posted Wed Feb 9, 2011 8:58 PM

i've been playing this game in the form of T-Break on the Bandai Pippin lately, pretty addicting. Will have to try this out once I get some free time to better learn how to use my flashcard :)


LOL I need to re-learn how to use my Lynx Flashcard. LOL

#12 Felyx OFFLINE  

Felyx

    Dragonstomper

  • 626 posts
  • Location:Angers, France, Europe, planet Earth, Solar System, Universe

Posted Wed Jan 18, 2012 2:18 AM

Cool Thanks Kari for that solitaire game as our Lynx are still hungry :)

#13 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Thu Jan 26, 2012 2:16 AM

Here's an update of the Peg Solitaire game:

- added a few more boards (5 in total)
- added some gfx
- added the first chiptune I ever worked on

Controls are still the same

I mainly use this project as a test case for adding sounds/music. I am aware of the bug that when switching games the sound will keep hanging at times/resetting when starting a new game and whatnot more. This is mainly caused by the fact that I haven't figured out how to stop the music yet.

I'll post the source of this project later on, but gotta run for work now :)

Edit:
Thank you Sage for providing me the sound drivers! Credits for the tune go to Empty Space, got it from Mod Archive: http://modarchive.or...eid&query=89762, and mixed by me using chipper :)

Attached Thumbnails

  • pegsolitairev1.1.jpg

Attached Files


Edited by Ninjabba, Thu Jan 26, 2012 2:26 AM.


#14 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Thu Jan 26, 2012 5:09 AM

^^ I mean Dr. Awesome with the tune Empty Space

#15 Atari_afternoon OFFLINE  

Atari_afternoon

    Dragonstomper

  • 551 posts
  • Location:Germany

Posted Thu Jan 26, 2012 6:20 AM

Thank you, Ninjabba :)

#16 rygar OFFLINE  

rygar

    Chopper Commander

  • 240 posts
  • Location:France

Posted Thu Jan 26, 2012 12:46 PM

This new version is ablsolutly fantastic. Music, picture and 5 différentes versions :-o I love it !

#17 sage OFFLINE  

sage

    Dragonstomper

  • 981 posts
  • Location:Germany

Posted Thu Jan 26, 2012 12:59 PM

This new version is ablsolutly fantastic. Music, picture and 5 différentes versions :-o I love it !


Yeah, just that the picture has only 16 colors...

PS: How about using
asm("jsr SndStopAll");
or
asm("jsr SndPauseOn");
to stop the sound.

#18 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Thu Jan 26, 2012 4:57 PM

Yeah, just that the picture has only 16 colors...

PS: How about using
asm("jsr SndStopAll");


Aren't the 16 colors one of the charms of the system? :) I have no idea how to use more colors

That did the trick btw! Attached is the bugless (?) version

Attached Files



#19 sage OFFLINE  

sage

    Dragonstomper

  • 981 posts
  • Location:Germany

Posted Fri Jan 27, 2012 1:28 PM

Aren't the 16 colors one of the charms of the system? :) I have no idea how to use more colors


Wow, big big problem. Maybe ask someone. http://lynxdev.atari...cture_test5.zip

That did the trick btw! Attached is the bugless (?) version


What did you expect? ;)

#20 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Sat Jan 28, 2012 7:18 AM

Wow, big big problem. Maybe ask someone. http://lynxdev.atari...cture_test5.zip


Good point about the high colored images for small games.. its quite incredible that you can display 2000 colors at once on the screen! If I hadn't seen the slideshow demo before I'd say its black magic. I'll start asking around in the programming forum :)

#21 TailChao OFFLINE  

TailChao

    Moonsweeper

  • 487 posts
  • Bup?

Posted Sat Jan 28, 2012 9:23 AM

Good point about the high colored images for small games.. its quite incredible that you can display 2000 colors at once on the screen! If I hadn't seen the slideshow demo before I'd say its black magic. I'll start asking around in the programming forum :)

Changing colors like this during the active display is a very good tool on the Lynx. But it can take some time to think of good ways to make it seamless with a game.
If you just want to change things with a one scanline step, it is actually quite easy. Just have one of the system timers running in sync (or as close as possible) to timer 0 (HBL), then use it to feed another timer. Then you have a line counter. I usually use timer 1 fed into timer 3 for this. This is done in a few places in Zaku, like Marine Zone and Emp's battle, but I have been trying to find more interesting uses for it nowadays.

You can also change the colors mid-scanline for a million-jillion onscreen colors.
But of course the more you do this the more the 6502 is borrowed from running the game.

#22 Shawn Jefferson OFFLINE  

Shawn Jefferson

    Stargunner

  • 1,987 posts
  • Location:Victoria, Canada

Posted Sat Jan 28, 2012 1:30 PM

I'm assuming the techniques for more colors are:

1. Flip between two palettes and screens each VBL-more perceived colors, but also some flicker.
2. Change palette mid-screen one or more times, using HBL. Increase the overall amount of colors on the screen, but color use is still limited to 16 colors per scanline.
3. Mid-line changes, as above, but more CPU time involved, and still some restrictions on color use.

These same techniques are used in quite a few other systems, Atari 8-bit as one example.

#23 sage OFFLINE  

sage

    Dragonstomper

  • 981 posts
  • Location:Germany

Posted Sat Jan 28, 2012 3:35 PM

sure, hasn't changed in the last few years (since CGE slideshow)
just the algorithm got better

Edited by sage, Sat Jan 28, 2012 3:35 PM.


#24 Pacmania OFFLINE  

Pacmania

    Space Invader

  • 20 posts
  • Munching & Jumping!
  • Location:UK

Posted Fri May 24, 2013 10:33 AM

I just picked up a copy of the new Atari User magazine and saw a very good review of this game in it! Has there been a cartridge release yet or is there any plan to do one, I would love to purchase one if there is.

#25 Ninjabba OFFLINE  

Ninjabba

    Dragonstomper

  • Topic Starter
  • 687 posts
  • Location:Lurking in the Darkness

Posted Sat May 25, 2013 6:11 AM

I just picked up a copy of the new Atari User magazine and saw a very good review of this game in it! Has there been a cartridge release yet or is there any plan to do one, I would love to purchase one if there is.


Thanks for telling me! I wasn't aware this got picked up. I've been asked for a cart release a few times, but I would need to have a few mini games + do some polishing before I think its cart worthy. I was actually working on this, but then the unfortunate event of a burglary happened and the thieve(s) stole my laptops with source code. After that I haven't touched the project because of frustration and I'm focussing on Wyvern Tales that hopefully will be a cart release.

Edited by Ninjabba, Sat May 25, 2013 6:13 AM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users