Section 4

Here's the result of our work.

Looking good. Let's fix that overlapping blank cell problem.

Make this change to the #renderLaser instance method on BlankCellRenderer.

renderLaser
    self cell isOff ifTrue: [^self].
    (self cell activeSegments at: #north) ifTrue: [self renderLaserVertical].
    (self cell activeSegments at: #west) ifTrue: [self renderLaserHorizontal].
    ((self cell activeSegments at: #north) and: [self cell activeSegments at: #west]) ifTrue: [
        self renderLaserVerticalCenter]

Our results...

Beautiful. Save your work as version 10.

Index Page Next Page

Copyright © 2007, 2008, 2009, 2010 Stephan B Wessels    stevewessels@me.com