Search found 275 matches

by knorke
Mon Jan 27, 2025 12:46 am
Forum: Support and Development
Topic: How you do localised languages?
Replies: 12
Views: 5338

Re: How you do localised languages?

Here is a small game that uses a very simple system: https://love2d.org/forums/viewtopic.php?t=95693 It is not really anything new over what was already posted but it is a running example. The file is txt.lua and the translations are in folder txt\ Press L to change language. If a string is missing ...
by knorke
Mon Sep 16, 2024 1:08 pm
Forum: Support and Development
Topic: Sound and music cut out after a while for no apparent reason.
Replies: 8
Views: 15065

Re: Sound and music cut out after a while for no apparent reason.

I played the first handful of levels and then left the game running for half an hour.
The music still played.
(Linux Mint on an older Thinkpad with love 11.4)
by knorke
Sat Sep 07, 2024 8:16 pm
Forum: Support and Development
Topic: Need help for tile map system
Replies: 2
Views: 6780

Re: Need help for tile map system

It seems to be some subpixel/rounding problem.
I added rounding here and that fixed it:

Code: Select all

function love.update(dt)
    camera:lookAt(math.floor(player.x+0.5), math.floor(player.y+5))
--was:    camera:lookAt(player.x,player.y)
Also those 31.9999999999999 can just be 32.
by knorke
Sat Sep 07, 2024 3:18 pm
Forum: Support and Development
Topic: Not installable from google play store
Replies: 8
Views: 117997

Re: Not installable from google play store

That is valid reasoning, I had the same thoughts. However, I think installing LÖVE is not such a big deal. Not long ago people also installed Flash to play games. Now they install all kind of steam-like launchers and shops. LÖVE might be niche but one sentence is enough to explain why you need to in...
by knorke
Sat Sep 07, 2024 2:59 pm
Forum: Support and Development
Topic: RTS enemies x, y position overlap from table
Replies: 3
Views: 3064

Re: RTS enemies x, y position overlap from table

You need some "collision detection" and "collision reaction." The units are circles, so as first step you need to figure out which circles overlap. #table returns the number of elements in an array. for-loops with #table or ipairs both work, but only if the array uses integer num...
by knorke
Sat Sep 07, 2024 8:43 am
Forum: Support and Development
Topic: Not installable from google play store
Replies: 8
Views: 117997

Re: Not installable from google play store

The typical way to do that (regardless of whether love is downloadable on the Play Store or not) is to publish your program on the Play Store so the only thing people need to install is your program. What's currently available lets you do that. I am not happy without Love on the Play Store. It is c...
by knorke
Sat Sep 07, 2024 5:56 am
Forum: Support and Development
Topic: RTS enemies x, y position overlap from table
Replies: 3
Views: 3064

Re: RTS enemies x, y position overlap from table

function love.keypressed (key, scancode) if key == "space" then table.insert(listOfMinions, m1) end end On every keypress you are adding the same "m1" minion to the list. The m1 minion is defined in love.load() and you are not adding its values but the m1 reference itself. I did...
by knorke
Tue Jul 23, 2024 12:23 am
Forum: General
Topic: fading trail effect
Replies: 6
Views: 7868

Re: fading trail effect

oscaradalid wrote: Mon Jul 22, 2024 4:42 pmIn other engines it achieved this by deleting the screen with a low opacity, but it did not achieve such an effect in love2d
If I understand what you want correctly, then I might have posted a relevant example here:
viewtopic.php?p=259476#p259476
by knorke
Thu Jul 04, 2024 10:25 pm
Forum: General
Topic: Problems accessing the wiki
Replies: 7
Views: 4550

Re: Problems accessing the wiki

It is already reported on the github bugtracker. So I guess just wait until someone clicks the right buttons or whatever magic needs to be done. I didn't see it, but I'm not really used to visiting it. All I see is bugs and feature requests for the software itself, nothing about the website. The we...
by knorke
Thu Jul 04, 2024 11:36 am
Forum: General
Topic: Problems accessing the wiki
Replies: 7
Views: 4550

Re: Problems accessing the wiki

It is already reported on the github bugtracker.
So I guess just wait until someone clicks the right buttons or whatever magic needs to be done.