HN2new | past | comments | ask | show | jobs | submitlogin

If anyone else is wondering how the characters are generated:

  states = {
    // policeman
    "0": decodeEntities("👮"),
    ...
    // octopus
    "3": decodeEntities("🐙"),

    // explosion
    "4": decodeEntities("💥") 
  };
From http://www.patrick-wied.at/projects/tough-title-city/game.js


That's weird, I'm fairly sure JS strings are Unicode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: