- Example: Towers of Hanoi
This rendition of Towers of Hanoi is a simple game to code and makes introductory use of 3D shapes. Recreating it could serve as a great introduction to turtleSpaces and Logo coding in general.
In the game, you attempt to transfer the disks on post 1 to post 3 ending in the same order the disks ...
- Example: Plane Trapped in a Torus
This example demonstrates the use of various camera-related functions, shape inversion, the premodel primitive and others to create this cool animation of a plane trapped in a torus!
The procedure first sets the turtle model to the built-in plane model, before creating a tag that sets the color of the torus. Then it creates an inverted ...
- Rocket Orbit
This simple commented project allows for the introduction of 3D movements and shapes (the rocket procedure) including a basic introduction to repeat, the creation of turtle models and the use of premodel, an introduction to the orbit primitives and the use of a new worker (thread) for orbiting the camera!
- Example: Tetris written in turtleSpaces Logo
What do Steve Wozniak and George H.W. Bush have in common? They’ve both been seriously into Tetris! But who can blame them? The object of the game (as if you didn’t know) is to complete horizontal lines using falling shapes of various configurations. When you finish a line, it disappears, causing the rest of the blocks to fall down a line. However, if you stack up shapes to the ...
- Example: Invasion (3D Space Invaders Clone)
Check out this simple space invaders clone, featuring 3D UFO’s and UFO and player movement. This runs well on both the application and in the web version using modest hardware.
Rather than using hatchlings each with its own thread (worker), Invasion creates 15 static turtles representing each UFO, then iterates through moving them using the main ...
- Random Sine Wave Flowers Made With turtleSpaces Logo
This simple yet attention-grabbing Logo procedure is a real visual treat, creating random three-dimensional ‘flowers’ based on the sine function. This could spice up a math class or just provide a brief introduction to sine waves in general.
The procedure makes use of the move primitive, which allows the turtle to move based on an arbitrary ...
- Simple Hexagon Pattern
Here is a simple Logo project to get started with. It creates a colorful filled hexagon pattern using the polyspot primitive.
;not drawing lines
repeat 10 [
;do all of the following ten times
- Example: My Gosh, It’s Full of Stars!
Open in turtleSpaces IDERun starscape to create a galaxy of randomly-shaped and colored stars.
TO star :radius :points :size :filled
;takes number number number boolean (true or false)
;eg star 10 9 40 false
;or star 20 5 50 true
pu dropanchor tether
;pull up the turtle pen, drop ...
- Example: It’s Turtles All The Way Down!
In turtleSpaces, you can ‘stamp’ the current model, leaving a copy of it in the current position. This can be useful in some circumstances, to create artworks made out of more sophisticated models. In the case of this example, we’re going to use the default ‘myrtle’ turtle model to create a descending spiral of turtles.
- One-A-Day: Qtips
Today’s example is short but sweet. It creates a design made out of a bunch of qtip-like ‘sticks’ with balls on the ends.
It is a design made out of ‘almost squares’ (four sides each at an 85 degree angle to each other). The turtle then turns right 5 degrees, and slides left 20 before continuing ...