CAMERA: scrolling and scaling

Showcase your libraries, tools and other projects that help your fellow love users.
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: CAMERA: scrolling and scaling

Post by osuf oboys »

mike wrote:That is funky effect, but the debug text (like the amount of BALLS that have been drawn seems to be subject to the rotation, which I am guessing isn't a part of the point?
It does not rotate with the ball but on its own (15 degrees per second I think). I should have made it clearer that it's part of the demonstration.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

Re: CAMERA: scrolling and scaling

Post by mike »

Ah, right. I got confused. That demo is so damn trippy :rofl:
Now posting IN STEREO (where available)
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: CAMERA: scrolling and scaling

Post by Xcmd »

Honestly I emphatically and whole-heartedly vote that Camera be made a standard part of Love. This is probably the most useful library yet.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
Neptar
Prole
Posts: 20
Joined: Mon Feb 16, 2009 3:24 am
Location: England

Re: CAMERA: scrolling and scaling

Post by Neptar »

I agree, this is brilliant. I was going to start writing my own, but found this and well it does the job great.
User avatar
Voker57
Prole
Posts: 29
Joined: Mon Nov 03, 2008 9:38 am
Location: Russia, Krasnodar
Contact:

Re: CAMERA: scrolling and scaling

Post by Voker57 »

nice library, i think i'll use it in my game. BTW, your signature would make much more sense if there was a link to explanation of what LCPL actually is.
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: CAMERA: scrolling and scaling

Post by appleide »

This is pretty awesome!
You can cheat by pressing left in the boxclimber... Hold it, do high jumps! :ultrahappy:
User avatar
Neptar
Prole
Posts: 20
Joined: Mon Feb 16, 2009 3:24 am
Location: England

Re: CAMERA: scrolling and scaling

Post by Neptar »

appleide wrote:This is pretty awesome!
You can cheat by pressing left in the boxclimber... Hold it, do high jumps! :ultrahappy:
haha, nice find.
User avatar
phoku
Prole
Posts: 6
Joined: Sat Mar 14, 2009 10:35 am

Re: CAMERA: scrolling and scaling

Post by phoku »

I'm pretty sure line 533 should have a nil instead of a mil.

Code: Select all

       function love.mouse.getY()
		return camera.present:unpos(nil, camera.love.mouse.getY())
	end
EDIT: Ooops. That's already fixed. Wasn't used to use a wiki as VCS. My fault.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: CAMERA: scrolling and scaling

Post by Robin »

phoku wrote:I'm pretty sure line 533 should have a nil instead of a mil.
It doesn't make a difference, really. The global variable "mil" probably has not been set, so it evaluates to nil anyway.
I think it will be a tad slower, but it's probably not noticeable.
Help us help you: attach a .love.
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: CAMERA: scrolling and scaling

Post by osuf oboys »

Thanks for your comments. I have uploaded the latest version to the thread.
Wasn't used to use a wiki as VCS.
The intention was that people would adapt the module to what they believed the community needed, rather than what I believed, and to do so with a wiki-like attitude. qubodup has been editing the information on the wiki, but so far noone but myself has edited the module itself.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
Post Reply

Who is online

Users browsing this forum: No registered users and 82 guests