Boids/Wren: Difference between revisions

→‎Code: Fixed syntax highlight isse.
m (→‎Code: Fixed syntax highlighting.)
(→‎Code: Fixed syntax highlight isse.)
Line 556:
Boids[i].speed = (0.98 + 0.04 * Rand.float()) * MOVE_SPEED
}
InitGL.call()</langsyntaxhighlight>
<br>
We now embed this Wren script in the following C program, compile and run it.
<langsyntaxhighlight c>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
9,485

edits