Live data from Hacker News

JavaScript Cold War simulation

simonswain.com

71–78 of 78 posts

Re: JavaScript Cold War simulation

#72

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).

It was definitely something compiled to JavaScript, I can tell you that.

https://simonswain.com/coldwar/assets/pub-script-14324351717...

Re: JavaScript Cold War simulation

#73
post #72

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).

It was definitely something compiled to JavaScript, I can tell you that. https://simonswain.com/coldwar/assets/pub-script-14324351717...

[deleted]

Re: JavaScript Cold War simulation

#75

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).

No 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.

Re: JavaScript Cold War simulation

#76
post #72

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).

It was definitely something compiled to JavaScript, I can tell you that. https://simonswain.com/coldwar/assets/pub-script-14324351717...

That's plain JavaScript, only minified.

Re: JavaScript Cold War simulation

#77

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).

No 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.

What 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!

Re: JavaScript Cold War simulation

#78

Earlier quoted context omitted.

No 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.

What 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!

Emacs, 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.
Post reply on HN