02-03-PY-under-the-stars.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. Ninjas will use their knowledge of the GDP, GDP objects, and the spin function to
  3. create their own scene.
  4. New Vocabulary and Concepts
  5. * GDP Asset Library
  6. * Negative Numbers
  7. Reinforced Vocabulary and Concepts
  8. * Functions and Parameters
  9. * GDP Objects and Properties
  10. * GDP spin() function
  11. * Object Names and Renaming
  12. Sensei Notes
  13. * The Ninja needs to demonstrate mastery of the GDP by creating a scene from
  14. scratch.
  15. * There are a lot of Ninja characters, backgrounds, and other images in the GDP
  16. Assets that can be accessed by clicking on the magnifying glass on the bottom
  17. white bar.
  18. * The Ninja should compose a scene to the best of their ability.
  19. * Encourage them to experiment with changing shape properties.
  20. * Stress the importance of knowing the name of each object. Step 3 shows how to
  21. rename an object.
  22. Solution Steps
  23. 1 Make sure the Ninja opens the correct scene.
  24. 2 Encourage the Ninja to be creative within the bounds of the activity.
  25. The end goal is to use the spin function on their own game objects. Changing the
  26. offset of an object will drastically change how the object responds to the spin
  27. function. By using an offset, you can simulate shooting stars. Encourage them
  28. create complex items out of the simple shapes. For example, a telescope can be
  29. made from rectangles for the legs, an ellipse for the body, and a circle for the
  30. lens.
  31. 3 The GDP gives generic names with numbers to all new objects. Help the Ninja
  32. pick appropriate names.
  33. 4 Make sure the Ninja is coding in the scene's Update Every Frame event. If they
  34. coded somewhere else, help them copy and paste the code into the correct location.
  35. Because they will be adding to the scene, it is easy to lose track of what object
  36. is selected. Point out that the name of the selected object is always directly
  37. under the Events tab. If the Ninjas have a hard time understanding a negative
  38. number, help them write the code and then ask them what changed.
  39. 5 Before the Ninjas submit their scene, verify that they have used the spin
  40. function properly on at least two objects. Ask them what a negative number does
  41. to the spin direction of an object.
  42. */
  43. /**All Ninja scripts for this activity should be unique. At minimum, there should
  44. be two spin functions. One function should have a positive spin rate and the
  45. other should have a negative spin rate.
  46. **/
  47. spin(firstObject, 48);
  48. spin(secondObject,-330);
  49. /**
  50. Sensei Stops
  51. 5 Tell a Sensei how you created your scene. Did you use any GDP assets? How did
  52. you change the properties?
  53. Explain how you used the spin function.
  54. This is the last activity before new computer science concepts and GDP functions
  55. are introduced. Ensure that the Ninja can explain in their own words what they
  56. have learned up to this point.
  57. */