Page 1 of 2

Looking to poke at the löve code

Posted: Wed Jul 06, 2016 6:10 pm
by skyHights
so, is it possible to get the love2d source (the C# I believe) code to have a poke at it and potentially (as in it probably wouldn't be any help) help with coding it?

Re: Looking to poke at the löve code

Posted: Wed Jul 06, 2016 6:29 pm
by Nixola
It's C++ and yes, sure you can! Here's the link!

Re: Looking to poke at the löve code

Posted: Wed Jul 06, 2016 8:44 pm
by skyHights
Nixola wrote:It's C++ and yes, sure you can! Here's the link!
Thank you <3
(we need a heart or love emoji :P)

Also, different topic, the shortenings in your signature, can you put:
lg.print("hello world", 5, 5)
as opposed to:
love.graphics.print("hello world", 5, 5)
?

because that would be amazing.

Re: Looking to poke at the löve code

Posted: Wed Jul 06, 2016 8:48 pm
by Nixola
Yes, if you write "local lg = love.graphics" at the top of your file (and you can only do it in files where you do that). That refers to code I write on the forums when I'm in a hurry, mostly.

Re: Looking to poke at the löve code

Posted: Wed Jul 06, 2016 8:52 pm
by zorg
Many of us use these aliases also. :3

Re: Looking to poke at the löve code

Posted: Thu Jul 07, 2016 8:53 am
by pgimeno
I use slightly different ones, to avoid some ambiguities: "Does ls mean love.system or love.sound? Does lt mean love.thread or love.timer? Does lf mean love.filesystem or love.font?" https://github.com/pgimeno/Thrust-II-re ... spaces.lua

Re: Looking to poke at the löve code

Posted: Thu Jul 07, 2016 10:46 am
by zorg
To be fair, usually it should be possible to decide those from context; separation of concerns should mean that a piece of code using love.sound won't really mess with love.system at all. :3 (But hey, to each their own.)

Re: Looking to poke at the löve code

Posted: Sun Jul 10, 2016 10:40 am
by Jasoco
skyHights wrote:
Nixola wrote:It's C++ and yes, sure you can! Here's the link!
Thank you <3
(we need a heart or love emoji :P)
❤️

I just use actual Emoji. (On macOS, press Command+Control+Space)

(I hope your OS supports Emoji like every modern OS should these days does.)

Re: Looking to poke at the löve code

Posted: Sun Jul 10, 2016 1:11 pm
by zorg
Jasoco wrote:(I hope your OS supports Emoji like every modern OS should these days does.)
Nowadays it's more like what the used web browser supports... still, ❤️ :3

Re: Looking to poke at the löve code

Posted: Sun Jul 10, 2016 11:57 pm
by Jasoco
zorg wrote:
Jasoco wrote:(I hope your OS supports Emoji like every modern OS should these days does.)
Nowadays it's more like what the used web browser supports... still, ❤️ :3
Nah, it's the OS. Though some websites like FaceBook and Twitter provide their own Emoji fonts to guarantee support for people on lesser operating systems that don't support Emoji. (Like Windows 7. I think 8 was where it first appeared on Windows. OS X has had it for quite a few years now standard.)

Emoji is just a font face. Quite literally. An Emoji is just a special character essentially that like other special characters, gets replaced with a proper "character" on screen if it exists in the current font. And if it doesn't, it just appears as a "missing character" symbol. Sometimes a box.

The only problem I have with it is that there's no way to tell if a specific Emoji is going to show up on the other end because of how it's always in progress and a lot of people still have older devices. They add new ones all the time, and usually brand new devices get the new font, but old ones end up not being able to see them but you can't tell if they're getting it or not. You end up looking silly when you post a Thinking Face Emoji and it ends up as a box on the other end. Note: I can't even post a Thinking Face here because the forum doesn't recognize it. Stupid forum.