SFML community forums

Help => General => Topic started by: Roose Bolton of the Dreadfort on March 11, 2012, 02:39:12 am

Title: Scrolling World for 2D Games.
Post by: Roose Bolton of the Dreadfort on March 11, 2012, 02:39:12 am
Hey guys,

I am fairly proficient in c++ and general game structures.

Something I haven't learnt is the general concept of a tiled scrolling world, the sort of world you have in a Mario type game.

I'd imagine its a 2 dimensional array displaying the map like

[11100]
[11101]
[00101]

but I'm not sure how to handle the scrolling when the player moves or adding NPC's etc..

I was wondering if someone could point me to some documentation or example code/conceptions which show the general theory/implementation behind it.

I kinda understand how it would work, but I would like to do it the correct way allowing me to expand on it and not get any issues.

Cheers,

Matt
Title: Scrolling World for 2D Games.
Post by: mateandmetal on March 11, 2012, 09:00:29 am
There is a good tutorial here:

http://www.dreamincode.net/forums/topic/230524-c-tile-engine-from-scratch-part-1/

And if you need more info:

http://www.gamedev.net/

 :D