~ubuntu-branches/ubuntu/oneiric/structure-synth/oneiric

« back to all changes in this revision

Viewing changes to Examples/DontDeploy/JavaScript/Test.es

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz
  • Date: 2009-05-17 16:09:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090517160943-ednszxqc0ppyirni
Tags: 0.9.5.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#javascript
 
2
 
 
3
v = Vector3(1,2,3);
 
4
v.x+=5;
 
5
v.y+=8;
 
6
Debug.Info(v.toString());
 
7
Debug.Info(v.length());
 
8
 
 
9
World.addSphere(Vector3(1,1,1),2);
 
10
 
 
11
Debug.ShowProgress("My progress:");
 
12
for ( i = 0; i < 2; i++) {
 
13
   Debug.SetProgress(i/100.0);
 
14
  Debug.Sleep(10);
 
15
}
 
16
Debug.HideProgress();
 
17
 
 
18
Debug.Info("This will be written to the console.");
 
19
 
 
20
Debug.Message("Completed");
 
 
b'\\ No newline at end of file'