Search found 687 matches

by Ref
Sun Jan 19, 2020 6:27 pm
Forum: Support and Development
Topic: Re: Hash
Replies: 3
Views: 701

Re: Hash[resolved]

As I expected - my bad.
I overwrote the function in a library.
by Ref
Fri Jan 17, 2020 10:22 pm
Forum: Support and Development
Topic: Re: Hash
Replies: 3
Views: 701

Re: Hash

Is it just me or is the WIKI backward?

Code: Select all

rawdigest = love.data.hash( hashFunction, data )
It only seems to work for me if the arguments are reversed???

Code: Select all

rawdigest = love.data.hash( data, hashFunction )
by Ref
Sun Dec 22, 2019 10:08 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 145003

Re: Share a Shader!

Just another simple Shader.
Splits a colored image into separate R,G,B images.
by Ref
Fri Dec 20, 2019 7:43 pm
Forum: Support and Development
Topic: In need of example code of this matter
Replies: 4
Views: 1565

Re: In need of example code of this matter

Maybe something like this? PointInBox = function( point, box ) local x, y, w, h = unpack( box ) local px, py = point[1], point[2] if px>=x and px<=x+w and py>=y and py<=y+h then return true end return false end touch = function( box ) local mx, my = love.mouse.getPosition( ) if love.mouse.isDown( 1 ...
by Ref
Fri Dec 20, 2019 7:25 pm
Forum: Support and Development
Topic: Help to create enemies
Replies: 5
Views: 1160

Re: Help to create enemies

This might give you some ideas.
Best
by Ref
Sun Aug 18, 2019 1:42 am
Forum: Support and Development
Topic: Stencil Help
Replies: 4
Views: 1414

Re: Stencil Help

Maybe something like this in reverse?
(Very old code so don't know how good it is)
by Ref
Wed Jul 31, 2019 3:37 pm
Forum: Support and Development
Topic: Rotating around different points depending on controller input
Replies: 7
Views: 3369

Re: Rotating around different points depending on controller input

Pgimeno obviously has a better understanding of what you want to accomplish. From your initial post I could see how you could accomplish what you asked using ox and oy and applying an offset to the x and y coordinates. For the life of me, I can't visualize exactly how you want the mechanics to work ...
by Ref
Mon Jul 29, 2019 3:47 pm
Forum: Support and Development
Topic: Rotating around different points depending on controller input
Replies: 7
Views: 3369

Re: Rotating around different points depending on controller input

Could it be so simple as changing ox and oy in

Code: Select all

love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky )
(Probably off topic but 'Tanks' do rotate around their center.)
by Ref
Sun May 05, 2019 12:34 am
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 2789

Re: Is there a way of saving and loading files from anywhere?

As posted before, you could always do the following. -- ***** Load/Save from Anywhere on Computer ***** -- To use, wrap 'filename' with 'mount'. -- for filename = 'D:/Scripts/Love/test.png' -- Load Example: love.graphics.newImage( mount( filename ) ) -- Save Example: id:encode('png', mount( filename...
by Ref
Thu May 02, 2019 2:59 am
Forum: General
Topic: Free Music / SFX Resource - Over 1900 Tracks
Replies: 294
Views: 159129

Re: Free Music / SFX Resource - Over 1800 Tracks

Why is this always posted in two places - General and Libraries?