Skip to content

Instantly share code, notes, and snippets.

@mwchase
mwchase / Default.sublime-keymap
Last active February 23, 2021 18:52
Better reindenting for Sublime Text
// Excerpt
{ "keys": ["tab"], "command": "sane_reindent", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
]
}
Green*
Yellow
Red
@mwchase
mwchase / SketchSystems.spec
Created October 31, 2018 00:37
Platform Collisions
Platform Collisions
## So, suppose we have a platformer character with one-way platforms, cancelable wall slides
On A Platform
## To jump, set the vertical velocity to JUMP_STAR
jump -> Going Up
walk off edge -> Falling
Airborne
collide with wall? -> Wallslide
Going Up
reach apex? -> Falling
@mwchase
mwchase / SketchSystems.spec
Last active July 11, 2018 22:23
## So, suppose we have a platformer character with one-way platforms, cancelable wall slides
## So, suppose we have a platformer character with one-way platforms, cancelable wall slides
Platform Collisions
On A Platform
## To jump, set the vertical velocity to JUMP_START
jump -> Going Up
walk off edge -> Falling
Airborne
collide with wall? -> Wallslide
Going Up