I'm not sure if the title is completely accurate, so please let me know if I should change it.
I'm trying to get into game programming, so I'm creating really basic games (the one I'm currently working on, which is also the first, is a 2D game in only one room, so I can get used to writing characters, enemies, and other objects, along with movement and combat, without having to worry about implementing other rooms and the transition between them.) and working my way up.
My current problem is this:
The only way that I can think of to make a map grid is to have a two-dimensional array, for example, *datatype* mapcoord, if I wanted to have a map 400 tiles wide and 200 tiles high. Then, I could set the value of each position to a number, for example, the boundaries of the map and the walls could be set to -1, open space could be 0, enemies are set to 1, etc.
The problem is that I'd also like to have precision and smooth movement, using floating point numbers, so an object could be located at point 32.0416912, 4.194002, instead of just being at 32, 4.
How would I implement this?