#Snake Game

1 messages · Page 1 of 1 (latest)

flat herald
#

Hi everyone! Just wanna show you my snake created using SFML and C++.

Just some screens:

ember scaffold
#

This looks dope! Nice job. :D.

flat herald
ember scaffold
#

Yeah. :D.

jade void
#

wow this is really polished

unkempt isle
#

How did you make that glowing effect?

flat herald
# unkempt isle How did you make that glowing effect?

I used shaders in which I took the position and color of a certain light and calculated the distance from each pixel. The closer the pixel is to the position of the light, the greater the effect this light will have on the pixel. I also used a specific radius. That is, if the distance from the light to the pixel is greater than the radius, then the light has no effect on the color of the pixel.

#

This is just like simple point light

#

But l draw only "grey" cells with shaders so light has no effect on the black one and on the snake segments

unkempt isle
#

which file should i look in for the code?

flat herald
#

CellShader.frag