Skip to main content

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

The new eval command could be helpful for the kinds of things you'd use a debug mode for. Hit esc; run `eval trace(player.status)` or even use eval to replace the definition of a function and then `resume` to see what effect it has.

I'm not very good with the technical parts of lua and I couldn't find anything about the eval command. How do you use it exactly?

Basically any code that would be valid to type in the code editor, you can type in the eval command. For instance: eval trace(table.concat({"a", "b", "c"}))

It's very useful for inspecting the state of your variables or calling functions after running your game and hitting ESC.