Project 2

Mini Golf

One of the many cool things you can do when learning to code is making a game or toy. This project guides you in creating your own miniature golf game that you can share with friends.

In the role of game-maker, you are in control of graphics tools as you paint a golf hole, and then create ball and obstacle objects. You put your button-making skills to use as you code motion and direction commands. Next, you code how the ball reacts to the environment — falling in a water trap or the hole, as well as reflecting off an obstacle.

Several new primitive commands are used in this golf course, plus a couple of easy-to-write procedures. When complete, consider adding new features to make your game even more challenging and fun to play!

Brainstorm

Miniature golf courses can be crazy! You can make a themed hole with all sorts of decorations and colors, as well as weird bumpers and traps. Explore the Painting/Clipart palette and go a little wild with your game theme:

  • Tropical
  • Spacey
  • Sports

In my hometown of Las Vegas, there’s a miniature golf course featuring Kiss — the 70s rock band — where you can golf and rock and roll all night!

Start a New Project

Begin creating Mini Golf by starting a new project as follows:

  1. 9781118940327-ma002.tif Start MicroWorlds EX.
  2. On the yellow MicroWorlds EX startup screen, select Free Mode.

    A new project opens.

  3. From the menu bar, choose File⇒New Project Size⇒MicroWorlds ...

Get Coding For Kids For Dummies 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.