aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bullet.h
blob: ad67d846e817700ad4530c3e2d42e0ffe94c0aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "player_controller.h"

typedef struct {
    int x;
    int y;
    int velocity;
    int isActive;
    int hit;
} Bullet;


//Bullet* createBullet(float x, float y, float velocity, float direction);
void shootBullet(vec2 playerPos, Bullet* bullet);
void updateBullet(Bullet* bullet, int deltaTime);
void drawBullet(Bullet* bullet);