Game Development Reference
In-Depth Information
Figure 3-4 . Create a new Node CCB file for the background layers
This time select Node as the CCB type, and enter Background1.ccb as the document
name. Then click Create. Your File View should look like Figure 3-5 .
Figure 3-5 . Current state of the File View in SpriteBuilder
Now switch to the Node Library View tab also in the Resource Navigator, and drag and
drop a Gradient Node onto the stage. Feel free to change the gradient colors. The import-
ant part is that the node position should be set to 0,0 and its Content size should be large
enough to fill both iPhone and iPad screens. At the time of this writing, this means the
content size of the gradient layer should be 568x384 at a minimum to cover the entire vis-
ible area on all current devices. Figure 3-6 shows the Gradient Node's properties.
Search WWH ::




Custom Search