Note that only the x component of the velocity affects the particle’s impacts on these two walls,The larger the x component of the velocity, the faster the particle travels between these two walls, thus producing more impacts per unit of time on these walls.