Sprite loading, C++

Discussion in 'Mac Programming' started by BileGhost, Nov 19, 2008.

  1. BileGhost macrumors member

    Joined:
    Jul 29, 2008
    #1
    I have been trying to learn to make games in C++. Found a pong tutorial, and that worked fine. It uses the allegro library. Now at the moment it draws everything as shapes, ie it draws rectangles using a rectangle drawing function, and a circle for the ball. I want to change this to use a sprite, however the function draw_sprite(...) locks up my game. In fact, any source code from tutorials that use this (or any other allegro form of loading sprites) freeze as well. It also complains about using deprecated NSQuickDrawView and that it should use Quartz instead.

    I guess I want to know one of two things (or both):

    1. How can I get it to work...

    Or

    2. Is there any Mac friendly tutorials for this type of thing (such as making a pong/spaceinvaders/etc game).


    Thanks :)

    -BG
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
  3. BileGhost thread starter macrumors member

    Joined:
    Jul 29, 2008
    #3
    Thanks for that :). Do you (or anyone) know of any good tutorials using for using this?
     

Share This Page