Search found 62 matches

by TheP3
Sun Jan 27, 2013 10:02 pm
Forum: Support and Development
Topic: Shaders? How Can I Use This COOL THING!
Replies: 6
Views: 2140

Re: Shaders? How Can I Use This COOL THING!

However, how does it know to apply that shader just to the rectangle? The pixelEffect ( shader ) only applies to things being rendered ( in this case the square ) Also, you never called or executed effect. How did that get executed? Is it a default for Love2D or something? One last thing, the effec...
by TheP3
Sun Jan 27, 2013 9:40 pm
Forum: Support and Development
Topic: Shaders? How Can I Use This COOL THING!
Replies: 6
Views: 2140

Re: Shaders? How Can I Use This COOL THING!

Here: https://love2d.org/forums/viewtopic.php?f=4&t=12354 Thank you, Do you think maybe you could go into detail about the shader extern number t; vec4 effect(vec4 colour, Image img, vec2 txy, vec2 sxy) { return vec4(pow(cos(sxy.x/20+t),2),pow(sin(sxy.y/20+t),2),abs(1/(1+tan(length(sxy/20)+t))),1);...
by TheP3
Sun Jan 27, 2013 6:27 am
Forum: Support and Development
Topic: Shaders? How Can I Use This COOL THING!
Replies: 6
Views: 2140

Shaders? How Can I Use This COOL THING!

Hi, So, I have not really ever programmed any glsl shader, and I saw that Love2D supports them! Making all kinds of cool FX. I really want to learn how to use glsl with Love2D! Can anyone point to the wiki location/demos for programming Love2D with shaders! I really like advice too, because, I have ...
by TheP3
Sat Nov 10, 2012 10:53 pm
Forum: Support and Development
Topic: Help With Gravity & A Jump Function?(75% done vol jump :D)
Replies: 7
Views: 1757

Re: Help With Gravity & A Jump Function?(75% done vol jump :

Made a jump timer, however, now just need to add vol... Little stuck on this... require"col" --Loads Image ImgPlayer = love.graphics.newImage("GFX/Player/blob.png") ImgPlayer:setFilter("nearest", "nearest") --Player Image Quad PlayerImgQ = { right = { Quad(0, 0, 32, 32, 128, 128); Quad(32, 0, 32, 32...
by TheP3
Sat Nov 10, 2012 9:03 pm
Forum: Support and Development
Topic: Help With Gravity & A Jump Function?(75% done vol jump :D)
Replies: 7
Views: 1757

Re: Help With Gravity & A Jump Function?

On-start error is caused by line 14 in col.lua. It needs rounding, like: local r, g, b, a = ColMapSource:getPixel(math.floor(x/blockscale), math.floor(y/blockscale)) I'm currently tinkering with collision function. Will post results once done. I fixed the collision. Just made a conditional to test ...
by TheP3
Sat Nov 10, 2012 5:13 pm
Forum: Support and Development
Topic: Help With Gravity & A Jump Function?(75% done vol jump :D)
Replies: 7
Views: 1757

Re: Help With Gravity & A Jump Function?

YellowAfterlife wrote:On-start error is caused by line 14 in col.lua.
It needs rounding, like:

Code: Select all

local r, g, b, a = ColMapSource:getPixel(math.floor(x/blockscale), math.floor(y/blockscale))
I'm currently tinkering with collision function. Will post results once done.
:D Thanx
by TheP3
Thu Nov 08, 2012 12:24 am
Forum: Support and Development
Topic: Help With Gravity & A Jump Function?(75% done vol jump :D)
Replies: 7
Views: 1757

Re: Help With Gravity & A Jump Function?

Error: col.lua:15: Attempt to get out-of-range pixel! stack traceback: [C]: in function 'getPixel' col.lua:15: in function 'load_ColMap' main.lua:15: in function 'load' [string "boot.lua"]:378: in function <[string "boot.lua"]:373> [C]: in function 'xpcall' ? You stepped out of the map, I'm going t...
by TheP3
Mon Nov 05, 2012 7:21 am
Forum: Support and Development
Topic: Jump Crashes Game
Replies: 8
Views: 1213

Re: OOP?

WolfNinja2 wrote:
TheP3 wrote:Also, are you trying to do OOP with the player functions?
OOP? I don't know what that is.
object oriented programming
by TheP3
Mon Nov 05, 2012 7:01 am
Forum: Support and Development
Topic: Jump Crashes Game
Replies: 8
Views: 1213

Re: Jump Crashes Game

Also, are you trying to do OOP with the player functions?