Snap to it, Soldier!! ** Version 4.00 update added **

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Snap to it, Soldier!! ** Version 4.00 update added **

Post by netmaestro »

Do you write programs that use a grid, say for a chess game? It's a lot of fiddly work to get the pieces to "snap" to the middle of the squares and everything changes for the next project. Here is a library containing two simple commands, CreateGrid() and Snap2Grid() that makes it easy!

http://www.networkmaestro.com/snaptogrid.zip (3.94)

http://www.networkmaestro.com/snap2grid.zip (4.00)

http://www.networkmaestro.com/snaptest.exe (tiny demo program)
Last edited by netmaestro on Tue Feb 21, 2006 4:32 pm, edited 5 times in total.
BERESHEIT
Jan Vooijs
Enthusiast
Enthusiast
Posts: 196
Joined: Tue Sep 30, 2003 4:32 pm
Location: The Netherlands

Post by Jan Vooijs »

Looks nice,

Will test it in an game application i'am writing, no its NOT in BETA fase like you requested (arf arf I know who/what you mean, a very known program)

Thanks
Life goes to Fast, Enjoy!!

PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!

AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Thanks netmaestro - this is great! Nice example in the chm help file too (very professional help BTW). As a new PB user, I'm very pleased to be able to see this learning example. Thanks again.
Post Reply