freak-engine/src/player/init.c

14 lines
254 B
C
Raw Normal View History

2021-06-11 11:10:10 +02:00
#include "layers.h"
2021-06-11 01:32:47 +02:00
#include "player.h"
#include <gint/display.h>
void
player_init(struct Player *restrict p, int x, int y)
{
2021-06-11 11:10:10 +02:00
entity_init(p, x, y, 2, 2, 12, 12, L_PUSHABLE, C_BLUE);
2021-06-11 01:32:47 +02:00
p->spd_x = 0.0;
p->spd_y = 0.0;
p->rem_x = 0.0;
p->rem_y = 0.0;
}