Jump to content
IGNORED

Displaying an image without it being a sprite


trufun101

Recommended Posts

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!

Link to comment
Share on other sites

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"

  • Like 1
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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 :D

 

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.

  • Like 2
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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