Re: BGTE 2 and Bitmaps

new topic     » goto parent     » topic index » view thread      » older message » newer message

> David Your BGTE 2 is great can not wait for the final ver,also can not
wait
> for 3?????(hint,hint)

I'm glad you liked the tutorial :)....but 3 ???? Yeeaaargh!!! Not for at
least another year! ;>..this tutorial has been a lot of work :>

> 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

You can make the chess pieces bitmaps or from creating a sequence made up
of sequences right inside your program. Each atom element of each sequence
element in the sequence represents the pixel colour.

Movement is simply repeating the following steps in a loop:

-saving the background the chesspiece is going to cover using save_image(),

-displaying the chesspiece for a certain amount of time using
display_image(),
-restoring the saved background using display_image(),
-adjusting the upper left x and y corner by the appropriate positive or
negative increment.

This only works with shapes that have a rectangular border however. If you
want an example of overlaying an irregular shape over a background, I can
send you some code on how I placed the index menu over the background in
ABGTE2. It is based on the suggestion Jacques Deschenes and Michael Bolin
offered two months ago that uses and_bits() and or_bits().

David

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu