doodle/pkg
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
..
balance Editor: Doodad Properties Window 2021-09-02 21:26:55 -07:00
branding Zoom In/Out Feature: WorldIndexAt Fixed 2021-07-13 18:04:25 -07:00
campaign Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
collision Collision: Fix walking up leftward slopes 2021-06-02 21:49:29 -07:00
doodads First-class Doodad Hitboxes + Generic Item Script 2021-09-03 20:39:44 -07:00
drawtool Brush Pattern Textures 2021-06-09 22:36:32 -07:00
enum Code Layout Refactor 2019-04-09 17:35:44 -07:00
filesystem Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
keybind Shift to scroll slowly + Doodads on Q 2021-07-13 18:04:25 -07:00
level Checkpoint Flag & Retry from Checkpoint 2021-08-15 20:17:53 -07:00
license Diverge Free vs. Paid Features 2021-06-16 22:35:01 -07:00
log Switch github.com/kirsle/golog to git.kirsle.net/go/log 2019-12-22 18:34:31 -08:00
modal Checkpoint Flag & Retry from Checkpoint 2021-08-15 20:17:53 -07:00
native WIP Publish Dialog + UI Improvements 2021-06-10 22:36:22 -07:00
pattern Loading Screen 2021-07-18 21:19:52 -07:00
physics Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
scripting Checkpoint Flag & Retry from Checkpoint 2021-08-15 20:17:53 -07:00
shmem Changelog and Prepare v0.5.0 for Release 2021-03-31 19:16:33 -07:00
sound WIP Game Settings Window, WASM Fixes, Sound FX 2020-09-01 20:54:58 -07:00
sprites Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
uix First-class Doodad Hitboxes + Generic Item Script 2021-09-03 20:39:44 -07:00
updater Updater: Better SemVer version checks for updates 2021-07-11 14:09:18 -07:00
usercfg Settings Window + Bugfix 2021-06-19 22:14:41 -07:00
userdir Tighten Doodad JavaScript API, User Documentation 2020-04-21 23:50:45 -07:00
wallpaper Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
wasm WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
windows First-class Doodad Hitboxes + Generic Item Script 2021-09-03 20:39:44 -07:00
cheats.go Death Barrier and Player Character Cheat Codes 2021-08-15 17:01:18 -07:00
commands.go Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
config.go Go 1.16 embed instead of go-bindata 2021-07-13 18:04:25 -07:00
doodle.go Loading Screen 2021-07-18 21:19:52 -07:00
editor_scene_debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
editor_scene.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
editor_ui_doodad.go Embeddable Doodads In Levels 2021-06-13 14:59:03 -07:00
editor_ui_menubar.go Editor: Doodad Properties Window 2021-09-02 21:26:55 -07:00
editor_ui_palette.go Settings Window + Bugfix 2021-06-19 22:14:41 -07:00
editor_ui_popups.go Editor: Doodad Properties Window 2021-09-02 21:26:55 -07:00
editor_ui_toolbar.go Settings Window + Bugfix 2021-06-19 22:14:41 -07:00
editor_ui.go Editor: Doodad Properties Window 2021-09-02 21:26:55 -07:00
fps.go Collision Box Updates 2021-06-02 20:50:28 -07:00
guitest_scene.go The Window Manager Update 2020-04-06 23:21:17 -07:00
main_scene.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
menu_scene.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
play_inventory.go Doodads: Small Key Door + Bigger Crumbly Floor 2021-01-03 17:06:33 -08:00
play_scene.go Sort levels and doodads in the Open menu 2021-08-15 20:27:05 -07:00
scene.go Doodads: Crumbly Floor, Start Flag & State Blocks 2019-12-30 18:13:28 -08:00
shell.go Loading Screen 2021-07-18 21:19:52 -07:00
story_scene.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00