summaryrefslogtreecommitdiff
path: root/src/game.c
blob: 6af6ab8729c434c9a36d3f27098f5ca07fe76468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include <string.h>
#include "game.h"

struct game game;

void update_game(float dt) {
  
}

void draw_game() {
  for (int i = 0; i < MAX_ENTITY_COUNT; i++) {
    const struct entity* current = &game.entities[i];
    //Skip inactive entities
    if (!entity_active(current))
      continue;

    draw_entity(current);
  }
}

void init_game() {
  memset(&game, 0, sizeof(struct game));
}