Search found 12 matches

by kov_serg
Tue Jan 07, 2025 2:08 pm
Forum: Support and Development
Topic: love.filesystem.lines is closing the file when it reaches the eof?
Replies: 4
Views: 1061

Re: love.filesystem.lines is closing the file when it reaches the eof?

Do it by hand

Code: Select all

local function lines(f) return function() return f:read"l" end end

local f,err=io.open("dummy.lua","rb") if err then error(err) end
for line in lines(f) do print(line) end
f:close()
by kov_serg
Sun Jan 05, 2025 5:47 pm
Forum: Support and Development
Topic: Font rotation & anchor point
Replies: 3
Views: 609

Re: Font rotation & anchor point

if not love then os.execute "love ." os.exit() end local gr=love.graphics local app={t=0} function ctext(text,xo,yo,r,a0,shift) shift=shift or 0 gr.setColor{0,0.3,0} gr.circle('line',xo,yo,r) if shift~=0 then gr.setColor{0.4,0,0} gr.circle('line',xo,yo,r+shift) end local font=gr.getFont()...
by kov_serg
Sun Jan 05, 2025 4:50 pm
Forum: Support and Development
Topic: nothing appeared :(
Replies: 1
Views: 438

Re: nothing appeared :(

Can you show your video card driver version?
by kov_serg
Sun Jan 05, 2025 3:09 pm
Forum: General
Topic: How to run *.py(w) _without command line popping out_?
Replies: 12
Views: 3515

Re: How to run *.py(w) _without command line popping out_?

Pyglet is more like love2d. But for gui in python try flet first
by kov_serg
Sun Jan 05, 2025 7:16 am
Forum: General
Topic: Scene Managment Help
Replies: 4
Views: 2135

Re: Scene Managment Help

Try to add following code function love.draw() love.graphics.push "all" SSM.draw() love.graphics.pop() end Without code is hard to answer your question. Problem may be in SetColor{0,0,0} or in main scene load function or in global variables or something else. But in any case logging the fr...
by kov_serg
Sun Jan 05, 2025 7:10 am
Forum: General
Topic: How to run *.py(w) _without command line popping out_?
Replies: 12
Views: 3515

Re: How to run *.py(w) _without command line popping out_?

Even more io.popen has same behaviour. It pops up console window if no console enabled.
This problem inside love code.

But why you try to use python with love2d? You can use python pyglet for example.
by kov_serg
Sat Jan 04, 2025 1:39 pm
Forum: General
Topic: How to run *.py(w) _without command line popping out_?
Replies: 12
Views: 3515

Re: How to run *.py(w) _without command line popping out_?

-- conf.lua function love:conf() self.console=true end To disable popups try to enabled console in config 😁 Another workaround is to use network -- main.lua if not love then os.execute "love ." os.exit() end os.execute "start /min python server.py" local socket=require "soc...
by kov_serg
Sat Jan 04, 2025 9:58 am
Forum: General
Topic: Scene Managment Help
Replies: 4
Views: 2135

Re: Scene Managment Help

If first scene is "game" instead "menu" in love.load function then you can see correct screen or still black screen?
by kov_serg
Sat Dec 28, 2024 8:46 pm
Forum: Support and Development
Topic: Could not decode image
Replies: 2
Views: 555

Re: Could not decode image

try to convert it from jpeg to png