Search found 1635 matches

by pgimeno
Thu Jun 06, 2019 1:19 am
Forum: Libraries and Tools
Topic: RUBI Gamestate Stack
Replies: 15
Views: 2140

Re: Lovely Scene Stack

If you say so :) Yeah the Amethyst one was so interesting I decided to copy. It works really well on small games. Didn't know someone had already written something similiar, tho. I've now taken a look at other similar libraries. Yours is the only one I see that has separate event handlers while run...
by pgimeno
Wed Jun 05, 2019 7:10 pm
Forum: Libraries and Tools
Topic: RUBI Gamestate Stack
Replies: 15
Views: 2140

Re: Lovely Scene Stack

Very interesting. But as far as I understand, doesn't a deterministic pushdown automaton implies that the states beneath the top one are not active and have no effect? While you could certainly achieve that with my scene stack, you could also have multiple active states, which makes it a sort of hy...
by pgimeno
Wed Jun 05, 2019 6:16 pm
Forum: Libraries and Tools
Topic: Find globals with LuaJIT (Linux, probably Mac too)
Replies: 12
Views: 1339

Re: Find globals with LuaJIT (Linux, probably Mac too)

Do you know Luacheck ? Thanks, I heard about it, but I didn't realize it's available for Debian as the lua-check package. For instance, a run of luacheck --std=love+luajit src/ is suitable for checking files using LÖVE. That line doesn't work for me, it doesn't seem to recognize love. I can add my ...
by pgimeno
Wed Jun 05, 2019 3:38 pm
Forum: Support and Development
Topic: Convert a pixel-perfect ImageFont to a TrueType font?
Replies: 8
Views: 1640

Re: Convert a pixel-perfect ImageFont to a TrueType font?

Yeah I have that feeling that this a case of seeking help with an extremely convoluted solution for a problem that should be simpler to solve.
by pgimeno
Wed Jun 05, 2019 2:59 pm
Forum: Support and Development
Topic: ropeJoint not behaving how I expected.
Replies: 3
Views: 799

Re: ropeJoint not behaving how I expected.

Where are you placing the points of the RopeJoint? Sounds like you're placing both at the same spot. See my code, I place one at a point relative to body1 and the other one at a point attached to body2.
by pgimeno
Wed Jun 05, 2019 1:17 pm
Forum: Libraries and Tools
Topic: RUBI Gamestate Stack
Replies: 15
Views: 2140

Re: Lovely Scene Stack

FWIW, conceptually I don't think it's a nondeterministic finite automaton, as NFAs have deterministic equivalents. I think it's a deterministic pushdown automaton. PDAs are automata with a state and a stack. I prefer to call them states (although a more accurate term could be screens), because the t...
by pgimeno
Mon Jun 03, 2019 11:39 am
Forum: Support and Development
Topic: Some love features I think would be useful
Replies: 7
Views: 1013

Re: Some love features I think would be useful

The values in the previous frame are not so useful, because several events (e.g. a key down and up) can occur within one frame. Best to leave that up to a library, which knows what to do with them. If the programmer doesn't want to miss any single press, they would use the events rather than the isD...
by pgimeno
Mon Jun 03, 2019 11:17 am
Forum: Support and Development
Topic: ropeJoint not behaving how I expected.
Replies: 3
Views: 799

Re: ropeJoint not behaving how I expected.

I don't know what your problem is, but it's working for me. local world = love.physics.newWorld(0, 10, false) -- element 1 (free to fall) 1 local shape1 = love.physics.newRectangleShape(40, 30) local body1 = love.physics.newBody(world, 400.5, 310.5, "dynamic") local fix1 = love.physics.newFixture(bo...
by pgimeno
Fri May 31, 2019 5:25 pm
Forum: Support and Development
Topic: [SOLVED] I have no clue why, but my function only accepts integer numbers, not variables
Replies: 3
Views: 778

Re: I have no clue why, but my function only accepts integer numbers, not variables

tempd is a string. In Lua, "3" does not equal 3, therefore none of the comparisons in autoMove() matches.
by pgimeno
Thu May 30, 2019 2:54 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 140
Views: 46580

Re: Gspöt - retained GUI lib

Hm, that's probably not enough. Try also this:

Code: Select all

function love.mousepressed(x, y, button)
  x, y = GUI.getmouse()
  GUI:mousepress(x, y, button)
end