3 ms·
Very impressive. As a crusty old desktop programmer I am amazed how smoothly it runs in the browser. A few questions (didn't see them answered below): 1. What
by hermitcrab 11y ago
Very impressive. As a crusty old desktop programmer I am amazed how smoothly it runs in the browser. A few questions (didn't see them answered below):
1. What Javascript frameworks/libraries did you use (if any)?
2. Do the 2 sides always have to be symmetric?
It would be great if you could add some brief notes explaining what is going on (even if you just copy and paste some of the below).
- jjar 11y agoIt was definitely something compiled to JavaScript, I can tell you that. https://simonswain.com/coldwar/assets/pub-script-1432435171707.js https://simonswain.com/coldwar/assets/pub-script-14324351717...
- deleted 11y ago[deleted]
- vabole 11y agoThat's plain JavaScript, only minified.
- simonswain 11y agoNo frameworks or libs. Vanilla.js, raw Canvas and requestAnimationFrame. In this version, they are symmetric with slight random variations. No reason they have to be though.
- hermitcrab 11y agoWhat sort of IDE/debugger did you use (if there is such a thing for Javascript)? How long did it take to write and debug? Looking forward to v0.2!
- simonswain 11y agoEmacs, and Chrome dev tools. The build environment has jslint set up in it too. I can't recommend enough js{lint|hint}ing all your code. None of the stuff in the sim is super tricky.