run out of time
Hello Unfortunately I ran out of time. My plan was to finish it today (I know, playing against the rules), but not even that was possible. It is a pity because I had a real neat idea. But at least I learned how parallax scrolling works and can be implemented. Anyway if anyone is interested what I was working on can find it here:http://code.google.com/p/pyweek5-maze/source/browse/#svn/trunk/pyweek11-2010-08
"svn checkout http://pyweek5-maze.googlecode.com/svn/trunk/pyweek11-2010-08/ CaughtOnPicture-readonly"
~DR0ID
(log in to comment)
Comments
About the parallax scrolling: before pyweek I only knew the basics, but not how to implement it. The implementation is very simple:
There are layers in the range 0.0 - 1.0, the layer on the front is 1.0 (and should have the size you can scroll) and the background is 0.0 (fixed in the window). To draw the layers I just do:
screen_x = sprite.x - (view.scroll_offsetx * sprite.layer)
That is all the magic of parallax scrolling.
dlotts on 2010/08/30 00:50:
Me too. I'm even too lame to post what I had! Bravo for doing that Dr0id!Anybody know if we are eligible to judge?
No gamey -- no judgey?
dlotts