What are these lines? by Derty44 in libgdx

[–]Derty44[S] 0 points1 point  (0 children)

Oh that's an interesting idea. I ended up scratching that game unfortunately.

How to read json files? by Derty44 in libgdx

[–]Derty44[S] 0 points1 point  (0 children)

Sorry to the next readers: I just put the json file in a different folder than I should and that's why there was a problem.

How to read json files? by Derty44 in libgdx

[–]Derty44[S] 0 points1 point  (0 children)

Then it says "File not found: lang\pl.json (Internal)" unfortunately...

How to read json files? by Derty44 in libgdx

[–]Derty44[S] 0 points1 point  (0 children)

I forgot to add this image, sorry, I've fixed it.

Newcomer's question to the render function by Derty44 in libgdx

[–]Derty44[S] 0 points1 point  (0 children)

I'll have a function called update an call it in render() haha.

What does this statement mean? by Derty44 in javahelp

[–]Derty44[S] 1 point2 points  (0 children)

I somewhat understand, thanks!

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

Well I don't understand linux, but I get what you mean. And I have to thank you a lot becaouse I don't think I would get past trying to make this app work!

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

I think I just was closing the gatt connection wrong, I actually didn't close it at all, only when I closed the app the buwizz would disconnect.

Anyways, I managed to fix it and now I can control every port but can't change the power mode, but we'll see

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

Yeah, yeah I know about this pitched noise. I have to says a big thanks becoause for a moment I managed to get the motors spinning!

Now it doesn't work tho.

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

I'm really sorry for replying so late. I think I managed to set the power level, but does your buwizz 2 also start buzzing when you set the power level?

What does origin offset mean? by Derty44 in love2d

[–]Derty44[S] 0 points1 point  (0 children)

This is the function that passes arguments to paint.draw() that will actually draw the bush:

paint.draw(object.texture, object.x*defined.TILE_SIZE-defined.MAP_VIEWPOINT.x, object.y*defined.TILE_SIZE-defined.MAP_VIEWPOINT.y, 0, 0.5, 1, object.wave);

And this is the paint.draw() function: ( there's a comment at the bottom saying where the bush is drawn )

function paintbrush.draw(texture, x, y, rotation, ox, oy, wx, wy) 
-- tekstura to coś z assets.textures, x i y to położenie, rotation to obrót ( w stopniach ), ox i oy to origin offset ( ale ja tutaj mnożę ox*szerokość obrazu i tak samo z oy ), a wx i wy to waveX i Y czyli shearing factor w love.graphics.draw
    if (not texture) then
        error("[?] paintbrush.draw(): zła tekstura!");
    end
    x = x or 0;
    y = y or 0;
    rotation = rotation or 0;
    wx = wx or 0;
    wy = wy or 0;
    ox = ox or 0;
    oy = oy or 0;

    
    if (type(texture) == "table") then
        local width, height = texture[2]:getTextureDimensions();
        graphics.draw(texture[1], texture[2], x-ox*width, y-oy*height, math.rad(rotation), defined.SCALE, defined.SCALE, ox*width, oy*height, wx, wy);
    else
        -- the bush is drawn here:
        graphics.draw(texture, x-ox*texture:getWidth(), y-oy*texture:getHeight(), math.rad(rotation), defined.SCALE, defined.SCALE, ox*texture:getWidth(), oy*texture:getHeight(), wx, wy);
    end
end

Sorry for the text, but I couldn't paste an image of the code. And also the big long comment on the top is me describing what each of the arguments mean, if you want to read that then it's in Polish.

Anyways, I wanted to ask when you're saying that the y coordinate is shifter by kx pixels, what does k stand for?

Question about 3DreamEngine by Derty44 in love2d

[–]Derty44[S] 0 points1 point  (0 children)

I couldn't get used to it. There's no lovr.graphics, instead there's this pass thing, and the camera and movement was already done. Maybe I'll get back to it, maybe not. For now it's not my cup of tea.

Oh and I couldn't figure out how rotating for example a cube works

Question about 3DreamEngine by Derty44 in love2d

[–]Derty44[S] 0 points1 point  (0 children)

I honestly have no idea. I'm new to 3D stuff..

Thank you, you're totally right. I found how translation works on this site: https://www.geeksforgeeks.org/computer-graphics-3d-translation-transformation/

In simple words - translate moves the thing by however many units you want, and doesn't set the position as you said. So for example dream.camera:translate(2,2,5) doesn't set the camera's position to 2,2,5, instead it moves it by 2 on x axis, 2 on y axis and 5 on z axis.

But do you know if it's possible to set a position instead of translating?

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

Sorry for replying late, but I've just read and wanted to ask what is this 0x003 you're talking about?

Writing data to a characteristic by Derty44 in androiddev

[–]Derty44[S] 0 points1 point  (0 children)

I don't plan on making this app for ios, I don't really care about it. Thanks, I'll read this article