hyperultra/src/player.h

18 lines
269 B
C

#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);