Search found 441 matches

by Doctory
Mon Aug 05, 2019 9:08 am
Forum: Support and Development
Topic: Image goes blurry when moving camera
Replies: 6
Views: 7896

Re: Image goes blurry when moving camera

So there's nothing I can do about it other than getting a better monitor?
by Doctory
Sun Aug 04, 2019 8:56 pm
Forum: Support and Development
Topic: Image goes blurry when moving camera
Replies: 6
Views: 7896

Image goes blurry when moving camera

Basically what the title says, when the camera is moved all the images go blurry. They return to normal when the camera is still. All help appreciated.
Files that might be the culprit: player.lua, game.lua, generator.lua
by Doctory
Mon Feb 18, 2019 11:15 am
Forum: Support and Development
Topic: Converting imageData:getPixel() numbers to the 0-255 range
Replies: 2
Views: 5383

Re: Converting imageData:getPixel() numbers to the 0-255 range

grump wrote: Mon Feb 18, 2019 10:15 am -snip-
Cindy worked perfectly, thanks for the recommendation
by Doctory
Mon Feb 18, 2019 9:51 am
Forum: Support and Development
Topic: Converting imageData:getPixel() numbers to the 0-255 range
Replies: 2
Views: 5383

Converting imageData:getPixel() numbers to the 0-255 range

So I recently came back to love after quite some time and decided to look at my old project. For some reason it didn't work and the culprit is imageData:getPixel() returning numbers from 0-1 instead of 0-255. This is a big deal because I created maps from reading image files and it depended on the c...
by Doctory
Sun Dec 11, 2016 5:26 pm
Forum: General
Topic: Your Love-ing Style
Replies: 16
Views: 14195

Re: Your Love-ing Style

I use Atom. Its a great editor and it is very customizable. I use gruvbox as the syntax theme and the Atom Material as the UI theme.
Image
by Doctory
Sun Nov 20, 2016 9:16 am
Forum: Support and Development
Topic: Finding out what tile is next to the player
Replies: 4
Views: 6172

Re: Finding out what tile is next to the player

Doctory, how about: local floor = math.floor local tilesize = painter.tilesize function painter.positionToTile(x, y) return floor(x/tilesize), floor(y/tilesize) -- no rounding -- return floor(x/tilesize + .5), floor(y/tilesize + .5) -- with rounding end function painter.tileToPosition(tx, ty) retur...
by Doctory
Sat Nov 19, 2016 7:06 pm
Forum: Support and Development
Topic: Finding out what tile is next to the player
Replies: 4
Views: 6172

Finding out what tile is next to the player

hello everyone, im having a problem figuring out what tile is next to player. i need to figure out if a tile right, left, up or down to the player is for ex. a wall or a water tile. ive tried everything i could think of but it just wont work. here is what im doing right now: for k, v in ipairs(paint...
by Doctory
Sat Nov 12, 2016 8:10 pm
Forum: Support and Development
Topic: dt is a table value?
Replies: 2
Views: 4532

Re: dt is a table value?

i cant even use the library i made properly, thanks for the help!
by Doctory
Sat Nov 12, 2016 7:47 pm
Forum: Support and Development
Topic: dt is a table value?
Replies: 2
Views: 4532

dt is a table value?

hello everyone,
im having a problem when trying to use dt to preform an arithmetic with it, but love throws an error on me saying its a table function:
Image

hope anyone here is able to fix it. thanks in advance. .love is attached.