Editor documentation

As your game runs, your script gets called many times per second to handle various game events. Depending on the lifetime of particular instance, it may run for just a few minutes or for many hours. Of course, this consumes hardware resources so Heyplay engine puts some restrictions on game scripts that are running in order for them not to overuse the platform.

Following limits are appied:

  • no access to local filesystem
  • no access to some debugging functions like the console module
  • memory usage limit of 256 MB

Other limits may be introduced in the future. Please visit this page to see the current limits.

Here’s a bunch of tips for you as a game author to play nice with these restrictions:

  • use this documentation to check which standard libraries and functions are avaiable
  • for message printing and debugging, use Message instead of console
  • cleanup all the long-lived state e.g. delete playerStates[player.id] in Player.onDeath