From the course: Coding Exercises: Scala

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Rocketship

Rocketship

- In this final challenge, we are going to take your Scarla skills to the stratosphere by making a rocket ship. Well, not an actual rocket ship, but an animation of one. The file 01_15b.scarla has all the setup you need. Comments in the file guide you through the process of writing the code. If you complete it all correctly, you'll end up with an animation of a rocket ship soaring into the sky. So jump right in and get coding. Now, pause a video and come back when you've completed the challenge and I'll show you how I tackled it. So here's a file we've given you and has a lot of comments describing what each section is doing. This is not stuff we have to change so let's keep going down the file. And eventually we'll get to the first bit, here we go, we need to implement. This is telling us that state is either countdown, containing an integer, counts left or flying, containing a point and location and so on.…

Contents