Simple Simon Discussion > selectedSquare variable

What is the selectedSquare variable for?

April 22, 2008 | Registered CommenterRob

Updating/switching between the different Squares contained in the List.

April 27, 2008 | Unregistered CommenterShawn

To keep track of which square is currently selected and thefore lit up by a lighter color each time the Draw method is called. And to change the square which should be drawn with a lighter color in the Update method once tickCount is greater then ticksPerLight.

May 2, 2008 | Unregistered CommenterTomas

It is the offset into the squares vector of the element which refers to the Square presently being displayed.

May 9, 2008 | Registered CommenterRob