actor delay
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user