Making a "Game" using C: Where should I start?

Started by
10 comments, last by MasterMas 12 years, 9 months ago
If in the console you can use a simple

char map[20][70]; //array

And then use loops to set the outlying borders. Then a simple collision check would be to see when the character moves if that next space is whatever you use for borders, and if it is then -1 from his current location after you calculated that movement so that he's not inside the border before you display.

alternatively you can set the borders at the declaration of the array, too.

@SuperVGA ...huh, I had no idea they were so messy. I received the code from a friend that had been using it a while and blindly trusted it, thanks for the link.
Advertisement

Use a game engine instead, like GameMaker. C sucks anyway.



You can do a lot more in C than you can do in game maker. Anyway, keep going with C. It's a good script to use. I C++, but I'm not suggesting to use it.

Sam (MasterMas)

This topic is closed to new replies.

Advertisement