Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
Tom
@moT01
anyone wanna test out my snake game? https://s.codepen.io/moT01/full/eGvXqq/
Lucci Paula
@luccipaula
@moT01 It's cool but too fast for me haha
My highest score was only 900 😅
Tom
@moT01
thanks @caixeta-paula , keep practicing
CamperBot
@camperbot
mot01 sends brownie points to @caixeta-paula :sparkles: :thumbsup: :sparkles:
:cookie: 271 | @caixeta-paula |http://www.freecodecamp.com/caixeta-paula
Gersho
@Gersho
1600, isn't the grid smaller than usual snake ? i don't really remember
Tom
@moT01
i dont know
you can play with the numbers if you want
dimensions would change the size - just make sure you can divide the skale into dimensions or it might break
framerate at the bottom will change the speed
korzo
@korzo
@moT01 You should focus canvas on load, otherwise keys doesn't work unless you click on the body
Tom
@moT01
i noticed
im looking into it
Tom
@moT01
@korzo @Gersho thanks for checking it out
CamperBot
@camperbot
mot01 sends brownie points to @korzo and @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 570 | @korzo |http://www.freecodecamp.com/korzo
:cookie: 497 | @gersho |http://www.freecodecamp.com/gersho
Gersho
@Gersho
checking videogames ? always
Tom
@moT01
did you have one of those old nokia's with snake?
Gersho
@Gersho
of course, snake2
Tom
@moT01
i maybe should have made it light ugly green and dark ugly green to stay true
Gersho
@Gersho
had a 31 10, then a 33 30
Tom
@moT01
only need to charge it once a week anyway
korzo
@korzo
After this I had Erricson t68, then Nokia 7650, Nokia 6600
Tom
@moT01
thats some classic stuff right there
does that thing even have two colors? or is it just one on a static background
Gersho
@Gersho
it did levels of gray, like a gameboy iirc
but maybe only black and white
korzo
@korzo
@moT01 It has only levels of grey. It was revolution anyway.
Nate Mallison
@NJM8
Hello, I have a basic DOM manipulation question. I am trying to find an element like and ordered list then add another list item to it using appendChild. If I search for the list using getElementByTagName, appendChild does not work, I get a type error (appendChild is not a function). However if I select the list using querySelector then appendChild works just fine. What is the difference?
Gersho
@Gersho
i did have one where the "wallpaper" was an image behind the screen, visible even when phone off
Tom
@moT01
do you have multiple of that tag?
@NJM8
korzo
@korzo
@NJM8 getElementByTagName returns collection
@NJM8 querySelector first element
Gersho
@Gersho
so getElementsByTagName[0] ?
Tom
@moT01
mdn is showing me it's getElementsByTagName
Gersho
@Gersho
plural
korzo
@korzo
yep, I was copypasting
Nate Mallison
@NJM8
I see, getElementsByTagName is an array of those elements with that tag, and querySelector is the actual elements
*element
Tom
@moT01
not sure that syntax would work but, maybe if you did it on the var or after you put the tag in @Gersho
korzo
@korzo
@moT01 As it returns collection, it works..as long as collection is not empty
Tom
@moT01
var tags = getElementsByTagName('ul');
tags[0].append...
something like that maybe?
Nate Mallison
@NJM8
that seems to work
korzo
@korzo
@moT01 you can use getElementsByTagName('ul')[0].appendChild() as long as you are sure at lest one element exists
Gersho
@Gersho
i usually put id to stuff like that, so you don't get screwed when you add stuff later
Nate Mallison
@NJM8
yup, the tutorial I'm looking at suggested using querySelector but i don't like that, too vague.