Jump to content

Photo

Bat Passer - a 2600 Homebrew


9 replies to this topic

#1 Steeler OFFLINE  

Steeler

    Space Invader

  • 11 posts

Posted Sun Apr 11, 2010 2:42 PM

This is my first post on this forum; hello!

I started learning Atari programming a little less than 2 weeks ago with Kirk Israel's pretty great tutorial. Since then, I've been working on this, and I think it's finished enough to post.

It runs on Stella. /*I tried running it on Z26 and the graphics jigged up and down* (and the colors looked pretty bad). I doubt it would run well on a real 2600, but if someone would try and tell me how it does, I'd appreciate it.*/ EDIT: This has been fixed.

Anyway, the game has 7 levels. It doesn't have a title screen, and whether you lose or win, you have to close the game and start it up again to restart.

*It's done this on Stella too if you lose the last level. I don't know why.

Version 1.1 attached:

Attached Files


Edited by Steeler, Mon Apr 19, 2010 7:00 PM.


#2 accousticguitar OFFLINE  

accousticguitar

    Quadrunner

  • 5,817 posts
  • Sherlock made it to 15 before he left us.
  • Location:Idaho

Posted Sun Apr 11, 2010 5:30 PM

I tried it using a Kroc cart on a 7800 and the graphics jig up and down. You might try checking your scanline count.

#3 Wickeycolumbus OFFLINE  

Wickeycolumbus

    River Patroller

  • 4,764 posts
  • Location:Michigan

Posted Sun Apr 11, 2010 6:06 PM

Fun! It seems to alternate between 260 and 261 scanlines (as accousticguitar mentioned) which is causing the picture to jump. It shouldn't be too hard to fix :)

#4 Steeler OFFLINE  

Steeler

    Space Invader

  • Topic Starter
  • 11 posts

Posted Sun Apr 11, 2010 7:23 PM

Fun! It seems to alternate between 260 and 261 scanlines (as accousticguitar mentioned) which is causing the picture to jump. It shouldn't be too hard to fix :)

Kirk Israel mentioned in his tutorial that the timers, which I use to determine when the two non-drawing times are done, had a margin of error... could this be the problem?

And does Stella specifically compensate for things like this, or how does it work so much better there?

Edited by Steeler, Sun Apr 11, 2010 7:24 PM.


#5 stephena OFFLINE  

stephena

    River Patroller

  • 2,535 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Mon Apr 12, 2010 4:28 AM


Fun! It seems to alternate between 260 and 261 scanlines (as accousticguitar mentioned) which is causing the picture to jump. It shouldn't be too hard to fix :)

Kirk Israel mentioned in his tutorial that the timers, which I use to determine when the two non-drawing times are done, had a margin of error... could this be the problem?

And does Stella specifically compensate for things like this, or how does it work so much better there?

Press 'Alt l' in Stella to see the scanline count and associated framerate in real time. It clearly shows that the count is alternating between 260 and 261. During development, even if an image appears to be stable, you should manually verify that stability (either by checking as just described, or making use of a conditional breakpoint in the debugger with 'breakif {_scan > #262}').

#6 Ethaniel OFFLINE  

Ethaniel

    Chopper Commander

  • 232 posts
  • bored...
  • Location:Athens Greece

Posted Mon Apr 12, 2010 8:39 AM

it looks funny. do you have to jump all the time? cant you just walk?

#7 Steeler OFFLINE  

Steeler

    Space Invader

  • Topic Starter
  • 11 posts

Posted Mon Apr 12, 2010 9:39 AM

How would a helmet/skull/whatever it is walk? ;)

More seriously, I think the game would be too easy if you could choose where along your path to jump. And it does look kind of strange... shorter hops or more gravity might have worked better with the cartoon cliche of a hopping skull, but it would've been harder to get a jump like that which could actually clear the bat in as many cases.

Unrelated edit: I did some testing and the scanline problem seems to be caused by the bat; it's different for different levels. It doesn't seem to be triggered only by the direction the bat's moving or the position of the bat, but maybe a combination of the two. I sure don't know why... I'll go back into the code later. I tried a little bit of debugging with Stella, but the disassembly didn't quite look like my code, and I didn't take the time yet to understand it.

Edited by Steeler, Mon Apr 12, 2010 5:03 PM.


#8 stephena OFFLINE  

stephena

    River Patroller

  • 2,535 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Tue Apr 13, 2010 9:52 AM

Unrelated edit: I did some testing and the scanline problem seems to be caused by the bat; it's different for different levels. It doesn't seem to be triggered only by the direction the bat's moving or the position of the bat, but maybe a combination of the two. I sure don't know why... I'll go back into the code later. I tried a little bit of debugging with Stella, but the disassembly didn't quite look like my code, and I didn't take the time yet to understand it.

Because of the way source code is compiled to raw machine code, the disassembly will never look quite the same as your original source. That being said, the next release of Stella will have a greatly improved disassembler (from the Distella project) that is much easier to read. I plan to release this by the end of the week.

#9 Steeler OFFLINE  

Steeler

    Space Invader

  • Topic Starter
  • 11 posts

Posted Fri Apr 16, 2010 5:07 PM

Any more feedback on the concept/gameplay? And has anyone beaten it yet?

#10 Steeler OFFLINE  

Steeler

    Space Invader

  • Topic Starter
  • 11 posts

Posted Mon Apr 19, 2010 7:01 PM

Bump. I fixed the scanline issue; fixed version edited into first post.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users