Search found 58 matches
- Wed Mar 18, 2015 9:14 pm
- Forum: General
- Topic: New to coding and need help on Pong game
- Replies: 7
- Views: 2878
Re: New to coding and need help on Pong game
To see the code just change the extension from .love to .zip. The game is split up into two different files and also has two sound files. I put the more intimidating looking stuff in a file called technicalstuff just so people who had never seen code before wouldn't get bogged down by it and could s...
- Wed Mar 18, 2015 9:07 pm
- Forum: General
- Topic: New to coding and need help on Pong game
- Replies: 7
- Views: 2878
Re: New to coding and need help on Pong game
I made a very basic version of pong for a class, give me a second to go find it a dissect it and label it
- Sat Mar 14, 2015 9:11 pm
- Forum: General
- Topic: Help with a blur filter and GLSL?
- Replies: 4
- Views: 2745
Re: Help with a blur filter and GLSL?
I have little to no idea how I would go about doing that, nor what I would pass into the shader for the externs.
- Sat Mar 14, 2015 3:57 pm
- Forum: General
- Topic: Help with a blur filter and GLSL?
- Replies: 4
- Views: 2745
Re: Help with a blur filter and GLSL?
So in terms of adding it to love I would use love.graphics.newShader and bracket that code like this? gshader = love.graphics.newShader [[ uniform sampler2D uTexture; uniform vec2 uShift; const int gaussRadius = 11; const float gaussFilter[gaussRadius] = float[gaussRadius]( 0.0402,0.0623,0.0877,0.11...
- Sat Mar 14, 2015 5:34 am
- Forum: General
- Topic: Help with a blur filter and GLSL?
- Replies: 4
- Views: 2745
Help with a blur filter and GLSL?
I'm not at all versed in OpenGL, but I really love the concept of blur and focus, and would love to be able to use it in my game. As I understand it, for a standard box blur (or should I be trying for gaussian instead?) I need to make the value the average of all the neighboring values, weighted for...
- Sun Mar 01, 2015 7:21 am
- Forum: Libraries and Tools
- Topic: [library] shine - post processing effects for everyone
- Replies: 26
- Views: 22223
Re: [library] shine - post processing effects for everyone
This is AMAZING.
Do you know if it works with cameras and scissors? I seem to be having troubles with it, and I'm not sure if its because of my misuse of it or incompatibility with those.
Do you know if it works with cameras and scissors? I seem to be having troubles with it, and I'm not sure if its because of my misuse of it or incompatibility with those.
- Sat Feb 07, 2015 7:57 pm
- Forum: General
- Topic: A very quick question about Lua and variable reassignment
- Replies: 12
- Views: 7184
Re: A very quick question about Lua and variable reassignmen
That still doesn't seem to be working... I'm testing it in the local console of Zerobrane Studio To be specific I'm trying to do a function like this function returntobase(val,i,base) if val > base then if val - i < base then val = base else val = val - i end elseif val < base then if val + i > base...
- Sat Feb 07, 2015 6:30 am
- Forum: General
- Topic: A very quick question about Lua and variable reassignment
- Replies: 12
- Views: 7184
Re: A very quick question about Lua and variable reassignmen
So... what should I do to accomplish what I need?
- Fri Feb 06, 2015 6:54 pm
- Forum: General
- Topic: A very quick question about Lua and variable reassignment
- Replies: 12
- Views: 7184
Re: A very quick question about Lua and variable reassignmen
The code for the table values though doesn't seem to be working for me
when I copy and paste that into my local console, variable1.a still returns 12
Code: Select all
variable1 = {["a"] = 12, ["b"] = 5}
function setit(x)
x = 10
end
setit(variable1.a) --variable1.a is now 10
- Fri Feb 06, 2015 6:49 pm
- Forum: General
- Topic: A very quick question about Lua and variable reassignment
- Replies: 12
- Views: 7184
Re: A very quick question about Lua and variable reassignmen
That was outrageously clear and concise Hugo, thanks a bunch!