rm test param
This commit is contained in:
parent
bbb631f633
commit
db592bdb70
2
bullet.c
2
bullet.c
|
@ -36,7 +36,7 @@ void bullet_spawn(BulletType type, Vector2 pos, float angle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_bullets(Camera2D *cam)
|
void draw_bullets()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < BULLET_MAX; i++) {
|
for (int i = 0; i < BULLET_MAX; i++) {
|
||||||
if (bullets[i].time <= EPSILON)
|
if (bullets[i].time <= EPSILON)
|
||||||
|
|
2
bullet.h
2
bullet.h
|
@ -10,6 +10,6 @@ void bullet_load();
|
||||||
|
|
||||||
void bullet_spawn(BulletType type, Vector2 pos, float angle);
|
void bullet_spawn(BulletType type, Vector2 pos, float angle);
|
||||||
|
|
||||||
void draw_bullets(Camera2D *cam);
|
void draw_bullets();
|
||||||
|
|
||||||
#endif // BULLET_H
|
#endif // BULLET_H
|
||||||
|
|
2
main.c
2
main.c
|
@ -111,7 +111,7 @@ int main(void)
|
||||||
BeginMode2D(effect_camera);
|
BeginMode2D(effect_camera);
|
||||||
{
|
{
|
||||||
DrawTexture(map.texture, map.box.x, map.box.y, WHITE);
|
DrawTexture(map.texture, map.box.x, map.box.y, WHITE);
|
||||||
draw_bullets(&camera);
|
draw_bullets();
|
||||||
}
|
}
|
||||||
EndMode2D();
|
EndMode2D();
|
||||||
draw_ninja(Vector2Add(SCREEN_MIDDLE, cam_shake), &camera);
|
draw_ninja(Vector2Add(SCREEN_MIDDLE, cam_shake), &camera);
|
||||||
|
|
Loading…
Reference in New Issue