Search found 7 matches
- Fri Apr 01, 2022 3:59 pm
- Forum: Support and Development
- Topic: Embed SWF file into Love2D game
- Replies: 2
- Views: 2676
Re: Embed SWF file into Love2D game
Not really, no. At least not in any capacity that it would be worth the effort. You'd have to somehow embed flash player to play inside the LÖVE window, which would require non-trivial amount of work on the LÖVE source code. You could write a parser to interpret the data inside the SWF, but even th...
- Tue Mar 29, 2022 10:45 am
- Forum: Support and Development
- Topic: Embed SWF file into Love2D game
- Replies: 2
- Views: 2676
Embed SWF file into Love2D game
i've been trying to make an flash game into Love2D. Is there any way to do this??
- Wed Mar 23, 2022 8:47 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 10193
Re: File not found, but it's exist
function love.load() local nativefs = require("nativefs") directory = nativefs.getWorkingDirectory() end function love.draw() video = love.graphics.newVideo(directory .. "/videos/test.mp4") video:play() end You're still trying to use an absolute path when using LÖVE's API. You w...
- Mon Mar 21, 2022 11:58 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 10193
Re: File not found, but it's exist
Code: Select all
function love.load()
local nativefs = require("nativefs")
directory = nativefs.getWorkingDirectory()
end
function love.draw()
video = love.graphics.newVideo(directory .. "/videos/test.mp4")
video:play()
end
- Mon Mar 21, 2022 11:57 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 10193
Re: File not found, but it's exist
Can you describe your use case a bit more? Would love.filedropped for instance work if you need to implement a general purpose video player, or is there some other reason to loading files outside the fused executable? You also don't really say what's wrong with nativefs, so hard to help troubleshoo...
- Mon Mar 21, 2022 11:45 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 10193
Re: File not found, but it's exist
Löve's own filesystem is sandboxed; by default, you can only access two places with it: - wherever your main.lua is, - if you defined an identity, then a save folder in a specific place. On windows (not sure about other OS-es), if you fuse your .love file to the executable, then you can also mount ...
- Sun Mar 20, 2022 11:11 am
- Forum: Support and Development
- Topic: File not found, but it's exist
- Replies: 20
- Views: 10193
File not found, but it's exist
Hello, i tried to make a game that plays videos with videos that are not in .love file. Here's my code: function love.load() directory = love.filesystem.getWorkingDirectory() end function love.draw() video = love.graphics.newVideo(directory .. "/videos/test.mp4") video:play() end Sorry if ...