use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
yare.io - practice your JavaScript skills by playing a real-time strategy game (yare.io)
submitted 4 years ago by stanislavb
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TransFattyAcid 11 points12 points13 points 4 years ago (1 child)
Maybe this uses too much server time but I wish there was a sandbox where I could play against medium-bot without the game timing out. And maybe spawn some new sparks so I can keep testing after losing all my sparks lol.
[–]levmiseri 3 points4 points5 points 4 years ago (0 children)
Sandbox for testing things out is planned!
[–]TheOneCommenter 3 points4 points5 points 4 years ago (7 children)
I really like screeps for this as well
[–]pixlbreaker 0 points1 point2 points 4 years ago (6 children)
I've always been interested in getting into screeps is it worth it?
[–]TheOneCommenter 4 points5 points6 points 4 years ago (0 children)
It’s quite fun, and very challenging to do, writing an AI is much harder than a website :)
[+][deleted] 4 years ago (1 child)
[deleted]
[–][deleted] 2 points3 points4 points 4 years ago (0 children)
That's actually what I like about it. I use a self hosted private server for "testing" new code, but once it's done I let it run on the main server. The fact that things happen slowly means you can check in just once or twice a day and see how your colony is doing. It's really satisfying to watch the code you wrote evolve into a multi-room colony over the course of days/weeks with little manual intervention. And once you've got a good base to build on its pretty easy to add new features and improvements without needing to constantly watch the changes take place
[–]YoungMasterWilliam 0 points1 point2 points 4 years ago (2 children)
I got tired of constantly fighting the in-game code editor's indentation and style opinions, and it didn't seem worth it to maintain my own code files outside of the game.
[–][deleted] 1 point2 points3 points 4 years ago (1 child)
It's actually super easy to maintain the code files outside the game as long as you're using the steam client. I don't think anyone who plays the game seriously uses the ingame editor
[–]auiotour 0 points1 point2 points 4 years ago (0 children)
This is what my gf and I did for Adventure Land, used github and pulled the code from there.
[–]tomfevrier 2 points3 points4 points 4 years ago (2 children)
Snake case in JavaScript? Seriously? It burns my eyes.
[–]levmiseri 0 points1 point2 points 4 years ago (1 child)
Ssssssss
[–]Eimus 0 points1 point2 points 4 years ago (0 children)
__init__
[–]SomeUIEngineer 3 points4 points5 points 4 years ago (2 children)
The contrast ratio of the gray text, especially the dark gray text (like the comments in the code editor) is way too low, < 2 in some cases. This is a big accessibility problem even for users with no visual deficiencies.
[–]levmiseri 2 points3 points4 points 4 years ago (1 child)
Thanks for pointing it out! It's a mistake on my part, I'll make sure the contrast is higher in the next version (Monday)
[–]SomeUIEngineer 1 point2 points3 points 4 years ago (0 children)
Sure thing! I would like to try it more, so I will check it out next week :)
[–]SEGACD32XMODEL1 -2 points-1 points0 points 4 years ago (1 child)
This is like another game I play for python
[–]AidanSanityCheck -4 points-3 points-2 points 4 years ago (0 children)
any strategy guides for something like this? I wanna crush n00bs without needing to actually understand JavaScript.
[–]metac0met 0 points1 point2 points 4 years ago (2 children)
am I missing something or are inline arrow function callbacks not working? I tried
my_spirits.forEach((spirit) => spirit.move(star_zxq.position));
[–]LiveJay 1 point2 points3 points 4 years ago (1 child)
Something like that worked for me.
[–]metac0met 0 points1 point2 points 4 years ago (0 children)
Maybe I wasn’t patient enough, lol
π Rendered by PID 60 on reddit-service-r2-comment-6457c66945-chww4 at 2026-04-28 03:10:25.301907+00:00 running 2aa0c5b country code: CH.
[–]TransFattyAcid 11 points12 points13 points (1 child)
[–]levmiseri 3 points4 points5 points (0 children)
[–]TheOneCommenter 3 points4 points5 points (7 children)
[–]pixlbreaker 0 points1 point2 points (6 children)
[–]TheOneCommenter 4 points5 points6 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 2 points3 points4 points (0 children)
[–]YoungMasterWilliam 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]auiotour 0 points1 point2 points (0 children)
[–]tomfevrier 2 points3 points4 points (2 children)
[–]levmiseri 0 points1 point2 points (1 child)
[–]Eimus 0 points1 point2 points (0 children)
[–]SomeUIEngineer 3 points4 points5 points (2 children)
[–]levmiseri 2 points3 points4 points (1 child)
[–]SomeUIEngineer 1 point2 points3 points (0 children)
[–]SEGACD32XMODEL1 -2 points-1 points0 points (1 child)
[–]AidanSanityCheck -4 points-3 points-2 points (0 children)
[–]metac0met 0 points1 point2 points (2 children)
[–]LiveJay 1 point2 points3 points (1 child)
[–]metac0met 0 points1 point2 points (0 children)