Search found 25 matches

by Popolon
Sun Jan 14, 2024 5:24 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 619432

Re: Share a Shader!

I made a tutorial about how to mix vertex and fragment (pixel) shader on very simple example. That was hard to found any, and I was limited to fragment shaders until last months due to that. Hope it could help. A relatively complete explanation is here: https://framagit.org/popolon/love_shaders/-/bl...
by Popolon
Sun Nov 19, 2023 10:15 am
Forum: Support and Development
Topic: How to force rotation in Android
Replies: 9
Views: 12450

Re: How to force rotation in Android

Also look at this functions that could help you to draw the application depending on screen orientation: * https://love2d.org/wiki/love.window.getDisplayOrientation * https://love2d.org/wiki/DisplayOrientation Locking rotation, would be interesting also for me on GNU/Linux phone. Hope it will be imp...
by Popolon
Wed Nov 15, 2023 1:00 pm
Forum: Games and Creations
Topic: Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)
Replies: 1
Views: 7075

Tests of LÖVE on Linux Mobile Phone (PinePhone Pro)

I made a first test of LÖVE multitouch capabilities on a Pine64 PinePhone Pro, Linux Phone (here on Manjaro Phosh dev, but it should work about the same on other flavors). All I've coded work fine (including simple shaders usage), The simple code to see this (only little change from the wiki example...
by Popolon
Sun Aug 07, 2022 4:30 pm
Forum: Ports
Topic: love.js standalone player
Replies: 21
Views: 239897

Re: love.js standalone player

managed to make it work, under nginx, with the following rules in server{} section:

Code: Select all

  add_header Cross-Origin-Opener-Policy "same-origin";
  add_header Cross-Origin-Embedder-Policy "require-corp";
  add_header Set-Cookie "Path=/; HttpOnly; Secure";
Thanks a lot !!!!
by Popolon
Sun Aug 07, 2022 3:48 pm
Forum: Ports
Topic: love.js standalone player
Replies: 21
Views: 239897

Re: love.js standalone player

Thank you very much for you work. I have the following error in firefox console (translated from my language version): CanvasRenderingContext2D is obsolet Use tabs.captureTab API instead for extensions https://developer.mozilla.org/fr/docs/Mozilla/Add-ons/WebExtensions/API/tabs/captureTab A round ci...
by Popolon
Sat May 07, 2022 1:55 pm
Forum: Games and Creations
Topic: [WIP] Reforest
Replies: 4
Views: 4188

Re: [WIP] Reforest

Thank you very much, I just noticed that I didn't put a direct link to the .love file for the shader demo (only the sources). It is available in this post of the forum : viewtopic.php?f=4&t=3733&p=247014#p247014
by Popolon
Sat May 07, 2022 8:42 am
Forum: Games and Creations
Topic: [WIP] Reforest
Replies: 4
Views: 4188

[WIP] Reforest

This is a work in progress, * Move the main character with cursor keys. * Move the hand by mouse. * Press Esc to quit (and then validate with enter or undo with esc. * if you press enter during game, the flower will bloom. I will maybe make a 2 players games this way. You can get animated objects wi...
by Popolon
Tue Apr 26, 2022 6:37 pm
Forum: Support and Development
Topic: [Solved] Nothing happen with imageData:encode()
Replies: 2
Views: 2608

Re: Nothing happen with imageData:encode()

Thank for your answer, nothing either in ~/.local/share/love/lovegame/ Tga as no effect either, but I found it, thanks !!! I run the main.love from /tmp directory for this exemple, like this: cd /tmp/ love . and it was here: ~/.local/share/love/tmp/test.png Tested the tga for information, and nothin...
by Popolon
Tue Apr 26, 2022 6:16 pm
Forum: Support and Development
Topic: [Solved] Nothing happen with imageData:encode()
Replies: 2
Views: 2608

[Solved] Nothing happen with imageData:encode()

Here is a simple example about how to output picture to a png file (in 0.11+), after what I read, the exemple on the wiki is not clear, and didn't found anything, but some that tried before 0.11. I use LÖVE 0.11.4, nothing happen, no file created, no error, rights to write. function love.load() canv...
by Popolon
Wed Mar 23, 2022 10:57 pm
Forum: Support and Development
Topic: "loop in gettable" when I add 100 objects to an array
Replies: 4
Views: 5994

Re: "loop in gettable" when I add 100 objects to an array

For information, I just had the same error message with LÖVE 11.4, when trying to instanciate a table element with a typo on the initialisation of the table like this (fo instead of foo here):

Code: Select all

fo={} -- o missing (as example)
for i=1,#elt do
  foo[i]=elt.x
end