Skip to content

Basic framework for getting started in Screeps using ClojureScript

Notifications You must be signed in to change notification settings

anisoptera/screeps-cljs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screeps-cljs

Basic framework for getting started in Screeps using ClojureScript.

Run script/watch for live compilation. Add your username and password (not to the repository!!) for instant deployment.

The game loop is tied up in main.cljs. Memory is implemented using transit-cljs, because it’s faster and more importantly it works.

The existence of the jsx->clj function saddens me, but I haven’t been able to work out why js->clj doesn’t work on world. If you figure it out and fix it, I will merge your pull request so fast.

Enjoy the thrills of incomprehensible error messages because it’s all minified and the function names are meaningless. Savor the perverse joy you feel when you can actually read what the JS is doing anyway. Curse in frustration when your carefully tested and debugged in the simulator code crashes and burns on world and you have no choice but to hang up your entire AI trying to debug what could possibly have gone wrong.

You’re gonna type (.log js/Console) a lot, is what I’m saying.

Happy hacking!

About

Basic framework for getting started in Screeps using ClojureScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 58.4%
  • JavaScript 41.0%
  • Shell 0.6%