
So anyways here's my graphical update:
More after the break ...
Things to notice over the last update
- updated grid is now less contrast to avoid concerns about players saying 'it looks like a checker board'
- 80% of the gems have been reworked and improved
- the Score now displays with a stylized graphical font that matches the game theme (same as the Pirates Treasure text).
- there is now a gold filigree wire grid overlaying the game board
The bug was this:
After an initial combination of 3 or more gems the board has to re-fill. Sometimes when the board refills there is another match right?
Well my bug was that sometimes in the above situation the new match would not destroy itself.
The way this happened was I set a per-condition to test for before I ran the main loop.
This was called "MatchRecycle=0"
Then during the game loop I had 2 subroutines that would check for Matches on the X and Y axis respectively. I set the check for MatchRecycle during both subroutines. This was actually the mistake that created the bug.
The fix was to set it only one time before they were both run; that way if either cleared the flag it was cleared. By pre-setting it in both, one might clear it and the other re-set it and leave it on.
That took me two weeks to figure out ; but it was divided time where I would occasionally come back and try to figure it out for 30 minutes and then move on because other things were more important.
The game is coming close to completion now so I felt like I had to get this done as it was probably the most 'major' bug in the game... so that's a big relief to have it fixed.
See you next time.
No comments:
Post a Comment