summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/starfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'share/hackvr/examples/starfield.c')
-rw-r--r--share/hackvr/examples/starfield.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/hackvr/examples/starfield.c b/share/hackvr/examples/starfield.c
new file mode 100644
index 0000000..d367bb3
--- /dev/null
+++ b/share/hackvr/examples/starfield.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int main(int argc,char *argv[]) {
+
+ int i,x,y,z;
+ for(i=0;i<100;i++) {
+ x=(rand()%1000)-500;
+ y=(rand()%1000)-500;
+ z=(rand()%1000)-500;
+ printf("star%d addshape %d 1 %d %d %d %d %d %d\n",i,(rand()%7)+17,x,y,z,x+rand()%10,y,z);
+ }
+}