Thanks, guys. This was kind of hard to understand since the rectangle's draw function doesn't have sx/y and ox/y arguments. I did a bunch of pushes and pops to control it better.
Slime is there a chance of unifying the syntax for all things drawn to screen so either all provide offsets and scale settings or all depend on transformations? I think I saw a commit a couple of days ago about transformation matrixes that could help on this. What are your ideas about this stuff?
PS: megalukes you may be applying the offset twice in the code you posted
for i, person inipairs(everybody) do [tab]ifnot person.obey then person:setObey(true) end end
love.system.openURL(github.com/pablomayobre)
Is there a way to load fonts that are Installed on the system? Distribution of some font files may require terms that prohibit usage in some ways which bothers me.
Pyuu wrote:Is there a way to load fonts that are Installed on the system? Distribution of some font files may require terms that prohibit usage in some ways which bothers me.
Can be done with either manually dropping them on the project (though it'll only work at that time, not when you start up your project again, since you'll need to do it again*) or using lua's io functions, though those are os-specific, so care must be taken.
That said, if you'd wanted to do this automatically, and you intend your project for others as well, not just you, i don't think you can actually assume that the font will exist on anyone else's computers. Telling them to get font 'xyz' themselves isn't something you should bank on either.
*:Probably can be worked around, but very hackishly.
Me and my stuff True 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.
zorg wrote:-snip-
Telling them to get font 'xyz' themselves isn't something you should bank on either.
The reason I'm curious about this is for common fonts that you can almost bet on existing on most end-user's PCs, such as Arial or Tahoma. Also, detection of those fonts existence and using reasonable alternative fonts based on OS and prepackaged fonts when they don't exist would be a good way to go about not having fonts. (It may cause the experience to differ slightly, but it still avoids the need to go about distribution licenses and potential copyright infringement when packaging the game.)