Reflections was written by Walter Bender and Reuben Caron as an example of how to migrate a simple Flash activity to Sugar.
Reflections was written by Walter Bender and Reuben Caron as an example of how to migrate a simple Flash activity to Sugar.
+
+
Refexion.swf is part of a bundle of Flash games Reuben encountered at a deployment in Central America. The game is simply a grid of squares that change color when clicked (See the figure below).
[[File:Refexion.swf.png|200px]]
[[File:Refexion.swf.png|200px]]
+
+
The closest activity we could think of that had something similar (a grid of clickable elements) was [[Activities/Turtle in a Pond]]. We then:
+
# made a clone of the activity
+
# changed the activity.info file to reflect the name of our new activity
+
# changed the activity icon
+
# changed the name of TurtlePondActivity.py to ReflectionActivity.py
+
# changed the name of the Class defined in ReflectionActivity.py to <code>class ReflectionActivity(activity.Activity)</code>
+
# removed the buttons we didn't need
+
# edited game.py so that:
+
:* the dots cycled through four colors rather than just 2
+
:* we removed the turtle and all code associated with moving it