diff options
author | kdx <kikoodx@paranoici.org> | 2023-03-17 20:44:59 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-03-17 20:44:59 +0100 |
commit | f7f7d4f9d1828a481841f18f0884a8bc223b3cfc (patch) | |
tree | 668fd31eb29ba7b9b048809114df39fa7337be64 /src/player.c | |
parent | 1e02a6cf8a3acad1469eb7f3d718c54a4bb6cad3 (diff) | |
download | hyperultra-f7f7d4f9d1828a481841f18f0884a8bc223b3cfc.tar.gz |
spawn player from map
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player.c b/src/player.c index 3ff73f7..32f4f6f 100644 --- a/src/player.c +++ b/src/player.c @@ -68,11 +68,11 @@ player_draw(Entity *this, Game *g) } void -player_init(Entity *this) +player_init(Entity *this, int x, int y) { memset(this, 0, sizeof(*this)); - this->pos[0] = 32; - this->pos[1] = 32; + this->pos[0] = x; + this->pos[1] = y; this->type = ET_PLAYER; this->update = player_update; this->draw = player_draw; |