How may i improve the run speed of my game code in C?

Antonio Tapia

New member
You see i am attempting to make an text based game to run in an cmd window but the method i am using is way too slow because i am making a matrix and then printing it is there a way for me to just print changes in the matrix instead of having to print it all again; will multi threading aid and if so where can i find a decent tutorial?

here is the source code in pastebin.com

http://pastebin.com/i3ZAcLkn
what i made was a character matrix like so:
char map[26][81]={
//col 00000000011111111112222222222333333333344444444445555555555666666666677777777778
//lum 12345678901234567890123456789012345678901234567890123456789012345678901234567890 row
"________________________________________________________________________________",//01
"| |",//02
"| |",//03
"| |",//04
"| |",//05
"| |",//06
"| |",//07
"| |",//08
 
Back
Top