Games can affect your computer mainly by using up memory, which may slow things down while you play. To avoid problems, make sure your PC meets the game's requirements.
Requirements vary from title to title, but as a general rule, newer and more demanding games need more memory and a faster CPU to run smoothly.