aboutsummaryrefslogtreecommitdiff
path: root/src/enemies/fish.h
blob: 9648bcd7a8c2580fb1a39c57738e771eb285e797 (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
#ifndef FISH_H
#define FISH_H

#include "../enemy.h"
#include "../collision.h"

typedef struct {
	int id;
	
	double x, y;
	int xstart;
	double imageIndex;
	double spd;	
	int dir, turning;
	
	Mask mask;
} Fish;

void createFish(int x, int y, int dir);

void fishStep(Fish* f);
void fishDraw(Fish* f);

#endif