Mail Archives: djgpp/1999/08/23/19:08:40
From: | John Clonts <johncc AT my-deja DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Sprites
|
Date: | Mon, 23 Aug 1999 20:52:08 GMT
|
Organization: | Deja.com - Share what you know. Learn what you don't.
|
Lines: | 43
|
Message-ID: | <7psc9h$lvo$1@nnrp1.deja.com>
|
References: | <37C223E7 DOT 607F48F9 AT rug DOT ac DOT be>
|
NNTP-Posting-Host: | 204.254.32.135
|
X-Article-Creation-Date: | Mon Aug 23 20:52:08 1999 GMT
|
X-Http-User-Agent: | Mozilla/3.01Gold (Win95; I)
|
X-Http-Proxy: | 1.0 x32.deja.com:80 (Squid/1.1.22) for client 204.254.32.135
|
X-MyDeja-Info: | XMYDJUIDjohncc
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
In article <37C223E7 DOT 607F48F9 AT rug DOT ac DOT be>,
Bram de Greve <bram DOT degreve AT rug DOT ac DOT be> wrote:
> This is a multi-part message in MIME format.
> --------------2A87FF1A86AECFF309DC17F2
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> I'm trying to do something with hexagonal grids. I want to use
sprites
> and a buffer, but my test crashes every time. Does anybody know what
> I'm doing wrong? I know I can have 256 colors on a 640x480 screen.
>
> Here's my program: (in attach the 2 sprites I use)
>
> // A LITTLE TEST FOR HEXAGONAL GRIDS
>
> #include <stdlib.h>
> #include <stdio.h>
>
> #include "allegro.h"
>
> int main()
> {
> // some variables for the grid
> int i,j,x,y;
> bool grid[5][5];
>
> // setting up allegro
> allegro_init;
> install_keyboard;
PMFJI, I admit I know nothing about allegro, but does the compiler tell
you anything about the above two lines? You do compile with -Wall, dont
you?
Cheers,
John
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
- Raw text -