Jump to content

Photo

Code Snippets & Samples for bB Beginners


51 replies to this topic

#51 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,779 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Wed Mar 8, 2017 8:42 PM

Would someone please offer me some .bas examples of playfield resolutions? I can't figure out how to change the size of the playfield blocks, and I know it should be quite simple. Also some DPC+ .bas examples/tutorials would be much appreciated. Thanks.

 

I wonder if these links would be helpful:

 

randomterrain.com/atari-2600-memories-batari-basic-commands.html#faq_playfield_pixels

 

The bB page will eventually have more DPC+ example programs as I and other people find time to make them, but this is all the bB page has so far:

 

randomterrain.com/atari-2600-memories-batari-basic-commands.html#expro_dpc



#52 OldAtAtari OFFLINE  

OldAtAtari

    Star Raider

  • 98 posts
  • Location:Oak Ridge, NC

Posted Sun Jun 3, 2018 6:29 PM

First of all, Atarius Maximus, thank you so much for these examples. I have saved them and will refer to them as I'm learning Batari Basic and Atari programming in general.

 

I know this is a super old thread, so maybe you aren't following it anymore, but just in case, I thought I'd put in my request.

 

I've asked in another thread about how to display multiple copies of a sprite on the screen in a singe frame. Asteroids is my favorite example. It uses p0 to represent an asteroid, and at a single time, it will draw a large, a medium, and a small asteroid, all moving independently of each other. Other's have very kindly and clearly explained that you can display p0 and then change it's x coordinate, and then display it again, and then again and again. In theory, that makes sense to me, but I haven't found a tutorial or examples of that yet, and in my code, it seems to only display the last placement, ignoring the previous placements. Would you mind creating an example of how to display a single sprite multiple times in the same frame?

 

Thanks.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users