It's not complaining that you need a close curly bracket on the last line, just that the parser reached the last line and there is still a bracketed block that hasn't been ended with a close curly bracket.

Check you Update function, it looks like it is missing a close curly bracket.

'Game is not defined' means, in this case, that well and truly game() is not defined as a global function. In this case it's because putting a close curly bracket on the last line makes the game() part of the scope of Update(), since putting a close curly bracket on the last line makes Update() span from the function declaration to the last line. Which includes all the functions that are defined after it.

Your indentation is very clean--which is excellent, it is what helps you see these errors quickly.

When I first used Sphere I'd do the same thing. I'd curse the screen for wondering why, then see my error moments later. Just to know I had a pretty rocky relationship with my monitor the first few months. (But that was so long ago)...

If you use code to help you code you can use less code to code. Also, I have approximate knowledge of many things.

It's not complaining that you need a close curly bracket on the last line, just that the parser reached the last line and there is still a bracketed block that hasn't been ended with a close curly bracket.

Check you Update function, it looks like it is missing a close curly bracket.

'Game is not defined' means, in this case, that well and truly game() is not defined as a global function. In this case it's because putting a close curly bracket on the last line makes the game() part of the scope of Update(), since putting a close curly bracket on the last line makes Update() span from the function declaration to the last line. Which includes all the functions that are defined after it.

I...actually can believe I missed that. Thanks. And double thanks for the explanation. I see what happened now.

When I first used Sphere I'd do the same thing. I'd curse the screen for wondering why, then see my error moments later. Just to know I had a pretty rocky relationship with my monitor the first few months. (But that was so long ago)...

I curse the screen, then give up and walk away, heh. I'll get there, though.