6 ms·
Yes, how much fun folks could have if you could connect a Repl into your game and arbitrarily change the rules on the fly!
by weavie 11y ago
Yes, how much fun folks could have if you could connect a Repl into your game and arbitrarily change the rules on the fly!
- davexunit 11y ago(shameless plug alert) This is how my WIP (verrrry WIP) game engine written in Guile Scheme works. It is built explicitly to enable iterative, live development. 2 year old video of a precursor to the current project: https://dthompson.us/functional-reactive-programming-in-scheme-with-guile-2d.html https://dthompson.us/functional-reactive-programming-in-sche... Simple example program: https://git.dthompson.us/sly.git/blob/HEAD:/examples/simple.scm https://git.dthompson.us/sly.git/blob/HEAD:/examples/simple.... More complicated minesweeper example: https://git.dthompson.us/sly.git/blob/HEAD:/examples/mines/mines.scm https://git.dthompson.us/sly.git/blob/HEAD:/examples/mines/m... Home page: https://dthompson.us/pages/software/sly.html https://dthompson.us/pages/software/sly.html Hoping to get a 0.2 release out the door in time for the Lisp Game Jam coming up in April.
- CyberDildonics 11y agoYou can do that right now with Love2D and a stub game loop that sources the actual implementations every second or two.
- davexunit 11y agoThat is a far cry from a REPL.
- CyberDildonics 11y agoIt's better than a REPL, that allows you to write a game completely live. I'm not sure what you think is lost since you didn't back up what you are saying with anything.
- davexunit 11y agoIt is strictly less powerful than a REPL. Claiming that you can't live code a game at a REPL is false, because I do it on a regular basis. When I write games in Scheme, I use a REPL to write the game live, doing all of my editing within Emacs. I do not have to save files for the code to be evaluated, I just press a keystroke to evaluate the specific form I'm interested in. I can evaluate more fine-grained sections of code, not only entire files.
- CyberDildonics 11y agoPressing a keystroke is all it takes to save a file. Also if you are selectively executing parts of files, how is it that you are editing the live running source code?