summaryrefslogtreecommitdiff
path: root/src/player.h
blob: 381fe466345939eee3bbd78e4e5507e99defb91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#define AIR_RESISTANCE 0.99
#define GRAVITY        0.2

typedef struct {
	double scale_x;
	double scale_y;
	double rot_speed;
	double angle;
	int dirx;
} Player;

struct Entity;
struct Game;

struct Entity *player_init(struct Entity *this, int x, int y);