man2600 Posted November 30 Share Posted November 30 If the Batari Basic kernel standard can only put 2 sprites: player0 and player1, how can I put more than two sprites like in space invader or something like that? Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/ Share on other sites More sharing options...
LatchKeyKid Posted November 30 Share Posted November 30 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. 3 Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/#findComment-5575388 Share on other sites More sharing options...
+Gemintronic Posted November 30 Share Posted November 30 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.. 2 Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/#findComment-5575668 Share on other sites More sharing options...
+Lewis2907 Posted November 30 Share Posted November 30 Here is something I was experimenting with and may adapt into a game I'm working on. I have the source code there as well, but what Gemintronic posted is a lot easier to use. 1 Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/#findComment-5575885 Share on other sites More sharing options...
man2600 Posted Thursday at 12:10 AM Author Share Posted Thursday at 12:10 AM (edited) 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? Edited Thursday at 03:17 AM by man2600 Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/#findComment-5578728 Share on other sites More sharing options...
+Karl G Posted Thursday at 06:12 PM Share Posted Thursday at 06:12 PM 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. 1 Quote Link to comment https://forums.atariage.com/topic/376688-how-i-can-put-more-sprites-in-bb/#findComment-5579146 Share on other sites More sharing options...
Recommended Posts
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.