Search found 22 matches

by Andlac028
Thu Jun 25, 2020 5:28 pm
Forum: Support and Development
Topic: [SOLVED] Doubt with STI and Camera libraries
Replies: 5
Views: 197

Re: Doubt with STI and Camera libraries

But exist another way to syncronize the camera with the map? Yes, comment out lines 820-822 and line 830 (lg.push, origin, translate and pop functions are here) in libs/STI/sti/init.lua I had this, when I set scale in 0.5 with gamera. Comment out line 836 (lg.scale) in libs/STI/sti/init.lua After a...
by Andlac028
Wed Jun 24, 2020 2:20 pm
Forum: Support and Development
Topic: [SOLVED] Doubt with STI and Camera libraries
Replies: 5
Views: 197

Re: Doubt with STI and Camera libraries

I looked into STI library, and found, that draw function resets coordinates (inside of love.graphics.push and pop = it's not affected by transformation of camera), so you have to pass tx,ty - translateX,Y to map:draw (it's line 813 of libs/STI/sti/init.lua)
by Andlac028
Thu Jun 18, 2020 1:23 pm
Forum: General
Topic: please i need help
Replies: 3
Views: 444

Re: please i need help

For more detailed and platform specific instructions see wiki
by Andlac028
Sat Jun 13, 2020 7:52 am
Forum: Support and Development
Topic: How to make a shortcut key on Love2d support to work?
Replies: 1
Views: 394

Re: How to make a shortcut key on Love2d support to work?

Hi and welcome to the forums! Did you modified "pixelbyte.love2d.srcDir" setting? It sets source folder to search for main.lua as relative path from root of the project. Default its "src" so your main.lua must be in (root of project)/src/main.lua until you change this setting. The configuration and ...
by Andlac028
Fri Jun 12, 2020 6:56 pm
Forum: Support and Development
Topic: using gsub() on a filename and it does not open
Replies: 3
Views: 522

Re: using gsub() on a filename and it does not open

In love.filesystem.newFileData you are specifying 3rd argument but it has no meaning since its syntax is (filepath) or (content, name).
And please use [­code]your code here[­/code] tags when pasting code
by Andlac028
Thu Jun 11, 2020 4:21 pm
Forum: Support and Development
Topic: [Support-ERROR Code]
Replies: 1
Views: 985

Re: [Support-ERROR Code]

Hi and welcome to the forums!
If you want to run a game, you must run:
a) .love (zip archive) which has main.lua at top level
b) folder, that directly contains main.lua file
(you can drop it onto love.exe or run from command prompt)
see wiki for more info
by Andlac028
Thu Jun 11, 2020 3:29 pm
Forum: Libraries and Tools
Topic: [util] shadertoy shader effect viewer
Replies: 14
Views: 9945

Re: [util] shadertoy shader effect viewer

It happens only to me, that Löve simply crashes on love.graphics.newShader function runned in pcall with no message on shader "circle inversion laser.glsl"? (using LÖVE 11.3 on Windows 8.1, I can boot Ubuntu and try it on it too) Update: When I removed line 4: #define frame(u) camLens*(u-.5*iResolut...
by Andlac028
Wed Jun 10, 2020 2:55 pm
Forum: Libraries and Tools
Topic: [util] shadertoy shader effect viewer
Replies: 14
Views: 9945

Re: [util] shadertoy shader effect viewer

You can increase performance by remove love.graphics.draw call in love.update because it has no effect and you are already calling it in love.draw (in my case, it doubles FPS)
by Andlac028
Thu May 28, 2020 6:15 pm
Forum: Support and Development
Topic: For loop problem
Replies: 11
Views: 2241

Re: For loop problem

Something like this? If clicked in any small rectangle, set clickedInRectangle to true, else its false and at the end, check whetever clickedInRectangle is true or false. function love.update(dt) -- getting mouse x, y positions (irrespective of clicks) mouse_x = love.mouse.getX() mouse_y = love.mous...
by Andlac028
Sat May 23, 2020 4:52 pm
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 1340

Re: Load from file

Just a little more question, please. My native language uses hooks, commas, rings ... (for example: kůň, třmen, důrazně...) When I accidentally load a word from CSV / TXT, it gives an error: main.lua: 8 UTF-8 decoding error: Ivalid UTF-8 Where can I set this up? Have you saved file with UTF-8 encod...