Re: Falling Speckles Exercise
- Posted by Michael Bolin <michaeltom at GEOCITIES.COM> Apr 25, 1997
- 878 views
> The problem is, its slower (currently), and a bit buggy (the snow falls > THROUGH things rather than building up!). > However, those problems can be fixed. The REAL problem, however, is that it > runs fine for 10 only seconds or so. Within that 10 seconds, if the user > hits any key, the program exits. Good, thats the way its programmed. > BUT, if it is allowed to run longer than that, everything still LOOKS > normal, ie. the snow falls (eating as it goes) until a key is pressed. As > soon as the key is pressed, > the program terminates abnormally, generating a Causeway protection fault > (or similar)!! > > I cant figure out why, so im sending the code and a CS.ERR file. Hopefully > someone can spot the bad section of code. > James Powell Here's the corrected source. I've added comments to show where the bugs were, and how I fixed them. I'm pretty sure that the Causeway error came from the snow falling off the bottom line of the screen. I've shown why in the code. Regards, Michael Bolin