Search found 2056 matches

by zorg
Fri Feb 23, 2018 9:24 am
Forum: General
Topic: Spriter support or other skeletal animation software?
Replies: 7
Views: 180

Re: Spriter support or other skeletal animation software?

Well done, you managed to give a response actually worse than no response. Let me up the ante again, then; feel free to interpret my responses however you please, i'm sure that'll wish libraries into existence. : ) Silly and unproductive hostilities aside, here's a list of features other 2D game en...
by zorg
Fri Feb 23, 2018 8:35 am
Forum: General
Topic: Spriter support or other skeletal animation software?
Replies: 7
Views: 180

Re: Spriter support or other skeletal animation software?

You're free to write one if you need one. It's not a necessity, and it's something that can be implemented in lua, and in too many ways to have one standard implementation no one would use, i guess.
by zorg
Fri Feb 23, 2018 7:37 am
Forum: Support and Development
Topic: Ellipsis not working?
Replies: 8
Views: 104

Re: Ellipsis not working?

Also, table.getn is replaced by the # operator, and the module keyword is deprecated. :3

And löve does use luaJIT by default, which is a combination of 5.1 plus some additional 5.2 stuff that doesn't interfere with how 5.1 did things.
by zorg
Thu Feb 22, 2018 7:51 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 2
Views: 71

Re: Same randomness between instances of the same class

I think if I can create a local random or a different random seed for each I could solve the problem, but I haven't found a way to do so. Well then, let me help you: love.math.newRandomGenerator That creates a new, self contained PRNG object, which you can seed, and query, and they don't cross-inte...
by zorg
Thu Feb 22, 2018 7:42 pm
Forum: General
Topic: Read Line with Love File
Replies: 4
Views: 92

Re: Read Line with Love File

Reading single bytes can be slow as hell; reading a big chunk into memory, then iterating over a memory area will always be faster than that; That said, with string patterns, you can still extract single bytes from said loaded chunk, as well as lines and any other pattern that lua's capable of match...
by zorg
Thu Feb 22, 2018 10:47 am
Forum: General
Topic: Need help with (big) Table iteration
Replies: 4
Views: 174

Re: Need help with (big) Table iteration

If anything, i'd remove that 5D table completely, simply tracking where the player (or camera) is with two coordinates, compute how many chunks relative to that coordinate pair is visible (plus a few more on the edges for safety), and what they are, and then dynamically load only those, and remove t...
by zorg
Wed Feb 21, 2018 12:52 pm
Forum: Support and Development
Topic: Apply noise to bounce
Replies: 3
Views: 120

Re: Apply noise to bounce

What PGUp means is that usually, pong games aren't made with realistic physics engines like Box2D (what love.physics uses), although if you wanted to do it that way, it's not wrong per se; that said, if i'm not mistaken, the setLinearVelocity method of a body wants the dx and dy parameters; you'd ne...
by zorg
Tue Feb 20, 2018 9:15 am
Forum: Support and Development
Topic: Rotating a shape?
Replies: 8
Views: 291

Re: Rotating a shape?

rectangles are axis-aligned, as far as love.graphics.rectangle is concerned; you can only rotate those through the transform function love.graphics.rotate, which takes an angle in radians. Ok I see. But love.graphics.rotate just takes one argument which is an angle, how would you tell it to rotate ...
by zorg
Tue Feb 20, 2018 7:57 am
Forum: Support and Development
Topic: Rotating a shape?
Replies: 8
Views: 291

Re: Rotating a shape?

rectangles are axis-aligned, as far as love.graphics.rectangle is concerned; you can only rotate those through the transform function love.graphics.rotate, which takes an angle in radians.
by zorg
Mon Feb 19, 2018 2:32 pm
Forum: Support and Development
Topic: Camera and pause problem
Replies: 4
Views: 163

Re: Camera and pause problem

A bit hard without knowing what gamestate lib you're using, among a few other tidbits of info that may be necessary for us to give you an answer.