#include <acknex.h>
#include <default.c>
#define anzahl_particles 9000 // unter 5000 ist alles in Ordnung.
VECTOR Position[anzahl_particles];
function main()
{
fps_max = 10;
video_set (sys_metrics(0),sys_metrics(1),32,1);
max_particles = 10000;
level_load (NULL);
vec_set (sky_color,nullvector);
vec_set (camera.x,vector(-600,0,0));
int i;
for (i=0; i<anzahl_particles; i++)
{
Position[i].x = random(500) -250;
Position[i].y = random(500) -250;
Position[i].z = random(500) -250;
}
while (1)
{
for (i=0; i<anzahl_particles; i++)
{
draw_point3d(Position[i],vector(0,0,255),100,2);
}
wait(1);
}
}