Given this code:
char character = '@';
int x = 2;
int y = 2;
char floor[10][6] = { /* 219 = filled block, 32 = space */
219, 219, 219, 219, 219, 219, 219, 219, 219, '\n',
219, 32, 32, 32, 32, 32, 32, 32, 219, '\n',
219, 32, 32, 32, 32, 32, 32, 32, 219, '\n',
219, 32, 32, 32, 32, 32, 32, 32, 219, '\n',
219, 219, 219, 219, 219, 219, 219, 219, 219, '\n'};
/* game.c (main file) */
#include <stdio.h>
#include "game.h"
int main(void){
system("cls");
floor[x][y] = character;
printf("%s", floor); /* print the map and character */
There are several problems. First, your array is not null terminated; it is not safe to print it like that. There are only 5 * 10 = 50 characters in that array, so it is null terminated after all. I didn't notice the miscounting until later. If you had the sixth line of data, you'd have to use:
printf("%.*s", (int)sizeof(floor), floor);
The other problem is that you've misunderstood the array; it is 10 rows of 6 characters, not 6 rows of 10 characters.
char floor[10][6] =
{ /* 219 = filled block, 32 = space */
{ 219, 219, 219, 219, 219, 219, },
{ 219, 219, 219, '\n', 219, 32, },
{ 32, 32, 32, 32, 32, 32, },
{ 219, '\n', 219, 32, 32, 32, },
{ 32, 32, 32, 32, 219, '\n', },
{ 219, 32, 32, 32, 32, 32, },
{ 32, 32, 219, '\n', 219, 219, },
{ 219, 219, 219, 219, 219, 219, },
{ 219, '\n' },
};
and, in fact, your data is short a few characters too. However, it will appear OK because of the way you print it, but if you did fully bracketed initialization, you'd find that you had problems if you put the brackets around each line in your original layout.
I'd be tempted to use names instead of numbers for the characters in the initializatio:
enum { WALL = 219, OPEN = 32, ENDL = '\n' };
These are uniformly 4 letters each, making for a more systematic layout in the initializer.
Note that when you place the character at 2,2, you are modifying the array like this:
char floor[10][6] =
{ /* 219 = filled block, 32 = space */
{ 219, 219, 219, 219, 219, 219, },
{ 219, 219, 219, '\n', 219, 32, },
{ 32, 32, '@', 32, 32, 32, }, // Change here!
{ 219, '\n', 219, 32, 32, 32, },
{ 32, 32, 32, 32, 219, '\n', },
{ 219, 32, 32, 32, 32, 32, },
{ 32, 32, 219, '\n', 219, 219, },
{ 219, 219, 219, 219, 219, 219, },
{ 219, '\n' },
};