FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
October 01, 1999

The Small Scripting Language

(Page 4 of 8)
Oct99: The Small Scripting Language


(a)
new smile = SpriteCreate("smile",rgb(255,0,255),150,75,SpriteLevel(face)+1,0,4,false);

(b)
new smile = SpriteCreate(
              .ImageName = "smile",
              .StartFrame = 0, 
              .EndFrame = 4, 
              .Loop = false,
              .Transparent = rgb(255,0,255),
              .XPos = 150,
              .YPos = 75,
              .ZPos = SpriteLevel(face)+1
           );

Example 3: (a) Positional parameters (hypothetical function that adds a sprite); (b) named parameters.


Copyright © 1999, Dr. Dobb's Journal
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK