doodle/pkg
Noah 6af60f1128 Improve Collision Detection: More Active w/ Actors
* Improve the collision detection algorithm so that Actor OnCollide
  scripts get called more often WHILE an actor is moving, to prevent a
  fast-moving actor from zipping right through the "solid" hitbox and
  not giving the subject actor time to protest the movement.
* It's implemented by adding a `Settled` boolean to the OnCollide event
  object. When the game is testing out movement, Settled=false to give
  the actor a chance to say "I'm solid!" and have the moving party be
  stopped early.
* After all this is done, for any pair of actors still with overlapping
  hitboxes, OnCollide is called one last time with Settled=true. This is
  when the actor should run its actions (like publishing messages to
  other actors, changing state as in a trapdoor, etc.)
* The new collision detection algorithm works as follows:
  * Stage 1 is the same as before, all mobile actors are moved and
    tested against level geometry. They record their Original and New
    position during this phase.
  * Stage 2 is where we re-run that movement but ping actors being
    intersected each step of the way. We trace the steps between
    Original and New position, test OnCollide handler, and if it returns
    false we move the mobile actor to the Last Good Position along the
    trace.
  * Stage 3 we run the final OnCollide(Settled=true) to let actors run
    actions they wanted to for their collide handler, WITHOUT spamming
    those actions during Stage 2.
* This should now allow for tweaking of gravity speed and player speed
  without breaking all actor collision checking.
2019-07-16 21:07:38 -07:00
..
balance Improve Collision Detection: More Active w/ Actors 2019-07-16 21:07:38 -07:00
branding Minor Build Script Updates, Mac OS Support 2019-07-08 18:16:45 -07:00
collision Improve Collision Detection: More Active w/ Actors 2019-07-16 21:07:38 -07:00
doodads Update Doodad build-scripts to tag extra data 2019-07-06 23:50:38 -07:00
drawtool Better Ellipse Drawing Algorithm 2019-07-16 18:27:00 -07:00
enum Code Layout Refactor 2019-04-09 17:35:44 -07:00
filesystem Make Fire Deadly 2019-07-06 20:31:50 -07:00
level Lemon-shaped Ellipse Tool (WIP) 2019-07-14 14:18:44 -07:00
log Makefile Love and Windows Bugfixes 2019-06-27 20:24:13 -07:00
scripting Improve Collision Detection: More Active w/ Actors 2019-07-16 21:07:38 -07:00
shmem Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
sprites Add Tool Bar to Editor Mode 2019-07-03 20:24:04 -07:00
uix Improve Collision Detection: More Active w/ Actors 2019-07-16 21:07:38 -07:00
userdir Makefile Love and Windows Bugfixes 2019-06-27 20:24:13 -07:00
wallpaper Demo Running Level as Title Screen Wallpaper 2019-06-27 22:59:36 -07:00
wasm WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
commands.go Doodad CLI Tool Features; Write Lock and Hidden 2019-07-06 23:28:11 -07:00
config.go WASM: Store User Files in localStorage 2019-06-27 15:59:18 -07:00
doodle.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_scene.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_scene_debug.go Code Layout Refactor 2019-04-09 17:35:44 -07:00
editor_ui.go Doodad CLI Tool Features; Write Lock and Hidden 2019-07-06 23:28:11 -07:00
editor_ui_doodad.go Eraser Tool, Brush Sizes 2019-07-11 19:07:46 -07:00
editor_ui_palette.go Add More Trapdoor Doodads 2019-07-05 15:02:22 -07:00
editor_ui_toolbar.go Lemon-shaped Ellipse Tool (WIP) 2019-07-14 14:18:44 -07:00
fps.go Add MenuScene with New Level UI 2019-06-25 15:01:37 -07:00
guitest_scene.go Add Branding Module for Centralized Game Info 2019-06-23 17:52:48 -07:00
main_scene.go Make Fire Deadly 2019-07-06 20:31:50 -07:00
menu_scene.go Add Switches, Fire/Water Collision and Play Menu 2019-07-06 18:30:03 -07:00
play_scene.go Update Doodad build-scripts to tag extra data 2019-07-06 23:50:38 -07:00
scene.go Port over code from old collision dev PR 2019-04-09 19:17:56 -07:00
shell.go Centralized Tick Counter, Fix Actor Dragging Bug 2019-07-05 16:04:36 -07:00