trufun101 Posted February 6 Share Posted February 6 Is there a way to display an image without it being a sprite? I'm making a fighting game and if the fighter wins a round, they get a little medal by their healthbar. This medal doesn't move - it remains at a static XY for the duration of the match. Can this be accomplished with the blitter? I'm asking because I'm trying to be more efficient and limit the number of sprites on screen. (I'd rather save those sprites for background assets that actually move.) Thanks! Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/ Share on other sites More sharing options...
+CyranoJ Posted February 6 Share Posted February 6 Everything you see on screen is a "sprite" (Actually, an "Object" to use the correct terminology) Yes, you'd have to blit the image into the background object bitmap, using either one of the CPUs or the blitter - Just like you would on a system with a display buffer. Another way would be to put these graphics into the character set and "Print them" 1 Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/#findComment-5405012 Share on other sites More sharing options...
Clint Thompson Posted February 6 Share Posted February 6 I’ve only reached a point once out of curiosity where I had about 106 objects in the list and you would start noticing things not being drawn onscreen as a result. It sounds like you’ve reached a breaking point. Have you tried or are you using multiple object lists yet? Im not sure there’s a limit on how many separate lists you can have, but I gather it could help. Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/#findComment-5405423 Share on other sites More sharing options...
+CyranoJ Posted February 6 Share Posted February 6 4 hours ago, Clint Thompson said: Im not sure there’s a limit on how many separate lists you can have, but I gather it could help. 16 Lists, with a total of 512 objects combined across all lists. RTFM hahahaha These are just arbitrary numbers I picked, I could expand/shrink them if someone required. With some structure and a bit of logical sorting you can easily have over 200 objects in a single list depending on size and position and type. Case by case situation. 2 Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/#findComment-5405620 Share on other sites More sharing options...
trufun101 Posted February 7 Author Share Posted February 7 18 hours ago, CyranoJ said: Everything you see on screen is a "sprite" (Actually, an "Object" to use the correct terminology) Yes, you'd have to blit the image into the background object bitmap, using either one of the CPUs or the blitter - Just like you would on a system with a display buffer. Another way would be to put these graphics into the character set and "Print them" Perfect! Putting it in the character set was a great idea - thanks! For future reference, do you have a sample project or code snippet of blitting an image onto the background object bitmap? I think I have another instance where this will could come in handy. Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/#findComment-5405732 Share on other sites More sharing options...
+CyranoJ Posted February 7 Share Posted February 7 1 minute ago, trufun101 said: For future reference, do you have a sample project or code snippet of blitting an image onto the background object bitmap? I think I have another instance where this will could come in handy. I do, but its in assembler for the API, so not much use for BASIC/C. Maybe someone else can post one? Quote Link to comment https://forums.atariage.com/topic/360754-displaying-an-image-without-it-being-a-sprite/#findComment-5405737 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.