Search found 11 matches

by FroggestSpirit
Wed Feb 03, 2016 8:41 pm
Forum: General
Topic: Would these games be possible with Love?
Replies: 20
Views: 10484

Re: Would these games be possible with Love?

I mainly used ENIGMA (similar to GameMaker and uses a mix of GML and c++), but I've done a 3D game demo in Visual C++ for a class before. I'm usually reluctant to steer away from c++, because of how powerful it can be, but the appeal of Love2D drew me in, especially with it being cross-platform, and...
by FroggestSpirit
Wed Feb 03, 2016 1:59 pm
Forum: General
Topic: Would these games be possible with Love?
Replies: 20
Views: 10484

Re: Would these games be possible with Love?

I've used c++ a lot for game coding, and I'm still kinda new to Lua and Love2D, but would FFI also be cross-platform compatible? Now that I learned I can do 3D games, I might work on porting one of my projects, though I'd probably leave calculation intensive stuff as C/C++ to speed it up
by FroggestSpirit
Mon Feb 01, 2016 4:15 am
Forum: Support and Development
Topic: File I/O with bytes
Replies: 6
Views: 3685

Re: File I/O with bytes

Thank you for the replies! If I end up doing a music editing program, I'll probably use it as a fused-exe, because from what I understand, you can have it read/write files in the same directory
by FroggestSpirit
Sun Jan 31, 2016 5:23 pm
Forum: Support and Development
Topic: File I/O with bytes
Replies: 6
Views: 3685

Re: File I/O with bytes

Your Code works on my machine. Have you looked in the right place (see: https://love2d.org/wiki/love.filesystem )? The file test.bin is not saved where the .love file is. You have to look in the save directory of love. Thank you, I found it in the path specified. Is there a way I can change it to u...
by FroggestSpirit
Sun Jan 31, 2016 4:29 pm
Forum: Support and Development
Topic: File I/O with bytes
Replies: 6
Views: 3685

Re: File I/O with bytes

@zorg it ended up not doing anything. I moved the print command to a love.draw function, and remove the window closing, but it still came up with nothing displayed
by FroggestSpirit
Sun Jan 31, 2016 2:44 pm
Forum: Support and Development
Topic: File I/O with bytes
Replies: 6
Views: 3685

File I/O with bytes

I'm a little stuck with having code create, or load an existing file, and write to it. function love.load(arg) love.filesystem.setIdentity("fileTest") str = string.char(72,101,108,108,111,10) -- "Hello\n" love.filesystem.write("test.bin",str) love.window.close() end Tha...
by FroggestSpirit
Sun Jan 31, 2016 4:06 am
Forum: Support and Development
Topic: Run while device sleeps
Replies: 0
Views: 1337

Run while device sleeps

When running a love file on android, I noticed that looped music continues to loop while the system is sleeping. Is there a way to have code continue to run while the system is sleeping too? I want to try making a videogame music player, that can use custom loop points (so the user can define how ma...
by FroggestSpirit
Thu Jan 28, 2016 3:17 am
Forum: Support and Development
Topic: [Solved]Looping song from end to middle?
Replies: 4
Views: 3277

Re: [Solved]Looping song from end to middle?

I believe that using 'now' again would return the value of when it was first called, the second time would probably be just slightly later, though I haven't tested that. Not sure if the 'if' check would cause a noticeable delay. As a suggestion though, it'd be cool if setLooping() had an optional 2n...
by FroggestSpirit
Wed Jan 27, 2016 5:46 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 453829

Re: "Questions that don't deserve their own thread" thread

Does anyone know if you can have music and code run while an android screen is off? I want to make a music player, but I'm guessing that the feature would be in the code-runner itself if it exists (maybe a way to toggle it?)
by FroggestSpirit
Wed Jan 27, 2016 4:54 pm
Forum: Support and Development
Topic: [Solved]Looping song from end to middle?
Replies: 4
Views: 3277

Re: Looping song from end to middle?

Thank you a ton! I modified the code a little, and it seems to work pretty good. local song local loopStart, loopEnd, loopLength function love.load() -- mp3 files can't "wrap" precisely, due to how they work, so don't use them. song = love.audio.newSource("song.ogg") -- good for ...