doodle/pkg/windows
Noah Petherbridge 7866f618da First-class Doodad Hitboxes + Generic Item Script
A new property is added to the Doodad struct: Hitbox (Rect).

The uix.Actor for Play Mode will defer to the Doodad.Hitbox until the
JavaScript has manually set its own via Self.SetHitbox(). So in effect,
scripts no longer need to worry about their hitbox! The one assigned to
the Doodad will be the default.

Scripts can check if their hitbox is zero before setting a default:

  if (Self.Hitbox().IsZero()) {
    var size = Self.Size()           // get doodad canvas size
    Self.SetHitbox(0, 0, size, size) // the full square
  }

The built-in generic doodad scripts have made this change, so that your
simple doodad can have a custom hitbox defined easily using in-game
tools.

Other changes:

* New script: Generic Collectible Item. Selecting it will add a
  "quantity" tag to your doodad, to easily configure the script.
* JavaScript API: "Self.Hitbox()" returns your doodad's current hitbox.
  You can check "Self.Hitbox.IsZero()" to check if it's empty.
2021-09-03 20:39:44 -07:00
..
about.go Menu Bar Update 2020-06-04 21:55:54 -07:00
add_edit_level.go Editor: Doodad Properties Window 2021-09-02 21:26:55 -07:00
doodad_dropper.go New TabFrame Widget for Doodads and Settings 2021-07-25 21:46:55 -07:00
doodad_properties.go First-class Doodad Hitboxes + Generic Item Script 2021-09-03 20:39:44 -07:00
filesystem_window.go Manage Embedded Files In Levels 2021-06-13 16:03:32 -07:00
layers_window.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
license_key.go Diverge Free vs. Paid Features 2021-06-16 22:35:01 -07:00
open_level_editor.go Sort levels and doodads in the Open menu 2021-08-15 20:27:05 -07:00
palette_editor.go Settings Window + Bugfix 2021-06-19 22:14:41 -07:00
publish_level.go Manage Embedded Files In Levels 2021-06-13 16:03:32 -07:00
settings.go New TabFrame Widget for Doodads and Settings 2021-07-25 21:46:55 -07:00