Search found 173 matches

by grump
Fri Nov 17, 2017 10:00 am
Forum: Support and Development
Topic: Love2D is UNPLAYABLY slow in Ubuntu 14.04 but runs fine on windows
Replies: 7
Views: 210

Re: Love2D is UNPLAYABLY slow in Ubuntu 14.04 but runs fine on windows

A game that is running at 60 fps and 17 milliseconds delta time is not working in Ubuntu 14.04 (getting 0.1 millisecond delta time), the sprites are not moving at all. 0.1 ms delta time means it's running fast, not slow. Right? My guess is no vsync and your code can't handle that. No problem with t...
by grump
Thu Nov 16, 2017 8:44 pm
Forum: Games and Creations
Topic: Animal Factory
Replies: 16
Views: 1199

Re: Animal Factory

Uploaded a new version that can be played with the mouse. Click a box to move a part there. Touch screen might work too, but I haven't tested it.

New version has music in the menu, composed by incognito_mage. Thanks, dude!
by grump
Thu Nov 16, 2017 12:25 pm
Forum: Support and Development
Topic: Referencing object functions?
Replies: 7
Views: 209

Re: Referencing object functions?

or perhaps they don't exist until at least one body is created. Sure, that's what I said before. I looked at the C++ code, and while I don't claim to fully understand what is going on after looking at it for 5 minutes, it does seem like there is no table representation of the Body class (or for any...
by grump
Thu Nov 16, 2017 11:34 am
Forum: Support and Development
Topic: Referencing object functions?
Replies: 7
Views: 209

Re: Referencing object functions?

No, I'm not sure. But I got curious and wrote this function to search the whole environment for identifiers: local function searchVar(name, scope, scopeName) local stack, path = {}, {} local function descend(var, name, search) if stack[var] then return end stack[var] = name table.insert(path, name) ...
by grump
Thu Nov 16, 2017 11:15 am
Forum: Support and Development
Topic: Referencing object functions?
Replies: 7
Views: 209

Re: Referencing object functions?

I don't think it's possible. Body is not a table, it's userdata. It does not exist in Lua space before the call to newBody. ffi tricks wouldn't work either, because ffi can't access C++ declarations, only C.
by grump
Wed Nov 15, 2017 7:45 pm
Forum: General
Topic: Free music requests (public domain/CC0)
Replies: 7
Views: 244

Re: Free music requests (public domain/CC0)

There are actually some countries where "Public Domain" is not a valid legal concept, but I think your terms are pretty clear: do what you want with it, no attribution required. No exclusive rights tho. opengameart.org might be the right place for your stuff. I could actually use a short music loop ...
by grump
Wed Nov 15, 2017 7:31 pm
Forum: Libraries and Tools
Topic: Nimbus, Animation Lib
Replies: 4
Views: 150

Re: Nimbus, Animation framework

Thanks for sharing. I had a quick look at it, and I have some critique for you. Calling it an "animation framework" is pretty misleading. It takes a bunch of image files and displays them one after the other. "Animation framework" is a pretty big name for that . Can only use frames of a fixed size o...
by grump
Tue Nov 14, 2017 1:22 pm
Forum: Games and Creations
Topic: Scrolling apertures: a technical demo
Replies: 7
Views: 318

Re: Scrolling apertures: a technical demo

I might be wrong, but in that case, using scissors instead would solve the issue of "invisible rendering", since anything outside the defined rectangle will not be rendered; AFAIK, LÖVE doesn't do any clipping against the scissor rectangle. The fragments outside the sicssor rectangle get discarded,...
by grump
Tue Nov 14, 2017 9:58 am
Forum: Games and Creations
Topic: Scrolling apertures: a technical demo
Replies: 7
Views: 318

Re: Scrolling apertures: a technical demo

Is there an advantage using stencil masks over scissor functions?
by grump
Sat Nov 11, 2017 2:59 pm
Forum: Support and Development
Topic: Screenshots not being saved
Replies: 9
Views: 209

Re: Screenshots not being saved

You're not writing the image anywhere.

Code: Select all

love.filesystem.write(os.time() .. '.png', love.graphics.newScreenshot():encode('png'))