bullet.h 249 B

123456789101112131415161718
  1. #ifndef _BULLET_H
  2. #define _BULLET_H
  3. #include <stdbool.h>
  4. #include "raymath.h"
  5. typedef struct bullet_t {
  6. Vector2 position;
  7. Vector2 velocity;
  8. Vector2 accel;
  9. Vector2 direction;
  10. float radius;
  11. bool active;
  12. } bullet;
  13. #endif // _BULLET_H