doodle/pkg/scripting
Noah Petherbridge 9201475060 Update Doodad JS API + Hostile mobs
New functions are available on the JavaScript API for doodads:

* Actors.At(Point) []*Actor: returns actors intersecting a point
* Actors.FindPlayer() *Actor: returns the nearest player character
* Actors.New(filename string): create a new actor (NOT TESTED YET!)
* Self.Grounded() bool: query the grounded status of current actor

With this the game's built-in doodads have been revised:

* Bird: will now scan 240 pixels diagonally searching for the player
  character and will dive if seen. The Bird is dangerous while
  diving. It will return to its original altitude once it touches
  the ground.
* Azulians: the Azulians are now dangerous to player characters but
  not to the Thief. Azulians will begin to follow the player when
  they are within the aggro range and will hop if the player is
  above them to try and overcome obstacles.
  * Blue Azulian: aggro is (250, 100) jump speed 12 movement 2
  * Red Azulian: aggro is (250, 200) jump speed 14 movement 4
2022-01-17 21:28:05 -08:00
..
events.go Switch JavaScript engine to goja 2022-01-16 20:09:27 -08:00
js_api.go Update Doodad JS API + Hostile mobs 2022-01-17 21:28:05 -08:00
pubsub.go Switch JavaScript engine to goja 2022-01-16 20:09:27 -08:00
scripting.go Polish and bugfixes 2021-10-09 20:45:38 -07:00
supervisor_events.go Checkpoint Flag & Retry from Checkpoint 2021-08-15 20:17:53 -07:00
timers.go Switch JavaScript engine to goja 2022-01-16 20:09:27 -08:00
vm.go Switch JavaScript engine to goja 2022-01-16 20:09:27 -08:00