tl;dr
If you mean are there any collision libraries that support rotation, AFAIK there's windfield and the better and updated version of it breezefield.
windfield: https://github.com/a327ex/windfield
breezefield: https://github.com/HDictus/breezefield
Search found 85 matches
- Mon Aug 28, 2023 10:40 am
- Forum: General
- Topic: Collision library that take rotation in to account
- Replies: 14
- Views: 7741
- Tue Aug 15, 2023 6:14 am
- Forum: General
- Topic: How to load a lua file as a function (OLD: Adding variables to a table return nil)
- Replies: 3
- Views: 1936
- Fri Aug 11, 2023 11:23 am
- Forum: General
- Topic: How to load a lua file as a function (OLD: Adding variables to a table return nil)
- Replies: 3
- Views: 1936
Re: Adding variables to a table return nil
Ok, I fixed it but now my code doesn't detect the "self" keyword. Although I called the function via a colon sign. That's because I used a load function, I also tried using loadstring and dostring (ok, looks like this function doesn't exist meanwhile dofile does), but none of them worked. ...
- Thu Aug 10, 2023 5:48 pm
- Forum: General
- Topic: How to load a lua file as a function (OLD: Adding variables to a table return nil)
- Replies: 3
- Views: 1936
How to load a lua file as a function (OLD: Adding variables to a table return nil)
For some reason, a value doesn't get added into a table, and when I try to output or call it, it just returns nil or an error. I tried using the unpack() function, load() but neither of them didn't work. function create_object(name, options, events) local obj = { type = name, x = 0, y = 0, width = 0...
- Sun Jul 02, 2023 8:49 am
- Forum: Support and Development
- Topic: Whats Love 2d exactly ?
- Replies: 3
- Views: 2937
Re: Whats Love 2d exactly ?
Lua is a simple programming language. And Love2D is a game framework, that uses Lua to code.
- Sun Jul 02, 2023 8:45 am
- Forum: Libraries and Tools
- Topic: lovepatch - A 9-patch library for LÖVE
- Replies: 4
- Views: 3309
Re: lovepatch - A 9-patch library for LÖVE
Thanks! It's nice to see when someone uses your library!pauljessup wrote: ↑Sat Jul 01, 2023 4:25 pm Well that is really cool! Huh. I think I might update my simpleWindows thing to use that, since it already does edges/etc, it just doesn't scale with them/etc.
Sorry if I broke the logic in the sentence!
- Fri Jun 30, 2023 6:22 pm
- Forum: Libraries and Tools
- Topic: lovepatch - A 9-patch library for LÖVE
- Replies: 4
- Views: 3309
- Fri Jun 30, 2023 12:02 pm
- Forum: Libraries and Tools
- Topic: lovepatch - A 9-patch library for LÖVE
- Replies: 4
- Views: 3309
lovepatch - A 9-patch library for LÖVE
There are already, of course, the 9-patch libraries for LÖVE. But they work different . :o: You had to place in the borders of the image the black pixels and, if I recall correctly, use .9.png file extension. I did not really like this. :P So I decided to make my own 9-patch library that would just ...
Re: 9Patch
Removed code, fixed W and H values: -- drawPatch function lib.draw(patch, x, y, width, height) local imageW, imageH = patch.image:getDimensions() -- edited: local imageMiddleW = imageW-2*patch.edgeW -- actually you can store this values in the patch local imageMiddleH = imageH-2*patch.edgeH local p...
Re: 9Patch
Just use the update function with new width and height of patched area. I put some of the update() function contents into the draw() function and it worked, except for when you want the width and height not to be the same. What I'm trying to make is a 9patch that can be drawn and its width and heig...