livewires / you-win

a friendly games library for young people who've probably used Scratch before
https://livewires.github.io/you-win/install
8 stars 1 forks source link

Consider diff-style code samples #11

Closed tjvr closed 7 years ago

tjvr commented 7 years ago

It's apparently not clear (who knew?!) that when I provide separate code samples, for example here, that I'm intending you to edit the previous one (rather than add it additionally to the previous one).

It'd be ideal if I could reproduce the previous code but include strikethroughs. Not sure how to do that with Markdown, but perhaps

forever(() => {
//--face.angle += 1--
  face.x += 2
})

would suffice?

Compare with //... for elided sections.

world.on('tap', e => {
  //...[make the bullet]...

  forever(() => {
    bullet.x += 3
    bullet.y += 3
  })
})
tjvr commented 7 years ago

We're now wrapping code blocks in <s>. I think that works fine.


screen shot 2017-08-20 at 23 09 08