Intermediate C++ Game Programming Tutorial 7
We finally ditch our janky makeshift
chili:: routines and use some real shit here. Standard streams (
std::fstream) are covered, and then we talk about string manipulation with
std::string. We'll also cover some other less well-known dank C++ code memes, so check it out. Note that this video is more of an overview / whirlwind tour; it introduces various techniques and gives examples, but don't expect a detailed or exhaustive treatment here.
- C++ Streams
std::endland buffered I/O flushing
- Cleaning an input stream with
Video Timestamp Index
The homework is to modify Poison Snek so that various game settings can be configured by the user by editing a text file. The settings file should be parseable regardless of the order of the settings in the file. The following settings are recommended:
- Tile Size
- Board Size
- Speedup Rate
- Poison Amount
- Food Amount
For this homework, you are not required to handle malformed input files, though you can attempt to handle those as a bonus challenge if you like.