destroy enemies, increment counters, detect victory
[gbajam22] / src / util.h
index 3e8ee67..264367b 100644 (file)
@@ -5,6 +5,11 @@
 #include <stdint.h>
 #include "gba.h"
 
+#define RGB555(r, g, b)        \
+       ((((uint16_t)(r) >> 3) & 0x1f) | \
+        (((uint16_t)(g) << 2) & 0x3e0) | \
+        (((uint16_t)(b) << 7) & 0x7c00))
+
 #ifdef BUILD_GBA
 
 #define wait_vblank() \