Page 2 of 2

Re: Chess Assets

Posted: Thu Apr 23, 2020 8:04 am
by dige
Have a look at how it looks like with SpiderBasic. Unfortunately there are a few grafical bugs:

http://h2717740.stratoserver.net/chess/index.html

How can that be?

Re: Chess Assets

Posted: Thu Apr 23, 2020 8:27 am
by Michael Vogel
Haven't played around with SpiderBasic so far, but would assume you'd need to add ClosePath() here and then.

Re: Chess Assets

Posted: Sat Apr 25, 2020 11:35 pm
by netmaestro
@dige: Looks like the flag #PB_Path_Winding isn't available on SpiderBasic. Not sure why but its library likely isn't the same as Windows which uses gdiplus. the pawns are pretty easy to fix by starting at the top, going all the way around and back again with part-circles, curves and a line for the bottom. Then it should stroke and fill fine. The queen isn't using #PB_Path_Winding so I'm not sure what's going on there. Shouldn't be too hard to find though.

Re: Chess Assets

Posted: Sun Apr 26, 2020 9:29 am
by netmaestro
Reworked the Queens and Pawns so they would draw properly in both PureBasic and SpiderBasic. You can see a rendering of the SpiderBasic version at: https://lloydsplace.com/ChessAssets.html The problem with the queens turned out to be with the AddPathArc command. I replaced it with AddpathCurve and it straightened up. The pawns suffered from not having #PB_Path_Winding available, so a bit of rework made that flag unnecessary and all's good now.

Re: Chess Assets

Posted: Sun Apr 26, 2020 9:36 am
by BarryG
netmaestro wrote:You can see a rendering of the SpiderBasic version at: https://lloydsplace.com/ChessAssets.html
Looks fantastic, but note that the Kings and Queens are on the wrong squares (for both colors). The PureBasic version is correct.

Re: Chess Assets

Posted: Sun Apr 26, 2020 9:49 am
by netmaestro
That's a black-from-the-bottom board, they're where they should go. Queen to her color, remember, and white on the right. The square IDs on the sides identify the black-from-the-bottom board with a8, b8, etc. at the bottom. (scared me there for a sec!)

Re: Chess Assets

Posted: Sun Apr 26, 2020 9:54 am
by BarryG
netmaestro wrote:That's a black-from-the-bottom board
You're right. I didn't notice the numbers (and pieces) changed. Sorry for that.