LOVE Cheat Sheet (1.0)
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: LOVE Cheat Sheet
Looks great!
I'd suggest giving more prominence to enums, since that's what people tend to forget, even when they already know the functions they need by heart.
Good that you give the arguments for the event callbacks. Why did you leave them out for the main callbacks? Also, it might be useful to say something about the return value of love.quit() -- if true, the quitting is cancelled. Useful if you want the player to give in-game confirmation before quitting.
I'd suggest giving more prominence to enums, since that's what people tend to forget, even when they already know the functions they need by heart.
Good that you give the arguments for the event callbacks. Why did you leave them out for the main callbacks? Also, it might be useful to say something about the return value of love.quit() -- if true, the quitting is cancelled. Useful if you want the player to give in-game confirmation before quitting.
Help us help you: attach a .love.
Re: LOVE Cheat Sheet
Awesome! probably going to be using it a bit.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: LOVE Cheat Sheet
Thanks! Hmmmm, ok. It might be a bit hard now, the first page is done, and adjusting it could be tough... but we'll see. That's funny though, I seem to remember the enums I need very well, but it's the function arguments that need to look the wiki up for.Robin wrote:Looks great!
I'd suggest giving more prominence to enums, since that's what people tend to forget, even when they already know the functions they need by heart.
Good that you give the arguments for the event callbacks. Why did you leave them out for the main callbacks? Also, it might be useful to say something about the return value of love.quit() -- if true, the quitting is cancelled. Useful if you want the player to give in-game confirmation before quitting.
About the callbacks, those were the first thing I did on the cheat sheet, and I had a different style in mind then. Those will be changed.
- Alexintosh
- Prole
- Posts: 9
- Joined: Mon Apr 04, 2011 11:18 am
- Location: Italy
- Contact:
Re: LOVE Cheat Sheet
That's very cool, I'm sure will be so useful in these days for me .
Thank you for sharing
Thank you for sharing
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: LOVE Cheat Sheet
It a very good initiative!
If I may, I'd suggest putting the original file + the generated pdf on github, so anyone who wants to tweak/enhance the spreadsheet can do so. Also, sending you changes would be easier.
If I may, I'd suggest putting the original file + the generated pdf on github, so anyone who wants to tweak/enhance the spreadsheet can do so. Also, sending you changes would be easier.
When I write def I mean function.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: LOVE Cheat Sheet
Could it be useful to include default values?
Like you have draw(drawable, x, y, r, sx, sy, ox, oy), but most of the time i'm using
draw(drawable, x, y) because all of the other values have default values.
draw(drawable, x, y, r=0, sx=1, sy=sx, ox=0, oy=0)
Like you have draw(drawable, x, y, r, sx, sy, ox, oy), but most of the time i'm using
draw(drawable, x, y) because all of the other values have default values.
draw(drawable, x, y, r=0, sx=1, sy=sx, ox=0, oy=0)
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: LOVE Cheat Sheet
Thanks guys!
Will do. Although, unfortunately it's in .pages format, so you'll need a Mac with pages to edit it.kikito wrote:It a very good initiative!
If I may, I'd suggest putting the original file + the generated pdf on github, so anyone who wants to tweak/enhance the spreadsheet can do so. Also, sending you changes would be easier.
Indeed, it would be useful. The question is space. I guess some things could go more than one line... but now that'd stuff up my layout. I'll give it a try.TechnoCat wrote:Could it be useful to include default values?
Like you have draw(drawable, x, y, r, sx, sy, ox, oy), but most of the time i'm using
draw(drawable, x, y) because all of the other values have default values.
draw(drawable, x, y, r=0, sx=1, sy=sx, ox=0, oy=0)
Re: LOVE Cheat Sheet
You could do it using a visual cue rather than typing in the default values. For example, making the arguments bold/oblique to show that they are optional.BlackBulletIV wrote: Indeed, it would be useful. The question is space. I guess some things could go more than one line... but now that'd stuff up my layout. I'll give it a try.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
- BlackBulletIV
- Inner party member
- Posts: 1261
- Joined: Wed Dec 29, 2010 8:19 pm
- Location: Queensland, Australia
- Contact:
Re: LOVE Cheat Sheet
Well, that's better than nothing. It doesn't give their defaults, but it does tell they're optional. Thanks for that.
By the way guys, here's the repo: https://github.com/BlackBulletIV/LOVE-cheatsheet . So please, anyone on a Mac, fork it, and help out!
By the way guys, here's the repo: https://github.com/BlackBulletIV/LOVE-cheatsheet . So please, anyone on a Mac, fork it, and help out!
Who is online
Users browsing this forum: Amazon [Bot] and 3 guests