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

#define AIR_RESISTANCE 0.99
#define GRAVITY        0.2

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

struct Entity;
struct Game;

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