SFML community forums
Help => General => Topic started by: slouchcouchgamer on August 19, 2014, 10:40:36 pm
-
Hi,
I've just started with the SFML Game Development book, and was working through the first chapter, but would like to ask a question or two before I commit.
Am I right in thinking that, as each new snippet of code is introduced, it is left to the reader to do "prep work" such as declaring the function correctly?
For example, as the handlePlayerInput() function is presented, I don't see any code for declaring it, or any mention of where you should do so. Nor do I see code for declaring bool mIsMoving in the the update() function.
Is all this by design? It is presumed the reader is already proficient enough to not be told this?
-
The code in the book is not meant to be complete, its there merely as a reference as for what lines of code the text is referring to. For the complete code examples check the following link.
https://github.com/SFML/SFML-Game-Development-Book
-
Thanks zsbzsb.
That does help a lot alright.
I'm really excited to get stuck into the book, though what I'd really love to see is the source code broken down to reflect the sections within a chapter, building to the final full source at the end of the chapter.
Still, looks like it will be a fun book to study.