Re: Christmas gift - new game
- Posted by Greg Phillips <i.shoot at REDNECKS.COM> Dec 21, 1998
- 492 views
Davi Figueiredo wrote: > Hello all, > I have just released my new game called Nim. It is currently an alpha version > but it should run ok. Go to my new Euphoria page ( > http://www.brasil.terravista.pt/Jenipabu/2571 ) and download the game, I hope > you will enjoy it. > > The only problem you might have is with a bug that makes the program crash > sometimes. It's the bug I described in another message with the subject 'Win32 > problems'. > > For the people who advised me to try to find out what was causing the bug: > thanks for your suggestion! I suppose it's not a menu problem after all. I > modified my code to create a log file and was able to identify where the > problem occurs. I'm almost certain it happens during a call to Win32Lib's > setBitmap() in the following procedure of my game: > > procedure DrawBoard() -- Adjusts the display > for column=0 to length(GameToPlay)-1 do > for line=1 to high do > if board[column+1]>=line then > > else setBitmap(pic_handles[column*high+line],background) end if > end for > end for > end procedure > > pic_handles stores the handles of several static bitmap displays, background > stores a single handle of a bitmap loaded with loadBitmapFromFile() and > rocks_in_game stores several handles of bitmaps also loaded with > loadBitmapFromFile(). In this procedure, setBitmap() is called at least 15 > times, maybe Windows cannot handle this correctly... if you have any > suggestion, please tell me, I don't know what to do. > > Regards and, if I don't post another message before Christmas (which is not so > unlikely now because I'm travelling on Thursday), merry Christmas, > > Davi Figueiredo > davitf at usa.net > Love the game =) I haven't had a problem with the mysterious little bug..I've run the program maybe, 10 times... who knows, maybe I'm just lucky, I'll try some more later, and give you a full report Oh, and I can't help asking...where did you get the rock images? It seems to me that I have a rock collection book that I bought years ago, that has those same pictures =) thanks, Greg -- Greg Phillips i.shoot at rednecks.com http://euphoria.server101.com -- Useless fact of the day: "Ever think you're hearing something in a song, but they're really singing something else? The word for mis-heard lyrics is 'mondegreen,' and it comes from a folk song in the '50's. The singer was actuallysinging "They slew the Earl of Morray and laid him on the green," but this came off sounding like 'They slew the Earl of Morray and Lady Mondegreen.'"