Jump to content



0

32 x 24 Maze example program with Pac-Man style sprite


11 replies to this topic

#1 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Mon Aug 1, 2011 9:30 PM

Until somebody figures out how to fix the 32 x 24 jitter, here is the same program with a row removed. It's now 32 x 23 and has a steady scanline count of 262.


Latest Version

Here's the .bin file to use with an emulator or Harmony cart:

Attached File  ex_maze_32x23_2011y_08m_02d_0523t.bin   16K   42 downloads


Here's the bB code:

Attached File  ex_maze_32x23_2011y_08m_02d_0523t.bas   44.85K   40 downloads


ex_maze_32x23_2011y_08m_02d_0523t.png



----------------------------------------------



Original Post

Below is an adapted version of what I mentioned in the 32 x 12 Maze example program with Pac-Man style sprite thread. I thought I wouldn't be able to post this 32 x 24 version, but jrok reminded me about vblank, so I stuck some of my code in there and it seems to work. You can read more about what I did with vblank here:

http://www.atariage....66#entry2339266



Here's the .bin file to use with an emulator or Harmony cart:

Attached File  ex_maze_32x24_2011y_08m_01d_2252t.bin   16K   40 downloads


Here's the bB code:

Attached File  ex_maze_32x24_2011y_08m_01d_2252t.bas   44.89K   32 downloads


ex_maze_32x24_2011y_08m_01d_2252t.png


Problem:

I have Stella fixed so it will stop the program if the scanline count goes over 262. It hasn't stopped so far.

I do have a problem, though. If you hit Alt + L, you can see that the scanline count bounces between 262 and 261. It did that before I used vblank. Any time I use a 32 x 24 screen and add any code, the scanline count bounces around like that. When I try it with the Harmony cart, the screen slightly jitters.

Does anyone know how to make a 32 x 24 screen keep a steady scanline count of 262?


Thanks.

Edited by Random Terrain, Tue Aug 2, 2011 9:45 AM.


#2 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Mon Aug 1, 2011 10:10 PM

Thanks! One problem. When I use the ROM generated by compiling in bB, I just get a blank screen.

#3 jwierer OFFLINE  

jwierer

    Dragonstomper

  • 746 posts
  • Location:Seattle,WA

Posted Mon Aug 1, 2011 11:35 PM

View PostJr. Pac, on Mon Aug 1, 2011 10:10 PM, said:

Thanks! One problem. When I use the ROM generated by compiling in bB, I just get a blank screen.
Your compilation failed then. Which release of bB are you using? One thing I noticed is the code won't compile under 1.1d due to a bug in the compiler. Compiled fine under 1.1c.

-Jeff

#4 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Aug 2, 2011 3:42 AM

I added a 32 x 23 version in the first post to eliminate the 262/261 jitter.

#5 Philsan ONLINE  

Philsan

    River Patroller

  • 2,335 posts
  • New Orleans Saints Super Bowl XLIV Champions
  • Location:Switzerland

Posted Tue Aug 2, 2011 5:50 AM

Excellent Duane!

#6 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Aug 2, 2011 9:35 AM

How to I tell what version I have? :? I got it fromhere.

#7 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Aug 2, 2011 9:44 AM

View PostJr. Pac, on Tue Aug 2, 2011 9:35 AM, said:

How to I tell what version I have? :? I got it from here.
That tinkernut stuff is way out of date. Read these three things:

http://www.randomter...html#tutorial01

http://www.randomter...#gettingstarted

http://www.randomter...tml#install_vbb

Edited by Random Terrain, Tue Aug 2, 2011 9:44 AM.


#8 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Aug 2, 2011 9:57 AM

Thank you!

#9 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Aug 2, 2011 10:32 AM

That new version of bB you linked me to also gives a blank screen... :(

#10 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Aug 2, 2011 10:42 AM

View PostJr. Pac, on Tue Aug 2, 2011 10:32 AM, said:

That new version of bB you linked me to also gives a blank screen... :(
Did you read step #4 closely?

http://www.randomter...tml#install_vbb

#11 Jr. Pac OFFLINE  

Jr. Pac

    Dragonstomper

  • 775 posts
  • 1/4 of the fun with an Atari cart is cleaning it.
  • Location:In my room with my 2600.

Posted Tue Aug 2, 2011 5:48 PM

Phew! I It wasn't step 4, I installed it incorrectly. Now it works! :)

#12 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Thu Aug 4, 2011 11:19 PM

I've been looking at the bB page trying to figure out where to put this example program and I can't find a good spot. Does anybody have an idea?

[I figured it out. Since I use fixed point variables in the program, I'll put it in that section.]

Edited by Random Terrain, Fri Aug 5, 2011 12:39 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users