delorie.com/archives/browse.cgi | search |
Newsgroups: | comp.os.msdos.djgpp |
From: | "A. Jans-Beken" <jabe AT oce DOT nl> |
Subject: | Allegro - shadow of sprites |
Message-ID: | <33387866.3593@oce.nl> |
Sender: | news AT oce DOT nl (The Daily News @ nntp01.oce.nl) |
Organization: | Océ-Nederland B.V. |
Mime-Version: | 1.0 |
Date: | Wed, 26 Mar 1997 01:14:14 GMT |
Lines: | 14 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
In a game I am working on I want objects to cast shadow on the ground. With Allegro it is possible for graphic object to regard color 0 as transparent. What do I have to do to replace color 1 with the current background color minus (for example 3). I tried to fix it in the source-code of Allegro my self but this proved to be to difficult for me (I don't know too much about assembler programming!). I have heard that color 1 is used as the "shadow color" in other projects as well so it seems the logical choice to me. greetings, A. Jans-Beken
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |