How do you add Graphics?

This is a discussion on How do you add Graphics? within the C++ Programming forums, part of the General Programming Boards category; Ive written a game like the old Vic20 Blitz Game where you are a bird that glides across a screen ...

  1. #1
    Registered User Robert_Ingleby's Avatar
    Join Date
    Oct 2001
    Posts
    57

    How do you add Graphics?

    Ive written a game like the old Vic20 Blitz Game where you are a bird that glides across a screen dropping eggs onto a forest to clear a path to land.

    Only thing is, my bird is 2 A's i.e. AA my forest is all # and my eggs are the * character.

    Whils the game runs ok, I want to change the standard ascII characters into graphics. so the AA is a graphic of a bird etc.

    What is the best way of doing this?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    You will need some sort of graphics library. Options are....
    1) Allegro.... never used it but plenty rave about it.
    2) OpenGl ... excellent for 3d work. Not so good for 2d work but it is portable.
    3) DirectX .... only for windows and requires some knowledge of win32 api.
    4) Win32 GDI API. The least powerful but the easiest to start with.You will need to learn some win32 api code. There are many tutorials on the web.Programming windows by charles petzold is the best book to learn from. Once you know some of the api and can create windows,write messaging loops and know how to respond to the messages your app gets then you know enough to progress to directx.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vector vs. array.
    By matsp in forum C++ Programming
    Replies: 37
    Last Post: 06-23-2008, 12:41 PM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. Help needed Please
    By jereland in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 04:30 AM
  4. Getting started with 2d graphics.
    By NickB in forum Windows Programming
    Replies: 3
    Last Post: 08-22-2001, 11:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21