Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sorry, I meant re-evaluating a function (with geiser send definition). What worked for me was exporting a global variable (a record)  from a module, and then in the REPL changing the value of different fields, it worked well with the game loop. But it is cumbersome to use globals in this way, I only did it to try out  the REPL and the geiser hoot package. I know there are limitations with the current version of the REPL, that is why I'm asking for some useful tips given said limitations (I only tried it briefly, global variables was the only thing that came to mind).

It is possible to re-define top-level symbols with the REPL currently. I haven't had the opportunity to try live coding a game but replacing top-level definitions is something I did a lot when developing geiser-hoot.

Thank you. I tried the REPL again, and after importing a module,  functions can be redefined. What I was trying to do was fetching the function name and redefine it (using set!)  in what I had assumed was the main process, I understand know that run-web-repl starts the REPL from scratch (with very little context from where it is launched). I will try to start the game loop from within the REPL and see how it goes.