|
|
|
|
|
by technomancy
3924 days ago
|
|
I've been working on a programming game of my own along similar lines: http://technomancy.itch.io/bussard The setting is interstellar rather than urban, and it's still in the early stages of development, but the idea of everything around you being made out of code is central in both. The idea is that your ship behaves less like an arcade game and more like a mashup between Emacs and orbital mechanics--the config file for your ship binds keystrokes to various systems on your ship, and you're never more than a keystroke away from a REPL. But the functions that control your ship are available as an API you can call from your own functions as well. I'm hoping that at some point it can become polished enough that it could be the means by which beginners could learn to code. There's something about having a "real-world" purpose behind your coding that can really catch the imagination of kids especially. A good example of this is how earlier today we were testing the game and flying around, and we noticed that an asteroid had fallen into a very close orbit around a particular star. Normally matching velocity with an asteroid in order to mine it is rather tricky when the velocity is steady, but when it's careening in low orbit around a star it's virtually impossible. But by writing a 6-line function that checked the distance between the ship and the asteroid and only activated the laser when it was in range, eventually the wild gyrating around and firing made contact, and the asteroid was destroyed. I don't think I've seen my kids as excited about a single function worth of code as when that asteroid blew up. |
|
Being so easy to embed, Lua is perfect for basing a live coding environment on. Here is one I made that is also based on Lua, as well as an assortment of other embeddable languages: https://github.com/createuniverses/praxis
Being able to change the universe/game while its running is why I made this.