Jump to content

Recommended Posts

The two main methods would be to flicker them on alternate frames and/or use NUSIZ to get multiple copies of a sprite.

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#nusiz

 

For nusiz, the key is that they'll act exactly the same as they're one sprite copied one or two extra times.    With flickering on alternate frames, you can double them up and have independent actions for each at the cost of double the variables you're using to control them and a slightly dimmer color to the sprite as it's only there half the time.  

  • Like 3

Just to be clear there are alternate kernels that fake-ey more sprites including the multi sprite kernel and DPC+

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#dpcplus

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#multikernel

 

If you're never going to see your game on a real TV with real hardware flickering works.  Otherwise it's luck of the draw depending on the emulator, LCD panel, etc..

 

 

  • Like 2
17 hours ago, man2600 said:

but in the case i want the sprites shotting and i want to the make sprites ¨blow up¨ individually each i have to do it specifically in the code?

 

Yeah; you will need to do it manually. You can't really make something like Space Invaders in bB as it uses advanced techniques to get multiple sprites. However, you can use the NUSIZx multiple copies of a sprite to treat them as separate sprites. I do this in Space Game by starting out with an enemy sprite that it set to three copies. If the player hits one of them, I change the NUSIZx value to show the one that was hit as missing (figuring this out by the X coordinate of the missile compared to the enemy sprite). For explosions, I use one of the missles, making it flicker between four pixels wide and eight pixels tall, and eight pixels wide and four pixels tall every other frame to show an explosion.

  • Like 1

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...