/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* loop.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: dkaiser player.direction.x = ((game->input_direction & RIGHT) != 0) - ((game->input_direction & LEFT) != 0); game->player.direction.y = ((game->input_direction & DOWN) != 0) - ((game->input_direction & UP) != 0); game->player.position.x += game->player.direction.x * PLAYER_MOVE_SPEED; game->player.position.y += game->player.direction.y * PLAYER_MOVE_SPEED; draw(game); return (0); }