Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 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
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
piteto
@piteto
no problem!
piteto
@piteto
@intcreate You could move some of your HTML to your javascript to give more flexibility in adding more images. Something like: https://s.codepen.io/anon/pen/LzrENb?editors=0010
intcreate
@intcreate
cool
Mauricio Scioville
@invasorMou
hi
Tom
@moT01
any regex masters around?
Pagnito
@Pagnito
who did the dungeon crawler alrdy?
Tom
@moT01
sup
@Pagnito
Pagnito
@Pagnito
@moT01 did you randomize all the rooms?
with an alg?
Tom
@moT01
yes
Pagnito
@Pagnito
so ur maps are always random?
Tom
@moT01
yes
Pagnito
@Pagnito
did u use canvas?
Tom
@moT01
no
hit 'm' after it loads to see the map
after you start
i made a 2d array, and used a table
probly not the best way to go
my buddy just wrote an article about how he did this one that i used
Pagnito
@Pagnito
sweet thanks, did u use phaser?
Tom
@moT01
no, what's phaser
Pagnito
@Pagnito
a js library to make html games
what did u use to make the graphics and the characters?
Tom
@moT01
basically the algorithm takes a 2d array and, and just randomly walks around it and turns everything it walks on to 1's or whatever
i took that 2d array, mapped it to a <table> and gave the elements classes
so if the array had a 0, it was a wall or something, and if it had a 1 it was a hallway
room whatever
like i said, that's probly not the best way to go
but, i dunno, it was what i was familiar with at the time
Pagnito
@Pagnito
i feel u
thats what i did for game of life
the blocks are those also pngs?
Tom
@moT01
yea, i think all the images are pngs
i had to do so gimp work with some of them
and i must have put another element in the <td> of the table for the items and stuff
Pagnito
@Pagnito
gimp?
Tom
@moT01
cheap man's version of photoshot
photoshop
free
Pagnito
@Pagnito
oooh
Ben Hart
@Benjmhart
I seem to have broken codepen...
what did I do?
welp, fixed it enough for codepen to let me debug at least
Tom
@moT01
twitchsrt
you didn't ask much of a question for me to be able to help, but the twitchSort function wasn't closed
Ben Hart
@Benjmhart
yeah i figured that out