File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,9 @@ of the ship's forward vector.
119
119
2. Modify the keydown handler to call this shoot method when the spacebar is pressed.
120
120
121
121
3. Make sure that the missile sound is passed to the sprite initializer so that the shooting sound is played whenever you shoot a missile.
122
+
122
123
Phase four - User interface
124
+
123
125
Our user interface for RiceRocks simply shows the number of lives remaining and the score. This week neither of those elements ever change,
124
126
but they will next week. Add code to the draw event handler to draw these on the canvas. Use the lives and score global variables as the current
125
127
lives remaining and score. For more helpful tips on implementing this mini-project, please visit the Code Clinic tips page for this mini-project.
You can’t perform that action at this time.
0 commit comments