Example: Parallax scrolling

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Example: Parallax scrolling

Post by sauer2 »

Another example for the "examples.love" file showing how to create a parallax effect.
;) Comments and suggestions welcome...
Attachments
parallax.love
(7.25 KiB) Downloaded 356 times
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Example: Parallax scrolling

Post by Xcmd »

Very nicely done. I haven't had a chance to crack open the code, but I like the end result.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: Example: Parallax scrolling

Post by sauer2 »

Wait a minute, my english isn't the best.
Does this mean
a. you had problems with the package,
b. the readability of the code sucks,
or
c. you didn't have enough time yet?
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: Example: Parallax scrolling

Post by sauer2 »

however, i think, this version is better documented.
Attachments
parallax.love
(7.37 KiB) Downloaded 224 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Example: Parallax scrolling

Post by Robin »

sauer2 wrote:a. you had problems with the package,
b. the readability of the code sucks,
or
c. you didn't have enough time yet?
Xcmd meant that last one, I think.

I liked the end result as well, by the way.
Help us help you: attach a .love.
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: Example: Parallax scrolling

Post by sauer2 »

Good to hear.
Here is a small, but significant update in the documentation, since i didn't notice before that 0,0 is the center of an image..
Attachments
parallax.love
(7.37 KiB) Downloaded 250 times
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Example: Parallax scrolling

Post by Xcmd »

Robin wrote:
sauer2 wrote:a. you had problems with the package,
b. the readability of the code sucks,
or
c. you didn't have enough time yet?
Xcmd meant that last one, I think.

I liked the end result as well, by the way.
Correct.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest