Just started university doing a Computer Science with Games Development degree. Looking into making a 2D platformer using tile mapping. Obviously one feature of 2D platformers is a world bigger than the screen, i.e. Super Mario Brothers, Legend of Zelda, etc.
I'm wondering how to do this. I've got a tile map set up using an array of texture, but now I'm stuck on :
- How do you code the fact that when the player is in the tile of y = 0 or x = screenWidth then scroll up or along a bit?
- How do I draw the player in all of this? (Using basic squares until I have this figured out and then I have an artist lined up to draw some stuff)
Any help would be great. Most of the answers on questions like these suggest using an engine, but I do not want to do this, so please do not suggest it.
edit : Also, yes I have had a look at the platformer starter kit. I didn't think it was really much help? I need some explanation along with code, and it's not very well commented.