Mail Archives: djgpp/1997/09/22/07:15:32
From: | Temujin <temujin AT sentex DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Sprites with Allegro
|
Date: | Sat, 20 Sep 1997 21:02:32 -0700
|
Organization: | Sentex Communications
|
Lines: | 22
|
Message-ID: | <34249C58.57F0@sentex.net>
|
References: | <01bcc5e3$05bc3600$423e64c2 AT default>
|
NNTP-Posting-Host: | 206.222.77.49
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Laine wrote:
>
> Hello
>
> I'm doing a game with DJGPP and Allegro (actually it's my first PC-game)
> and
> I've got a little problem. How can I move sprites, is there a command in
> Allegro
> to do it?
Your better off just having an X and Y value for the sprite itself in
another variable, and then adjusting that. By doing that you can do any
fancy calculations you'd want to do for like finding distances without
allegro's overhead, then just draw_sprite() with the X,y values of the
variables you made.
> And another question: How can I do the double buffering?
Just make a BITMAP like *temp and make it the size of the screen, its
makebitmap I think. And then you just blit(*temp,*screen,...)
- Raw text -