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

typedef struct {
    int x;
    int y;
    int velocity;
    int isActive;
} 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);