actor delay

This commit is contained in:
2023-11-29 23:31:41 +00:00
parent b9db31c84e
commit 03fb016fbc
10 changed files with 98 additions and 211 deletions

View File

@@ -2,4 +2,7 @@
Entities are defined by creating a .jso script in your game directory. Variants of the original entity can be created by defining a .json file, typically done via the provided editor. The original entity is known as its ur-type. If you create a player.jso file in your game directory, a player can be spawned by saying Primum.spawn(ur.player).
An entity which differs from its ur will have an asterisk * next to its name.
An entity which differs from its ur will have an asterisk * next to its name.
## Ur types

View File

@@ -2,6 +2,10 @@
Primum programs are organized into two different types of source files: scripts and entities. Scripts end with .js, entities end with .jso.
Actors can be created with jso files. Make one by calling 'actor.spawn(file)'.
Entities are specialized actors, that are in the world of the computer game. While calling delay on actor causes a delay relative to real-life time, delay on an entity causes a delay relative to the game world time.
## Scripts
Script hooks exist to allow to modification of the game.