Add a starfield in the background.

This should help to better visualize the velocity of the ship.
This commit is contained in:
2026-03-16 21:29:39 +01:00
parent 0e5a4c89e5
commit f1cdffba2b
4 changed files with 107 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
#include "globals.h"
#include "event_manager.h"
#include "ship.h"
#include "starfield.h"
int run;
int redraw;
@@ -179,6 +180,7 @@ int main() {
WINDOW_HEIGHT / 2.0f - ship.y * zoom);
al_use_transform(&transform);
starfield_draw(ship.x, ship.y, zoom);
ship_draw(&ship);
al_identity_transform(&transform);