view src/creep.h @ 7:3ed112d64b1b

Added basic creep spawning code
author Mike Pavone <pavone@retrodev.com>
date Sun, 12 Jan 2014 15:22:22 -0800
parents 8f23be2db808
children c0bb53eaa6f4
line wrap: on
line source

#ifndef CREEP_H_
#define CREEP_H_

enum {
	CREEP_NORMAL = 0
} creep_species;

typedef struct {
	u16  index;
	u16  health;
	u8   species;
	u8   direction;
} creep;

#define MAX_CREEPS 40
extern u16 cur_creeps;
u16 spawn_creep(u8 species, s16 x, s16 y);

#endif //CREEP_H_