Hi,
im pretty new at game development, so this is beyond java programming.
I was wondering about how’s the general structure of a map in a normal 2d platform game.
The specific questions are:
1º regardin the image, is it a very wide image and you just print the part that is inside the frame? how do you handle de coords of everything?
2º how do you implement the ground or walls? i heard about tile maps divided in cells, and each cell is either “air” or “solid” but, if you need high precision, i guess you need a really big array of bools, i mean, REALLY big. is that true?
3º how do you place objects and or enemies that are outside the screen? you just set their x to be outside the display area? (e.g. you have a 1024x640 frame, so you place the enemy at 2048. But, when your character moves, what happens?
Im a really newbie in game programming and i just dont imagine how things are. Besides that, all tutorials talk about games like arcanoid, tetris and SPACE INVADERS, but none of them about a game which involves solid and not solid objects (and maps bigger than the actual display size).
If anyone has a mario-style tutorial or code of a rip off (that would be cool) it would be the perfect answer for my questions, and a great help too.
I dont want the exact algorithm, just something explanatory to have a brief idea of how its like.
thank you in advance
fermin