programs/globTest.toby
author Ryan C. Gordon <icculus@icculus.org>
Wed, 18 Apr 2001 23:47:38 +0000
changeset 1 d7cb562e4e24
permissions -rw-r--r--
Initial revision

//---------------------------------------------------
// If globals are working correctly, this should
//  draw a line east, WAY off the edge of
//  TurtleSpace. Otherwise, it'll just draw a 
//  line somewhere other than due east, or maybe just
//  draw a line about 5 pixels wide or give an error
//  or something like that.
//
//Copyright (c) 1999 Lighting and Sound Technologies.
// Written by Ryan C. Gordon.
//---------------------------------------------------

number thisIsGlobal = 90

function main() returns nothing
	disableFence()
	turnRight(thisIsGlobal)
	thisIsGlobal = 10000
	testGlob()
	goForward(thisIsGlobal)
endfunction

function testGlob() returns nothing
	number thisIsGlobal

	thisIsGlobal = 5
endfunction