freak-engine/src/player/init.c

14 lines
245 B
C

#include "layers.h"
#include "player.h"
#include <gint/display.h>
void
player_init(struct Player *p, int x, int y)
{
entity_init(p, x, y, 2, 2, 12, 12, L_PUSHABLE, C_BLUE);
p->spd_x = 0.0;
p->spd_y = 0.0;
p->rem_x = 0.0;
p->rem_y = 0.0;
}