Two Launchers
Thanks to the Launcher object that we built in the last chapter, we can actually create two launchers already. They won’t work quite right, but sometimes you have to break things before you can put them back together a new way.
If you followed the code placement suggestions in the previous chapter, your code starts with the Launcher constructor, followed by methods on the Launcher prototype. Then we have the Basket constructor, followed by its methods. Last is the Wind constructor and its methods.
After the Wind methods, we have a line that creates a single launcher:
| var launcher = new Launcher(); |
Search Your Code If You Can’t Find It |
---|
Ctrl+F or ⌘+F in 3DE will open the find feature. Type a few of the characters that you expect ... |
Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.