Island Creator/Hello World
From Croquet Consortium
This manual is part of the Consortium's Community Supported Documentation service. The views expressed in this portion of the wiki are those of some of our community members and may not represent the views of the Croquet Consortium or its other members. These wiki pages are dynamic/living documents with the support of many authors. Thanks to all the members of our community for keeping our documentation up to date!
In this lesson we will learn how to write the words "HELLO WORLD" using the Cobalt IDE (Integrated Development Environment). The examples we use in this manual are based on Cobalt in a Windows environment (however, they should also work well for those on a Mac or on Linux).
As a first step, you will first need to download and install the last version of Cobalt which can be accessed here. Once downloaded, simply unzip the downloaded archive (or untar it if you are on a Linux machine) and launch. Now you will need to find and execute Croquet.exe located in the bin directory.
Then select: cobalt.1.image (this may be a bit different on a Mac).
The new window shows the Cobalt desktop. You can drag or click the right-hand tab labeled Tools to reveal various programming tools. You can then click and drag the icons for Workspace and Transcript to the desktop.
Now type the following string of characters into the Workspace:
Transcript show: 'HELLO WORLD'.
Drag the pointer over this line (it will be "green-ized" (highlighted) - look the Fig.2-4) and press the right button of your mouse. Will appear a new window, where you need to select: accept.
TIP: We call this "accept" like a "little save" (or text save). We will see what is a big save soon (image or entire environment save).
Now select: do it, and the script you did (YES! YOU DID YOUR FIRST COBALT SCRIPT!!) will run and appears, at the Transcript window, the "HELLO WORLD".
Congratulations! Now for something a bit more useful...
