I had no one to play with and was lonely.

Literal

Play-partner [subject-が] nonexistent lonely was.

遊び相手 (playmate) compounds the verb stem 遊び with 相手 (companion/partner). がなくて links the absence to its emotional consequence. A simple, affecting sentence with genuine emotional weight despite minimal grammatical complexity.