Home | History | Annotate | Download | only in test

Lines Matching defs:velocities

39 static SDL_Rect *positions, *velocities;
102 velocity = &velocities[i];
189 velocities = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect));
190 if (!positions || !velocities) {
200 velocities[i].x = 0;
201 velocities[i].y = 0;
202 while (!velocities[i].x && !velocities[i].y) {
203 velocities[i].x = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
204 velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;