atompacman / Xerof

2D survival simulator (AI sandbox)
1 stars 1 forks source link

Xerof

Setup developing environment

Instructions for creating the Microsoft Visual Studio (2008-2013) project

Development tools

Logging

Use the following functions to log messages to console:

Replace LEVEL by: TRACE, DEBUG, INFO or WARNING.

Ex.: LOG(INFO) << "Information";

*** Do not log "FATAL" level messages. Instead, use this: FatalErrorDialog("Something important failed."); Or this: std::stringstream ss; ss << "Over " << 9000 << " nuggets"; FatalErrorDialog(ss.str());

Max line length

The maximum length of lines of code is 80. Install this plugin to be able to add a guideline: https://visualstudiogallery.msdn.microsoft.com/da227a0b-0e31-4a11-8f6b-3a149cf2e459