Search found 1077 matches

by s-ol
Thu Nov 07, 2019 5:05 pm
Forum: Support and Development
Topic: Passing a 'self' function as a parameter
Replies: 4
Views: 5980

Re: Passing a 'self' function as a parameter

Code: Select all

function newSquare(f)
        local square = setmetatable({ n = 1 }, square)
        square.button = newButton(function () square:increment end)
        return square
end
by s-ol
Mon May 28, 2018 9:05 am
Forum: Libraries and Tools
Topic: a working setColor compatibilty multiplier
Replies: 17
Views: 28450

Re: a working setColor compatibilty multiplier

For me the change from 255 to 1 didn't make sense anyway. Yeah 255 is indeed the max color value due to 255 being the decimal equivalent to binary 1111111 For me it works very very confusing since all graphic manipulation programs I have (as well as other programming tools I use) use a 0-255 scale,...
by s-ol
Mon May 21, 2018 11:43 am
Forum: General
Topic: Getting a project to work with moonscript 0.5.0-1
Replies: 12
Views: 17382

Re: Getting a project to work with moonscript 0.5.0-1

You can pass a filename (or any name) as second argument to loadstring. Right, that kind of works - it's still printing bogus line numbers though. It's the line numbers from the transpiled file, not the source line numbers. Right back to square one, sigh. it has always been this way for me. I have ...
by s-ol
Mon May 21, 2018 7:29 am
Forum: General
Topic: Getting a project to work with moonscript 0.5.0-1
Replies: 12
Views: 17382

Re: Getting a project to work with moonscript 0.5.0-1

Hm, im not sure it love 11 changed something, but I was always runnig it like that: main.lua require(“moonscript”) require(“game”) I cant check your attached file unfortunately on my phone. You are not attempting to require “game.moon” right? Also, is your capitalization the same on disk and in the ...
by s-ol
Sun Feb 11, 2018 2:17 am
Forum: General
Topic: Code Doodles!
Replies: 197
Views: 326771

Re: Code Doodles!

spiral around a 3d torus very simply projected to 2d and rendered as many circles:
Image
(source)

This eventually led to an this 4d torus explorer program: https://github.com/s-ol/torus4d
by s-ol
Sun Dec 31, 2017 12:30 pm
Forum: Support and Development
Topic: Building LÖVE Arch linux
Replies: 5
Views: 12291

Re: Building LÖVE Arch linux

Well if you actually ran "love." then it's because it needs to be "love ." (that space is very important). On arch you usually dont need to compile from source by hand, you have PKGBUILDs to describe the build process and integrate the files with the system package manager. You D...
by s-ol
Sun Dec 17, 2017 1:30 pm
Forum: Support and Development
Topic: Muffled Audio?
Replies: 2
Views: 5037

Re: Muffled Audio?

The effect you are looking for is a Low-pass filter (LP) that let's the deep sounds through.
by s-ol
Mon Dec 11, 2017 10:14 am
Forum: Support and Development
Topic: Android shader on touch
Replies: 1
Views: 3665

Re: Android shader on touch

It doesn't really sound like you need a shader at all. Just use love.touchpressed etc to draw a bubble? If you want to do some displacement, then you can render your scene to a canvas and then draw the canvas with the shader attached. You will need externs (uniforms) to send information to the shade...
by s-ol
Mon Dec 04, 2017 2:15 pm
Forum: General
Topic: What is happening behind the scenes?
Replies: 5
Views: 6886

Re: What is happening behind the scenes?

The löve app, like the desktop version, includes a Lua interpreter/VM that executes the (extracted) code from the .love file. I'm not sure whether JIT is enable on mobile (and on which platforms, afaik apple store rules are touchy on that kind of thing) but it it is then some of the Lua code will be...
by s-ol
Thu Nov 16, 2017 11:44 pm
Forum: Support and Development
Topic: Unable to Run Minimal Game
Replies: 3
Views: 5260

Re: Unable to Run Minimal Game

that doesn't look like a correct path on any major Operating System. If you are on Mac or Windows, try opening the directory options / properties / information window, it will show you the actual path there. Alternatively 'cd' into the directory in your terminal and start using 'love .'