Search found 64 matches

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: 1021

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: 1369

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: 943

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: 518

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: 1004

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: 3
Views: 1360

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: 3
Views: 1360

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...
by ReFreezed
Tue Jan 01, 2019 9:34 pm
Forum: General
Topic: difference between ‘local Class = require("Class")’ and ‘require "Class"’?
Replies: 2
Views: 559

Re: difference between ‘local Class = require("Class")’ and ‘require "Class"’?

To add to what Ulydev said: the module itself shouldn't add globals if it's supposed to be like a library, but you can add the library as a global elsewhere: -- In main.lua, or somewhere else appropriate. _G.myLib = require("myLibrary") _G.otherLib = require("myOtherLibrary") That way the library wo...
by ReFreezed
Tue Jan 01, 2019 8:52 pm
Forum: Support and Development
Topic: zigzag enemies
Replies: 1
Views: 488

Re: zigzag enemies

Store a direction value on the enemy that says whether it's moving left or right. When the enemy is close to the edge of the screen, reverse the direction. When you update the x position, just check the direction value. To limit the enemy's position to part of the screen instead of the whole screen ...
by ReFreezed
Tue Jan 01, 2019 8:27 pm
Forum: Support and Development
Topic: Fullscreen resolution affected by screen scaling
Replies: 3
Views: 1004

Re: Fullscreen resolution affected by screen scaling

Do both exclusive fullscreen and desktop fullscreen use the lower resolution?