Thread: Where do you get your sprites?

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    Where do you get your sprites?

    Helo,

    I'm starting on Allegro now. I wonder where you all get your sprites from?

    Do you download them from the web? Which sites are the best?

    Do you draw them yourself? How? Do you just draw the picture then make the background pink (255 0 255) or something?

    Is there some sort of a sprite editor that you can take a picture for example and choose the bg color you want to be transparent and it automatically outputs a bitmap?

  2. #2
    Registered User SubLogic's Avatar
    Join Date
    Jan 2003
    Posts
    33
    Well, sprites arent that easy to draw nor find. You must be a good artist to draw some.. Much more difficult to find... Try search Google for "free sprites" ... He may find you the vb sprites though, the ones with 2 images, one the sprite itself, and the other one with the shape of the sprite (white) on a black background... Forgot what it's called
    0100001

  3. #3
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    the ones with 2 images, one the sprite itself, and the other one with the shape of the sprite (white) on a black background... Forgot what it's called
    masking, its so that you dont have to stare at a rectangular sprite.

  4. #4
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Have a look here: SpriteLib

    or here: iDevGames.com
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  5. #5
    Registered User fry's Avatar
    Join Date
    Mar 2002
    Posts
    128
    Usually you can create your own little pictures. Especially if your just starting, then having good looking graphics isn't (or shouldn't be) a priority. Most indie developers make their own stuff, or get an artisic friend to. In the end, as long as you can make out what everythings is supposed to be, they needn't be high end unless you intend to go further with the project.
    IDE: Dev C++ 5
    Lib: Allegro
    OS: Windows 2000

  6. #6
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I personally made all of my own sprites (originally, before I got a donation ), using Paint. Of course, that doesn't mean they look good

    About transparency, I had my program generate the mask itself, instead of creating a 2 separate bitmaps (the picture and a mask). This is somewhat more complicated code-wise, but I think it is worth doing, since you save the trouble of having to draw a mask manually (unless you download a sprite that comes with a mask).
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  7. #7
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    I use POV-Ray to create my sprites and PSP to clean them up.

  8. #8
    That's why color keying is awesome. What's even better is images with alpha information built in; it can make some pretty tight sprites.

    I usually make my own sprites. I can do some pretty good pixel-by-pixel work (just takes a while on high resolutions to make something of any size). When developing my engines though, I don't put much into the sprites, I usually just put fillers in until I work out some good ones.

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Say, how do you make these images with alpha built-in? Is it a special format?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    Yep, look around for formats and stuff and find the one you like. I find the formats I like off of http://www.wotsit.org/ they have LOTS of information about a ton of file formats, and tell how to make file parsers.

    edit: Oh yeah, the format I use that has alpha info is the one I made myself. Isn't too hard to make, and is fun to make new file formats
    Last edited by frenchfry164; 04-29-2003 at 05:06 PM.

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Wowy! That's pretty spiffy!
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    But when you made a new format, how do you display onto the screen? I want all my sprites to look good .

    And how do you generate a mask? What IS a mask? I just started using Allegro, so the only way i know how to make sprites is to make something's background pink. Is that a mask? Please explain.

    And all the alpha stuff, how do you use it? Is that related to Allegro? Or you have to write the graphic routines yourself?

    One problem i was having with my pong game is that the ball has pink edges. I used fill in photoshop but there are always some pinkish pixels in between.

    Hope someone can explain the above questions, as i am 'relatively' new to graphics. I just ordered the tricks book btw.

    Hunter:
    So you don't use paint now? What do you use.

  13. #13
    About the pink edges, it is probably photoshop doing that. Turn off the anti-aliasing crap in photoshop.

    A mask is an image used to make your images not have to look square. It is used in combination with the original image to achieve the effect. The only time I ever had to use this method is when I was working with GDI. Allegro and DirectDraw just uses color-keying, which is where it checks the pixels when it blits for if they are "magic pink" or whatever you fancy. Direct3D uses the alpha channel. I don't know what OpenGL uses.

    When you make your own format, you usually draw it the same way you draw a bitmap. Just use a blit. You just have to create some functions to load up your file and fill up a variable, structure, etc. Then you need to make a function to draw the sprite. A simple way would be to do a loop that reads the value of each pixel of the image and plot it in the correct position. You could also translate it into another format's structure and blit it (like if you already have a structure that represents a bitmap, just fill it up with the data you got from your file). It would be better to just make your own blitter though.

  14. #14
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by Hunter2
    Say, how do you make these images with alpha built-in? Is it a special format?
    I use PNG as image format.
    It lets me create half-transparent sprites (I'm using Paint Shop Pro) for really cool effects (clouds, explosions, etc.)
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  15. #15
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Can anyone post few examples or those alpha/transparent masked sprites?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making sprites
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 02-20-2010, 07:00 AM
  2. DirectX and Sprites
    By andyhunter in forum Game Programming
    Replies: 6
    Last Post: 12-24-2004, 06:40 PM
  3. I Found some nice sprites but need more...
    By BigCheese in forum C++ Programming
    Replies: 1
    Last Post: 03-23-2004, 06:03 PM
  4. drawing sprites with the windows gdi
    By lambs4 in forum Game Programming
    Replies: 10
    Last Post: 08-14-2003, 09:06 AM
  5. Animating Multiple Sprites
    By Tommaso in forum Game Programming
    Replies: 2
    Last Post: 10-11-2002, 12:06 AM