Search found 2748 matches

by zorg
Sat Jan 25, 2020 5:49 am
Forum: Support and Development
Topic: How to turn binary into characters and viceversa
Replies: 4
Views: 72

Re: How to turn binary into characters and viceversa

For one, you mean {1,1,0,1,0,1}, note the brackets; second, assuming that is a binary string, you can do this:

Code: Select all

string.byte(tonumber(table.concat{1,1,0,1,0,1}, 2))
Be aware that this isn't completely UTF-8 compatible, since it just returns 8-bit characters.
by zorg
Wed Jan 22, 2020 12:05 am
Forum: General
Topic: Problems with localising variables
Replies: 5
Views: 180

Re: Problems with localising variables

One more complication, require can only return 1 result.
by zorg
Tue Jan 21, 2020 8:32 pm
Forum: General
Topic: Shoot Em up - movement patterns
Replies: 1
Views: 74

Re: Shoot Em up - movement patterns

Not sure how useful these'll be for you, but there are a few tutorials that also talk about generic trig stuff and other things that may come in handy
https://sparen.github.io/ph3tutorials/d ... esign.html
by zorg
Sat Jan 18, 2020 1:47 pm
Forum: Support and Development
Topic: Re: Hash
Replies: 3
Views: 241

Re: Re: Hash

As far as i can tell from the source, the wiki's order should be the one that works...
https://github.com/love2d/love/blob/mas ... #L303-L325
by zorg
Sat Jan 18, 2020 1:31 pm
Forum: Support and Development
Topic: [IMPORTANT] Problem with the game distribution.
Replies: 13
Views: 527

Re: [IMPORTANT] Problem with the game distribution.

Just look at this 3,500 line switch-case statement: https://github.com/TerryCavanagh/VVVVVV/blob/master/desktop_version/src/Game.cpp#L605 Jesus, a switch statement going up to magic number 4099, not to mention the lack of any comment in most of the cases and the complexity nested in some of them. I...
by zorg
Sat Jan 18, 2020 7:28 am
Forum: General
Topic: Recommendation for Tutorials starting point[solutions provided]i
Replies: 1
Views: 138

Re: Recommendation for Tutorials starting point

I wouldn't bet on that, mainly because unfortunately they might be for different versions, with things no longer applicable to the current one; they would need to be updated and -kept- updated by volunteers, which apparently isn't happening yet. I'd start with a lua (5.1) tutorial first, then with a...
by zorg
Wed Jan 15, 2020 5:35 am
Forum: Support and Development
Topic: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.draw?
Replies: 5
Views: 392

Re: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.dra

Gold_Car wrote:
Tue Jan 14, 2020 8:42 pm
I hadn't realized that a canvas could display more than one instant in time.
Yep, that's pretty much the purpose of a Canvas, to have one to draw to repeatedly... pretty sure you're also not just creating images with newImage each frame either... right? :awesome:
by zorg
Wed Jan 08, 2020 12:03 am
Forum: Support and Development
Topic: love.graphics set and get matrix instead of add or multiply
Replies: 1
Views: 141

Re: love.graphics set and get matrix instead of add or multiply

you can love.graphics.push the current one, call love.graphics.origin so it'll be reset, then set the new properities;
11.x added transform objects too, and using love.graphics.replaceTransform method does what you want, probably (although you'd need to use transform objects with that)
by zorg
Tue Dec 31, 2019 6:17 pm
Forum: General
Topic: forums vs subreddit
Replies: 1
Views: 444

Re: forums vs subreddit

Apparently, from the moderator list on the subreddit, seems like the devs are there too, so i'd guess that's official as well. I personally never use reddit, and prefer the löve discord server and the forums; the former for more realtime interactions, the latter for permanence and for others to actu...
by zorg
Tue Dec 31, 2019 6:20 am
Forum: Support and Development
Topic: The game loop
Replies: 4
Views: 776

Re: The game loop

I'm with P. on this one.