We describe a generalization of most-perfect magic squares, called type-p mostperfect squares, and in prime-power orders we give a linear construction of these squares reminiscent of de la Loubère's classical magic square construction method. Type-p mostperfect squares can be used to construct other interesting squares (e.g., generalized Franklin squares) and our linear construction may have implications for counting type-p most-perfect squares.