Search found 636 matches

by BrotSagtMist
Wed Feb 28, 2024 11:24 pm
Forum: Libraries and Tools
Topic: Simple lightweight variable change detector
Replies: 1
Views: 2502

Re: Simple lightweight variable change detector

There is nothing simple nor lightweight about this. Inserting and removing in a table like that is the very thing you try to avoid with such checks. Because that is really adding cpu usage. Here is a lighter version that works without. do local switch function detectChange(v) if switch==v then retur...
by BrotSagtMist
Mon Feb 19, 2024 6:49 pm
Forum: General
Topic: I can't get rid of the blurred text
Replies: 9
Views: 2479

Re: I can't get rid of the blurred text

Sharp here
shot-2024-02-19_19-43-46.png
shot-2024-02-19_19-43-46.png (7.51 KiB) Viewed 2356 times
Might be a dpi setting?
check https://love2d.org/wiki/love.window.getDPIScale
by BrotSagtMist
Mon Feb 19, 2024 12:15 pm
Forum: Support and Development
Topic: Trying to figure out collision with tiles in platformer game
Replies: 11
Views: 2285

Re: Trying to figure out collision with tiles in platformer game

If these are all quadratic blocks you can indeed Just check if your next physics step would be inside any of them. This is just a simple range check after all. But this will really struggle once you do have huge maps or many objects to jump on. You can do a few clever precheck filters that throw out...
by BrotSagtMist
Mon Feb 19, 2024 12:02 pm
Forum: Support and Development
Topic: Trying to figure out collision with tiles in platformer game
Replies: 11
Views: 2285

Re: Trying to figure out collision with tiles in platformer game

That is not a tile format. You are NOT doing tiles. Tiles use a grid, you are defining positions on the other hand. Free positioning needs a physics lib. This is a tile map: Map={ {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}, {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0...
by BrotSagtMist
Mon Feb 19, 2024 10:55 am
Forum: General
Topic: I can't get rid of the blurred text
Replies: 9
Views: 2479

Re: I can't get rid of the blurred text

Your code, show it.
by BrotSagtMist
Mon Feb 19, 2024 10:47 am
Forum: Support and Development
Topic: Tips & advice for making a small beginner project?
Replies: 6
Views: 792

Re: Tips & advice for making a small beginner project?

Your first post here was years ago.
How come you still see yourself as a beginner?
by BrotSagtMist
Mon Feb 19, 2024 1:37 am
Forum: Support and Development
Topic: Trying to figure out collision with tiles in platformer game
Replies: 11
Views: 2285

Re: Trying to figure out collision with tiles in platformer game

If you simply use tiles that is super easy: if tiles[math.floor(x/tilesize)][math.floor(y/tilesize)] then print("collision") Problematic is you either need to init all possible x positions in _tiles_ or put a meta table in it so you wont get a nil access error at the map edges. Also the me...
by BrotSagtMist
Wed Jan 31, 2024 12:25 pm
Forum: General
Topic: Zerobrane. and love
Replies: 4
Views: 1193

Re: Zerobrane. and love

So i'm an inspiring game dev
i am basically code and pc illiterate
My boy this is concerning.

I think the best way for you is: Go into the folder, mark everything, zip it.
Then you do a right click on the zip and select open with > löve.
by BrotSagtMist
Wed Jan 31, 2024 12:20 pm
Forum: General
Topic: TTS support
Replies: 1
Views: 860

Re: TTS support

If that is just for a test you can simply throw the text into any terminal playback. Basically if we are on löve we replace the playback function with something like function playback(text) io.popen("espeak ".. text) end keypresses of course only work when there is a window. If that bugs y...
by BrotSagtMist
Mon Jan 29, 2024 9:40 pm
Forum: General
Topic: game not register 'space' while held lshift+w
Replies: 6
Views: 1545

Re: game not register 'space' while held lshift+w

I am bread, i need salt. German humor, there where wars over it. In anycase this is called key rollover and you keyboard has a 2 key limit meaning they only guarantee up to 2 keys working. Some 3 ones may work, but not all. Usually modern keyboards have a 3 key guarantee. Good ones have no limit. Th...