Closed pixelzoom closed 10 years ago
These images would also move into HeadNode:
var headBack = require( 'image!COLOR_VISION/head-with-brain.png' ); var headFront = require( 'image!COLOR_VISION/head-front-with-brain.png' ); var headNoBrain = require( 'image!COLOR_VISION/head-no-brain.png' ); var headFrontNoBrain = require( 'image!COLOR_VISION/head-front-no-brain.png' );
I have encapsulated the headNodes in SingleBulbHeadNode and RGBHeadNode. See #59 for reasons why they need to be different. Assigning to @pixelzoom for review
I have since consolidated both head node files into HeadNode.js. See #59
Looks good, closing.
RGBScreenView creates 4 nodes for the head:
And then it has to manage those nodes:
This is complicated enough that there should be 1 view component that is responsible for creating the head and keeping it synchronized with the model. Recommended to move all of this into one node (HeadNode?) that can be used in both screens. Then creation in RGBScreenView would look like: