Är det lagligt att göra ett spel i ett olagligt nedladdade spelmotor och köpa motorn efter att göra spelet?

Ja. Det är lagligt