char topline[1024];
char *initerror = "";
-struct ship ship = { SHIP_SPRITE, NULL, XSIZE/2, YSIZE/2, SCREENDXMIN, 0.0 };
+struct ship ship = { SHIP, NULL, XSIZE/2, YSIZE/2, SCREENDXMIN, 0.0 };
float screendx = SCREENDXMIN, screendy = 0.0;
float xscroll, yscroll;
if(r) {
bounce(r, SPRITE(&ship));
}
+ collisions();
}
ms_frame = SDL_GetTicks() - ms_end;
return bang;
}
+void
+do_collision(Sprite *a, Sprite *b)
+{
+ bounce(a, b);
+}
+
int
gameloop() {
Uint8 *keystate = SDL_GetKeyState(NULL);