voidupdate_persons(void){ bool is_sort_needed = false; int i; for (i = 0; i < s_num_persons; ++i) { if (s_persons[i]->leader != NULL) continue; // skip followers for now update_person(s_persons[i]); is_sort_needed |= has_person_moved(s_persons[i]); // <-- CRASH HERE } if (is_sort_needed) sort_persons();}
Damn is libmng bloated though. It added about 200KB to the engine executable size.
var shader = new ShaderProgram('pixel.glsl', 'vertex.glsl'); // this might be changed to take an object argumentvar image = new Image('ScottSucks.png');var shape = new Shape([ { x: 10, y: 10 }, { x: 110, y: 10 }, { x: 110, y: 110 }, { x: 10, y: 110 },], image);var group = new Group([ shape ], shader);