summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-05-05 20:52:27 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-05-05 20:52:27 -0300
commitd784c30796fb4e7b6dc4170e410ec7fda10f2084 (patch)
tree36d1eca6d12bff15a9c88e80639eb0b40e7a926c
parent38287a5a739ed80857c97bba8e193a765d974529 (diff)
consertado local de inicialização do player
-rw-r--r--game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.c b/game.c
index cc96428..a44b0cf 100644
--- a/game.c
+++ b/game.c
@@ -35,8 +35,8 @@ entinit()
{
player = allocentity();
player->type = EPLAYER;
- player->body.pos[0] = player_x;
- player->body.pos[1] = player_x;
+ player->body.pos[0] = player_x * ENTITY_SIZE * 2;
+ player->body.pos[1] = player_y * ENTITY_SIZE * 2;
player->body.size[0] = ENTITY_SIZE;
player->body.size[1] = ENTITY_SIZE;
player->life = 1;