Re: BGTE 2 and Bitmaps
Scott Stubberud wrote:
> I need some help I am trying to write a program an PGN READER it reads
> chess moves,but the proublm is that I don't know how to make the chess
> pieces move,I have the chess board as a bitmap,do I make the chess pieces
> bitmap's too? if anyone has code that I can look at that would help
Small help:
1.- Display the chess board image (use read_bitmap & display_image)
2.- Save the "square" here the piece should be, using save_image()
3.- Display the piece (as a bitmap) in its position
4.- When you wanna move the piece, just display the "saved" square of the board
(it should overwrite the pice)
5.- Repeat from step 2 to redraw the piece in another location.
Hope it helps you.
Bye,
--
************************************
This message sent by Daniel Berstein
************************************
email: architek at geocities.com
homepages: http://www.geocities.com/SiliconValley/Heights/9316
http://www.cybercity.hko.net/silicon_valley/architek
|
Not Categorized, Please Help
|
|