Search found 3544 matches

by pgimeno
Fri Sep 01, 2023 2:36 pm
Forum: Support and Development
Topic: I have been having problem's scaling the camera for my game
Replies: 4
Views: 1449

Re: I have been having problem's scaling the camera for my game

These are the changes that I've applied to your code, in diff format: $ diff -u main.lua.old main.lua.new --strip-trailing-cr --- main.lua.old 2023-09-01 08:09:02.000000000 +0200 +++ main.lua.new 2023-09-01 16:29:43.845043823 +0200 @@ -16,6 +16,7 @@ acc = 1000, maxSpeed = 500, factor = 1, + zoom = 3...
by pgimeno
Wed Aug 30, 2023 8:25 pm
Forum: Support and Development
Topic: Is there way to add a song to a queue?
Replies: 4
Views: 1051

Re: Is there way to add a song to a queue?

As darkfrei implies, for this purpose I'd suggest to use Source:isPlaying() in love.update and play the next when the current one stops playing, because you can certainly afford a one frame delay between songs, rather than going into the complications of queueable sources.
by pgimeno
Tue Aug 29, 2023 11:55 am
Forum: Support and Development
Topic: Help with love.filesystem.write
Replies: 1
Views: 754

Re: Help with love.filesystem.write

Löve can and will only write to save directories. Are you sure the folder "maps/" exists in the save directory? You can find out which directory is the save directory by placing this at the top of main.lua and observing the error message: error("The save directory is " .. love.fi...
by pgimeno
Sun Aug 27, 2023 6:31 am
Forum: Support and Development
Topic: Car Game
Replies: 3
Views: 1024

Re: Car Game

You can try loading the road image as ImageData instead of Image . You can then create an Image out of the ImageData, but also keep the ImageData because that way you can access ImageData:getPixel . So, instead of this: imageFile = love.graphics.newImage("img/carretera2.png") you'd do this...
by pgimeno
Sat Aug 26, 2023 4:15 pm
Forum: General
Topic: What to use if not github?
Replies: 8
Views: 8588

Re: What to use if not github?

codeberg requires git? It is also for open source software but then lets you have a private repository. ?? edit: codeberg can be used via browser without git. Clunky - but do able. If you don't use git, you're making a serious mistake. It pays off to learn to use it. Codeberg supports private repos...
by pgimeno
Sat Aug 26, 2023 7:25 am
Forum: General
Topic: What to use if not github?
Replies: 8
Views: 8588

Re: What to use if not github?

I use https://codeberg.org these days the most. I still use https://notabug.org/ but they are far behind in gitea features.
by pgimeno
Thu Aug 24, 2023 11:35 pm
Forum: General
Topic: Devs of love2d which os do you use ?
Replies: 21
Views: 16352

Re: Devs of love2d which os do you use ?

Linux is not for everybody. Windows is not for everybody. MacOS is not for everybody. Wait, I think I see a pattern there... Will it work with FreeBSD? Oh yeah, it's not for everybody either. QNX? Right, same thing. iOS? Same. Android? Not for everyone either. I changed to Linux in about 2007 after ...
by pgimeno
Mon Aug 21, 2023 11:12 am
Forum: Games and Creations
Topic: Dima Pulsar -II-
Replies: 30
Views: 79220

Re: Dima Pulsar -II-

I reported the itch.io page; it's likely that the itch.io maintainers agreed that it is a plagiarism, as the page is gone now.

Edit: By the way, ironically appropriate avatar.
by pgimeno
Thu Aug 17, 2023 9:25 pm
Forum: General
Topic: ChatGPT proposes and creates a game in love2d ( artificial intelligence scares me )
Replies: 103
Views: 34124

Re: ChatGPT proposes and creates a game in love2d ( artificial intelligence scares me )

And I more then enough sure, that even 50% of them (meaning, libraries authors) never mention origins of their: formulas, ideas, code snippets, etc or do it only partially. Just for clarity, formulas and ideas are not copyrightable. Some ideas can be patentable though. In any case, you're not oblig...
by pgimeno
Tue Aug 15, 2023 10:39 am
Forum: Support and Development
Topic: How would I made a randomly generated map for my game?
Replies: 4
Views: 631

Re: How would I made a randomly generated map for my game?

Mazes have the problem of being extremely non-local. This means that if you create a maze, the solution may pass through some cell at a very far distance, so that if that cell is covered, the whole maze is unsolvable. This non-locality is the reason why you usually don't use noise to generate a maze...