Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(4 edits)

You also can use an array of styles, say, [style1, style2, style1 (to revert the styles)], and then, after making a string of what to output (say,
‘%c stuff \n
stuff \n
%c other stuff that’s styled differently %c’
), destructure it with console,log(string, ...styles). This way, you can change the style for one character (say, your player) instead of using ascii art.