Search found 1883 matches

by pgimeno
Sun Nov 17, 2019 2:46 pm
Forum: Support and Development
Topic: Android screen size woes (11.2+)
Replies: 9
Views: 1033

Re: Android screen size woes (11.2+)

Thanks a lot! The non-fullscreen issue is fixed. Screen size and getSafeArea are both reported as 689x387 with usedpi=true and 2413x1356 when false. Reduced image with both screenshots is attached. The intermittent fullscreen issue persists, though. I strongly suspect a system issue, since I'm still...
by pgimeno
Sun Nov 17, 2019 1:06 pm
Forum: General
Topic: Coverage reports in LOVE
Replies: 8
Views: 179

Re: Coverage reports in LOVE

Maybe executing it with jit.off() helps?
by pgimeno
Sat Nov 16, 2019 6:22 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 300

Re: Canvas and shader issue

Yeah, remember the last line I recommended? return vec4(c, 0., 0., 1.); Using vec4(c, 0., 0., c) should give you as much opacity as intensity, which will probably work. Note however that it's not fully transparent near the borders where the shader is still being applied, so you may want to use some ...
by pgimeno
Sat Nov 16, 2019 1:47 pm
Forum: General
Topic: Random Enemies Spawning
Replies: 4
Views: 91

Re: Random Enemies Spawning

I'm not sure I get what you mean. Do you mean random types of enemies? If so, we're delving into object orientation territory now, but if you want to keep it simple, you can have an array with template values for the different types of enemies (the structure I mentioned above should then include inf...
by pgimeno
Sat Nov 16, 2019 11:53 am
Forum: General
Topic: Random Enemies Spawning
Replies: 4
Views: 91

Re: Random Enemies Spawning

Hi Pa0DeF0rma, welcome to the forums. You can use an array of enemies. Each element in the array would contain information about the corresponding enemy, including the coordinates and maybe some other stuff that you need to keep track of, like the remaining HP or whatever. In love.draw, you would dr...
by pgimeno
Sat Nov 16, 2019 11:15 am
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 300

Re: Canvas and shader issue

You don't need the canvas, unless you want to draw the effect to a canvas and then draw the canvas to the screen. But then it should be updated in love.update, not in love.load, because otherwise the canvas won't change. You can then draw it in any position you want. Note that when you draw the rect...
by pgimeno
Fri Nov 15, 2019 6:02 pm
Forum: Games and Creations
Topic: Sliding maze puzzle
Replies: 3
Views: 167

Sliding maze puzzle

Cleaning up my queue of pending releases, now's the turn of this puzzle game. The idea is shamelessly ripped from this video: https://www.youtube.com/watch?v=pHOmjbH6zdM but without all the bells and whistles, just something very simple :) It can be played on a desktop or on Android. It uses portlan...
by pgimeno
Fri Nov 15, 2019 4:50 pm
Forum: Support and Development
Topic: [SOLVED] Top Down Parallax scrolling and a zoomable camera
Replies: 3
Views: 134

Re: [SOLVED] Top Down Parallax scrolling and a zoomable camera

There are two types of zoom. One consists of bringing the camera closer to the target; some 3D design programs do this when you zoom. The other consists of magnifying a small angle of view so it looks bigger; that's what zoom lenses and telescopes do. Playing with both in a real camera, you can get ...
by pgimeno
Fri Nov 15, 2019 2:13 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1702
Views: 489503

Re: What's everyone working on? (tigsource inspired)

Working on a collision library for axis-aligned rectangles, to resolve certain sliding collisions that bump can't: BUMP vs COLIB The entity to move starts at the top left. The green line represents the requested movement. The blue line and the green rectangles that aren't the beginning or end, repre...
by pgimeno
Fri Nov 15, 2019 12:45 pm
Forum: Support and Development
Topic: [SOLVED] Canvas and shader issue
Replies: 12
Views: 300

Re: Canvas and shader issue

If you post something we can run, we can do some debugging; otherwise all we can do is guessing. Help us help you.