Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
To expand with some examples: my text-based game uses some colours in a way I think is nice (but you may have slightly different needs for your game). Basically I have a "Logger" class which adds some filler for common things needed when writing text to the console, and has constants defined for the colour codes at the top of the cpp, first by the name of the colour then by the kind of thing I want (e.g. error colour etc). Then code that wants to use it can add in references to the colour(s) it needs, and ends the line with the ResetColour if it used colours.