Search found 58 matches

by dizzykiwi3
Wed Mar 18, 2015 9:14 pm
Forum: General
Topic: New to coding and need help on Pong game
Replies: 7
Views: 2877

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...
by dizzykiwi3
Wed Mar 18, 2015 9:07 pm
Forum: General
Topic: New to coding and need help on Pong game
Replies: 7
Views: 2877

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
by dizzykiwi3
Sat Mar 14, 2015 9:11 pm
Forum: General
Topic: Help with a blur filter and GLSL?
Replies: 4
Views: 2742

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.
by dizzykiwi3
Sat Mar 14, 2015 3:57 pm
Forum: General
Topic: Help with a blur filter and GLSL?
Replies: 4
Views: 2742

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...
by dizzykiwi3
Sat Mar 14, 2015 5:34 am
Forum: General
Topic: Help with a blur filter and GLSL?
Replies: 4
Views: 2742

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...
by dizzykiwi3
Sun Mar 01, 2015 7:21 am
Forum: Libraries and Tools
Topic: [library] shine - post processing effects for everyone
Replies: 26
Views: 22175

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.
by dizzykiwi3
Sat Feb 07, 2015 7:57 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 7179

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...
by dizzykiwi3
Sat Feb 07, 2015 6:30 am
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 7179

Re: A very quick question about Lua and variable reassignmen

So... what should I do to accomplish what I need?
by dizzykiwi3
Fri Feb 06, 2015 6:54 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 7179

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

Code: Select all

variable1 = {["a"] = 12, ["b"] = 5}
function setit(x)
x = 10
end

setit(variable1.a) --variable1.a is now 10
when I copy and paste that into my local console, variable1.a still returns 12
by dizzykiwi3
Fri Feb 06, 2015 6:49 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 7179

Re: A very quick question about Lua and variable reassignmen

That was outrageously clear and concise Hugo, thanks a bunch!