Search found 576 matches

by ReFreezed
Sat Sep 17, 2022 1:18 pm
Forum: Games and Creations
Topic: Cave Generator
Replies: 2
Views: 199

Re: Cave Generator

This looks quite useful.
by ReFreezed
Sat Sep 17, 2022 12:43 pm
Forum: Support and Development
Topic: Moving sprite is jitter.
Replies: 11
Views: 411

Re: Moving sprite is jitter.

Measure the actual time updates are taking to see if any update takes too long. The third solution you listed should've fixed any uneven jitter that wasn't caused by too high workload. Also, please share your code.
by ReFreezed
Thu Sep 15, 2022 10:19 am
Forum: General
Topic: Love2D logo
Replies: 27
Views: 2089

Re: Love2D logo

Nice. :)
by ReFreezed
Thu Sep 15, 2022 10:13 am
Forum: Support and Development
Topic: Flipping Sprite Sheet Animation Shrinks Image
Replies: 3
Views: 191

Re: Flipping Sprite Sheet Animation Shrinks Image

You gotta at least show the code for the :draw() function. There is no such thing as a "spritesheet" object in LÖVE or Lua, so there's no way for us to know what the problem is without seeing more of the code.
by ReFreezed
Wed Sep 14, 2022 8:55 pm
Forum: Support and Development
Topic: [SOLVED] ipairs list only functioning on last item Why?
Replies: 5
Views: 250

Re: ipairs list only functioning on last item Why?

Could the problem have anything to do with the canPick variable, as it's updated for every item in the loop and always holds the result of the last iterated item after the loop?
by ReFreezed
Wed Sep 14, 2022 1:01 pm
Forum: General
Topic: What can cause love2d not to draw
Replies: 18
Views: 755

Re: What can cause love2d not to draw

Is it just text that don't get drawn, or all graphics? It has happened that text has gotten corrupted for me, but only while I was recording the game with Fraps. It was weird indeed.
by ReFreezed
Wed Sep 14, 2022 12:36 pm
Forum: Support and Development
Topic: fast pixel by pixel rendering or better way ?
Replies: 8
Views: 355

Re: fast pixel by pixel rendering or better way ?

This is basically the same as pgimeno's solution, but I spent time writing it so I'm posting it anyway. :| local WAVE_AMPLITUDE = 10 -- pixels local WAVE_LENGTH = 100 -- pixels local WAVE_INTERVAL = 1.5 -- seconds local image = love.graphics.newImage("image.png") image:setWrap("clampz...
by ReFreezed
Wed Sep 14, 2022 10:51 am
Forum: Support and Development
Topic: fast pixel by pixel rendering or better way ?
Replies: 8
Views: 355

Re: fast pixel by pixel rendering or better way ?

This is exactly what the GPU and shaders are for.
by ReFreezed
Tue Sep 13, 2022 11:49 am
Forum: Support and Development
Topic: Mesh generation problem
Replies: 4
Views: 211

Re: Mesh generation problem

g3d doesn't know you want a cube - it just expects a list of vertices to make separate triangles of. I'm guessing the first 2x3 vertices out of the 8 form the two triangles you see, and the last two vertices are ignored as they are not enough for another triangle. You would need 2x3 vertices (two tr...
by ReFreezed
Tue Sep 13, 2022 9:00 am
Forum: Support and Development
Topic: bitMap screen rendering
Replies: 2
Views: 199

Re: bitMap screen rendering

Do you mean you want to generate an image programmatically, as opposed to creating it in a drawing program? Generate the image once at load time using love.image.newImageData and ImageData:mapPixel or ImageData:setPixel , followed by love.graphics.newImage . function love.load() local imageData = lo...