← Back to team overview

logame team mailing list archive

Re: Scrolling / Tiling

 

2009/9/15 Paul Elms <launchpad@xxxxxxxxxxxxxx>

> Hi all,
> I have recently committed code that allows the background to scroll to
> the left and the right as the player moves around.  I can add scrolling
> up and down later if it is needed.  If anyone spots any bugs with this,
> please let me know.
>
>
It looks pretty cool. When trying it out I thought I would never reach the
end of the starfield.

Up and down scrolling hhm Jetpacks come to my mind. ;-) Maybe in Version
3.0. :-)


> I am thinking of trying to implement some sort of tiling engine next,
> that will read a level.yaml file and draw particular tiles at the
> correct locations on the background.  The idea is that all the tiles are
> blitted once to the background when the level is loaded and then the
> correct region of the background is blitted to the screen during play
> (that last bit is already implemented.)  This should keep the number of
> blits down and the running speed up.
>

Good idea, sounds very reasonable. It would be perfectly fine with me if you
do the tiling stuff. :-)


> When I have got that done, I can work on the collision detection with
> the scenery and a map editor...
>
Great, I would then take care of the controlls (multiple key presses), more
powerups and firing enemies.


>
> Any comments/pointers?
>
> Paul
>
> PS: Ben, I have also sent this to you CC as I have no idea if it will
> get to the list.  As you are the a major contributor I wanted to let you
> know what I was doing :)
>
>
> It seemed to work fine this time. Hopefully this answer reaches the list
also. :-)

References