Fast and Furious: JavaScript

Fast and Furious: JavaScript

A collection of tips and tricks relating to game development on the web.

The companion code base to the talk can be found here:

http://github.com/KrofDrakula/tomcat

Check out my other game, too:

http://github.com/KrofDrakula/squirts

A9b044960d076e43d18e07f09f7a15c6?s=128

Klemen Slavič

March 06, 2014
Tweet

Transcript

  1. Klemen Slavič, Celtra @krofdrakula

  2. None
  3. • • • •

  4. • • •

  5. • • •

  6. • • •

  7. • • • •

  8. None
  9. • • • ′ = ⋅ ; ′ = ⋅

    • ′ = ⋅ ; h′ = ℎ⋅ •
  10. None
  11. None
  12. None
  13. • • •

  14. • • • •

  15. None
  16. None
  17. None
  18. None
  19. None
  20. • •

  21. • • • • •

  22. • • •

  23. None
  24. None
  25. None
  26. None
  27. • • •

  28. None
  29. None
  30. None
  31. None
  32. None
  33. • • •

  34. • • • • •

  35. function Vec2(x, y) { this.x = x; this.y = y;

    } Vec2.prototype.add = function(x, y) { if (x instanceof Vec2) return this.add(x.x, x.y); return new Vec2(this.x + x, this.y + y); };
  36. function Vec2(x, y) { this.x = x; this.y = y;

    } Vec2.prototype.add = function(x, y) { if (x instanceof Vec2) return this.add(x.x, x.y); this.x += x; this.y += y; return this; };
  37. None
  38. None
  39. None
  40. None
  41. • • • •

  42. • • • • • •

  43. • • • •

  44. None
  45. None
  46. None
  47. • • • •

  48. None
  49. None
  50. None
  51. None
  52. None
  53. None
  54. None
  55. None
  56. None
  57. • • • •