Search found 74 matches

by MrFariator
Mon Apr 23, 2018 4:20 pm
Forum: Support and Development
Topic: [Solved] Problem with love.filesystem.write and read
Replies: 6
Views: 166

Re: Problem with love.filesystem.write and read

Example usage of zorg's code (just put the serialize function somewhere where it's accessible in scope, like at the top of main.lua): local myTable = { myValue = 1, mySecondValue = 3, myThirdValue = 4 } -- Serialize the table into a string with the function local myString = serialize(myTable) -- myS...
by MrFariator
Sun Apr 22, 2018 9:37 pm
Forum: Support and Development
Topic: [Solved] Problem with love.filesystem.write and read
Replies: 6
Views: 166

Re: Problem with love.filesystem.write and read

Can you show your love.load in question?
by MrFariator
Sun Apr 15, 2018 9:42 pm
Forum: Support and Development
Topic: Strange pixel blur
Replies: 2
Views: 130

Re: Strange pixel blur

Someone on Discord not too long ago had similar scaling issues because they had DSR (Dynamic Super Resolution) enabled on their graphics card.
by MrFariator
Tue Mar 13, 2018 6:57 pm
Forum: General
Topic: LOVE users map
Replies: 182
Views: 30775

Re: LOVE users map

Oulu, Finland
by MrFariator
Fri Mar 09, 2018 11:58 pm
Forum: Support and Development
Topic: SOLVED: Odd graphical artifacts
Replies: 2
Views: 247

Re: Odd graphical artifacts

Are you drawing the sprites at non-integer positions, by any chance? That, or scaling at non-integer steps are most probable reasons. If not either of those, then share your code/.love file.
by MrFariator
Sat Feb 24, 2018 10:36 pm
Forum: General
Topic: Is it possible to scale images without it getting blury?
Replies: 2
Views: 304

Re: Is it possible to scale images without it getting blury?

By default love uses linear filter mode when scaling images up or down, which results in a blurry image. You can change this behavior simply by setting the default like so love.graphics.setDefaultFilter("nearest", "nearest",1) After setting the mode to "nearest" you can keep pixels crispy, so long y...
by MrFariator
Sat Feb 24, 2018 10:27 pm
Forum: Support and Development
Topic: Two buttons don't work!
Replies: 1
Views: 219

Re: Two buttons don't work!

What you're doing there is redefining the love.mousepressed function, meaning that the first will never be used. Think of it like you're assigning a value to a variable, and then immediately afterwards assigning another value to it. What you need to do instead is combine the two: function love.mouse...
by MrFariator
Sun Feb 11, 2018 12:58 pm
Forum: Support and Development
Topic: Bump - How to remove item fully from world?
Replies: 8
Views: 608

Re: Bump - How to remove item fully from world?

Yeah, a lot of these considerations have to do with what kind of game you want to make. Something like classic Mega Man doesn't do any "hit both enemies if they're overlapping" checks, but something with piercing ammo (eq. monster hunter's bowguns) will probably do it. It also plays a lot into the f...
by MrFariator
Sun Feb 11, 2018 12:33 pm
Forum: Support and Development
Topic: Difference between local values and self.values in object
Replies: 4
Views: 382

Re: Difference between local values and self.values in object

The locals will only be destroyed if they're defined inside Player:initialize or another member function of that class, otherwise they will persist. This is because deleting your object doesn't tell lua "unload this whole code file", but rather just set that specific object (a lua table) to a nil va...