Search found 100 matches
- Fri Aug 02, 2024 1:18 pm
- Forum: General
- Topic: paths straight vs curvy
- Replies: 4
- Views: 6236
Re: paths straight vs curvy
The curves are draw so that the points are not traveled but rounded. I have experimented with this and need something else to work through math. So this i will close for now. The beziers used in love can be used for some things but not in my case. My solution is adding more points and the curvature ...
- Fri Aug 02, 2024 1:15 pm
- Forum: General
- Topic: script lua chunk
- Replies: 5
- Views: 7091
Re: script lua chunk
Gonna use the table approach. Due to shaders and how they are used from update and draw...
- Mon Jul 29, 2024 3:34 pm
- Forum: General
- Topic: script lua chunk
- Replies: 5
- Views: 7091
Re: scirpt lua chunk
You put those functions into a table, return it into a variable called chunk, and then you call chunk.draw(), chunk.update(), etc. you said so yourself :/ No no. The compiler return the chunk as a pointer and in debugger i see it as a single function. The table returned would contain the possible w...
- Mon Jul 29, 2024 7:40 am
- Forum: General
- Topic: script lua chunk
- Replies: 5
- Views: 7091
script lua chunk
I use this method to load lua file as a script : https://love2d.org/wiki/love.filesystem.load The script should contain 3 functions create, draw and update but not globaly defined but as local. So at the end of the script i need to put a table and return it. Looks nice? Not that much. Any idea of ho...
- Sun Jul 28, 2024 6:33 am
- Forum: Support and Development
- Topic: Issues with triangle collisions
- Replies: 9
- Views: 6101
Re: Issues with triangle collisions
A button is usually a rectangle. In your case triangle. A circle can be put around the button of this two shapes or inside of them. It is just like an collision shape attached to the image.
Btw you can put the images into attachements array while writing post and then insert them into text.
Btw you can put the images into attachements array while writing post and then insert them into text.
- Sat Jul 27, 2024 3:59 pm
- Forum: Support and Development
- Topic: Issues with triangle collisions
- Replies: 9
- Views: 6101
Re: Issues with triangle collisions
It would be easier to use a point-circle collision around the buttons. Just a tip to reconsider as an option.
- Sat Jul 27, 2024 2:26 pm
- Forum: General
- Topic: paths straight vs curvy
- Replies: 4
- Views: 6236
paths straight vs curvy
Can you help me understand how path that objects travel on screen can be done? path1.png I did the straight path code with an array of points and calculating the way from each point to next point until end of path. But how to round the path with a certain precision that it would become like the last...
- Sat Jul 27, 2024 3:06 am
- Forum: Support and Development
- Topic: QUAD flip horizontal and vertical
- Replies: 6
- Views: 5482
Re: QUAD flip horizontal and vertical
Not that easy, but doable. debug.getregistry().Quad.flip = function (self, x, y) local vpx, vpy, vpw, vph = self:getViewport() local vpsx, vpsy = self:getTextureDimensions() if x then vpx = -vpx - vpw vpsx = -vpsx end if y then vpy = -vpy - vph vpsy = -vpsy end self:setViewport(vpx, vpy, vpw, vph, ...
- Fri Jul 26, 2024 5:08 am
- Forum: Support and Development
- Topic: QUAD flip horizontal and vertical
- Replies: 6
- Views: 5482
QUAD flip horizontal and vertical
Hi to the devs of this API. I ask you to consider returning back the quad:flip(x,y) function. It seems the idea was right and usuable correctly but then in 0.9.0 version removed from API. Can this be returned back? From the quick look at the source file of quad.cpp i see that only 2 variables are ne...
- Thu Jul 25, 2024 3:27 am
- Forum: Support and Development
- Topic: Windfield applyLinearImpulse causes error???
- Replies: 4
- Views: 3130
Re: Windfield applyLinearImpulse causes error???
From the quick glance the applyLinearImpulse is not defined in windfield. So that means it is maybe just inside the love.physics here : https://www.love2d.org/wiki/Body:applyLinearImpulse From that i deducted that you miss a body definition in the code of yours? Not much fan of physics in love2D so ...