Thread: Display bitmap/sprites

  1. #1
    The Negativity. LAURENT*'s Avatar
    Join Date
    May 2012
    Posts
    68

    Display bitmap/sprites

    I always wanted to make my own little game but I don't have the skills to pull it off. I started by identifying everything I would need to know before I started a project this big. Would it be alright if I just asked more questions not related to the topic in this thread, good thanks forum!

    I need to learn how to import a bitmap image to the c++ source code. I need to learn how to move the image while it being displayed, any method will do this will be crucial for my collision detection test later.

    An Example would be most appreciated that how I learn best anyways.

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    google for SDL this is a library that will let you do what you need. Then look up the Lazy Foo tutorials which are very good.

    If however you mean literally 'import the image into the source code' Then you can use Gimp or Photoshop to generate a file like an .xpm which will encode the image into data - You can add it as a resource to your project, or after a bit more study drop the content into a source file. you will still need a context to view it in though
    Last edited by rogster001; 09-17-2012 at 12:07 PM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  3. #3
    The Negativity. LAURENT*'s Avatar
    Join Date
    May 2012
    Posts
    68
    Quote Originally Posted by rogster001 View Post
    google for SDL this is a library that will let you do what you need. Then look up the Lazy Foo tutorials which are very good.

    If however you mean literally 'import the image into the source code' Then you can use Gimp or Photoshop to generate a file like an .xpm which will encode the image into data - You can add it as a resource to your project, or after a bit more study drop the content into a source file. you will still need a context to view it in though
    Thank you I shall begin my new training.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 05:33 AM
  2. Dynamic Bitmap Display
    By Jaken Veina in forum Windows Programming
    Replies: 5
    Last Post: 07-04-2005, 10:57 AM
  3. Bitmap Display Probelm
    By hemanth.balaji in forum Windows Programming
    Replies: 1
    Last Post: 06-09-2005, 12:17 PM
  4. Bitmap display probelm.
    By hemanth.balaji in forum Windows Programming
    Replies: 11
    Last Post: 05-29-2005, 10:50 PM
  5. Display a bitmap image
    By MysticMizra in forum Windows Programming
    Replies: 7
    Last Post: 10-21-2002, 03:36 AM