Search found 67 matches

by ReFreezed
Wed Jun 19, 2019 2:40 am
Forum: Support and Development
Topic: [HELP] Problem to understand how implement Joystick/Controller works
Replies: 1
Views: 114

Re: [HELP] Problem to understand how implement Joystick/Controller works

joystick:getGamepadAxis() returns a number, not a boolean, which is why both prints trigger. Don't bother using love.joystickaxis() if you just want to know the current value of a joystick axis in love.update() - simply call joystick:getGamepadAxis() inside love.update(). love.joystickaxis() gets c...
by ReFreezed
Sun Jun 16, 2019 12:55 am
Forum: Support and Development
Topic: What are the names of RT/LT/RB/LB buttons for Love 2D ?
Replies: 4
Views: 174

Re: What are the names of RT/LT/RB/LB buttons for Love 2D ?

If joystick:isGamepad() returns false then you'll need to bind buttons/axes using setGamepadMapping() before any of the gamepad methods will work.
by ReFreezed
Tue Jun 11, 2019 5:32 pm
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 5
Views: 1974

Re: LuaPreprocess

Awesome! I'll have a look at that blog post. :)
by ReFreezed
Sat Feb 02, 2019 7:55 pm
Forum: Support and Development
Topic: "Islands" not being generated after certain x/y value
Replies: 3
Views: 1304

Re: "Islands" not being generated after certain x/y value

Are you maybe drawing outside the 5000x5000 canvas? I don't see any other limits in the code.
by ReFreezed
Mon Jan 14, 2019 10:52 pm
Forum: Support and Development
Topic: Create .apk File
Replies: 6
Views: 1614

Re: Create .apk File

1. You can make .apk files on any operative system.
2. Please share your .apk file so people can help you find the problem instead of blindly guessing what the issue is.

The wiki may help you, if you didn't check it already.
by ReFreezed
Mon Jan 14, 2019 10:32 pm
Forum: Support and Development
Topic: [Solved] Streaming video hosted online?
Replies: 2
Views: 1063

Re: Streaming video hosted online?

No, you can't stream online videos with LÖVE alone (as far as I know). That seems like very unusual functionality for a game anyway. You have to download the file and then play it locally.
by ReFreezed
Sun Jan 06, 2019 7:20 pm
Forum: Support and Development
Topic: Is it possible to adjust the opacity of cursor in Love2D?
Replies: 4
Views: 618

Re: Is it possible to adjust the opacity of cursor in Love2D?

There's no way to dynamically change the opacity of the cursor. You can load the cursor image as ImageData and then change the alpha value for all pixels. Then you use the ImageData as argument for love.mouse.newCursor().
by ReFreezed
Sun Jan 06, 2019 6:48 pm
Forum: Support and Development
Topic: Fullscreen resolution affected by screen scaling
Replies: 3
Views: 1112

Re: Fullscreen resolution affected by screen scaling

I want to say that t.window.highdpi in conf.lua should fix it but that's only for Mac retina displays according to the documentation. There may be a function in Windows you can call using FFI and/or some parameter in the .exe's manifest you could add, but it may mess up LÖVE in some way. I'm not sur...
by ReFreezed
Thu Jan 03, 2019 4:02 pm
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 5
Views: 1974

Re: LuaPreprocess

In my case I have a build script that looks something like this: local pp = require("preprocess") -- getFilesInFolderRecursively() may use for example LuaFileSystem. local pathsRelativeToSrcFolder = getFilesInFolderRecursively("src") for pathRelativeToSrcFolder in ipairs(pathsRelativeToSrcFolder) do...
by ReFreezed
Wed Jan 02, 2019 3:28 am
Forum: Libraries and Tools
Topic: LuaPreprocess
Replies: 5
Views: 1974

LuaPreprocess

LuaPreprocess is a library that adds a code preprocessing phase before your program runs. It allows you to execute code that then generates the final program. Example: -- input.lua -- Lines starting with "!" are part of the metaprogram. !local DEV_MODE = true -- Here "!()" outputs a value as a liter...