Looking to poke at the löve code

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
skyHights
Citizen
Posts: 78
Joined: Mon Aug 25, 2014 12:14 pm

Looking to poke at the löve code

Post 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?
Learning to Löve.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Looking to poke at the löve code

Post by Nixola »

It's C++ and yes, sure you can! Here's the link!
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
skyHights
Citizen
Posts: 78
Joined: Mon Aug 25, 2014 12:14 pm

Re: Looking to poke at the löve code

Post 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.
Learning to Löve.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Looking to poke at the löve code

Post 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.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Looking to poke at the löve code

Post by zorg »

Many of us use these aliases also. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
pgimeno
Party member
Posts: 3550
Joined: Sun Oct 18, 2015 2:58 pm

Re: Looking to poke at the löve code

Post 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
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Looking to poke at the löve code

Post 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.)
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Looking to poke at the löve code

Post 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.)
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Looking to poke at the löve code

Post 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
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Looking to poke at the löve code

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 252 guests