Commit Graph

203 Commits

Author SHA1 Message Date
cha0s
906997eeee feat: Rectangle.toPoints 2019-03-26 17:21:16 -05:00
cha0s
b8b1b98580 refactor: graphicalBoundingBox 2019-03-26 17:17:09 -05:00
cha0s
43dec37764 feat: Room 2019-03-26 17:04:52 -05:00
cha0s
90a5bed2a8 feat: layer state 2019-03-26 17:04:44 -05:00
cha0s
da1ae31f44 refactor: state getter 2019-03-26 15:41:49 -05:00
cha0s
3b021ab349 refactor: distinct layer container 2019-03-26 09:30:25 -05:00
cha0s
750730eda6 feat: layer & layerView 2019-03-25 23:39:44 -05:00
cha0s
af143670cc refactor: better render defaults 2019-03-25 23:39:07 -05:00
cha0s
26fa5e4589 refactor: tileset 2019-03-25 23:05:22 -05:00
cha0s
77042bfa8c feat: toJSON impl 2019-03-25 20:50:11 -05:00
cha0s
d02b5ccced refactor: only using width 2019-03-25 20:49:57 -05:00
cha0s
1fff0cdb16 refactor: efficiency 2019-03-25 20:49:42 -05:00
cha0s
742228ec3f feat: setTileAt 2019-03-25 20:49:16 -05:00
cha0s
0c2c9d53a9 Canvas::[renderWith -> render] 2019-03-25 20:27:07 -05:00
cha0s
b03abf5907 refactor: simpification & semantics 2019-03-25 20:26:37 -05:00
cha0s
b6688ff2bb fix: deprecation 2019-03-25 20:25:33 -05:00
cha0s
fd1c905351 refactor: semantics 2019-03-25 20:25:19 -05:00
cha0s
ad99cd3f3f feat: topdown 2019-03-25 19:03:34 -05:00
cha0s
d5356d8186 feat: Scaling 2019-03-25 19:02:30 -05:00
cha0s
58cebcd827 feat: Renderable::scale 2019-03-25 18:55:06 -05:00
cha0s
3d670c6189 fix: delete internal, no setter 2019-03-25 18:54:54 -05:00
cha0s
e1fe932495 fix: webgl 2019-03-25 18:54:09 -05:00
cha0s
b29911fbd1 feat: Image::subimage 2019-03-25 18:53:34 -05:00
cha0s
5377617dfc fix: can't even remember my own APIs 2019-03-25 11:54:20 -05:00
cha0s
3d79aafce5 feat: sprite destroy 2019-03-25 10:23:05 -05:00
cha0s
52a4c43059 refactor: more semantic graphics internals 2019-03-25 10:18:41 -05:00
cha0s
11d6337db5 feat: render to canvas 2019-03-25 10:14:55 -05:00
cha0s
b9a963d2f1 feat: BodyView 2019-03-24 19:11:45 -05:00
cha0s
12f87bd29d chore: matter body aabb 2019-03-24 18:58:26 -05:00
cha0s
3023489d91 chore: thicc'er lines 2019-03-24 18:58:13 -05:00
cha0s
977ac77a9d fix: matter wasn't removing the internal body 2019-03-24 18:30:22 -05:00
cha0s
fe229de317 refactor: sort containers by index if zIndex is equivalent (stable) 2019-03-24 04:04:39 -05:00
cha0s
92f4f4a2d1 refactor: use equalsClose for position juggling 2019-03-24 04:03:15 -05:00
cha0s
957b4c8a15 feat: Vector.equalsClose 2019-03-24 04:02:42 -05:00
cha0s
7d2037d870 feat: real (Matter.js) physics :) 2019-03-24 03:24:35 -05:00
cha0s
ea9c116c7f fix: ShapeList type 2019-03-24 01:46:53 -05:00
cha0s
f3d8f55689 refactor: Abstract physics 2019-03-24 01:16:24 -05:00
cha0s
5bdff7ce71 feat: virtualizedStatic 2019-03-24 01:16:04 -05:00
cha0s
e0319c0d2f refactor: physics restructuring 2019-03-24 00:46:31 -05:00
cha0s
caf69e3333 refactor: decouple entity from body 2019-03-24 00:43:07 -05:00
cha0s
23c7a77e5b refactor: simpleState -> StateProperty 2019-03-23 23:24:18 -05:00
cha0s
87d345177b feat: resolving now tries to preserve one axe of translation 2019-03-23 23:07:01 -05:00
cha0s
9bd0566a1f refactor: Trait::destroy upfront to avoid surprises 2019-03-23 23:06:22 -05:00
cha0s
78bc85be49 refactor: unnecessary lookup 2019-03-23 23:06:01 -05:00
cha0s
49b36dabe6 fix: isTouching was broked 2019-03-23 22:36:24 -05:00
cha0s
8418665892 refactor: eliminate redundant collision checks 2019-03-23 20:19:43 -05:00
cha0s
0ea3e0f6c5 fix: physics collision detection 2019-03-23 20:08:49 -05:00
cha0s
f745c61ab0 chore: formatting 2019-03-23 20:04:59 -05:00
cha0s
151ca214e0 refactor: Entity::[hasTrait -> is] 2019-03-23 18:49:19 -05:00
cha0s
f123d12624 feat: physics++ 2019-03-23 18:46:55 -05:00
cha0s
4c8956457f fix: EventEmitter mixin wasn't forwarding args 2019-03-23 18:26:07 -05:00
cha0s
6ab1c36980 feat: arrayUnique 2019-03-22 14:46:01 -05:00
cha0s
b361082de2 refactor: precision++ 2019-03-22 14:29:38 -05:00
cha0s
1098725636 feat: Physical 2019-03-22 13:16:07 -05:00
cha0s
6c26e87840 feat: ShapeView 2019-03-22 13:15:57 -05:00
cha0s
d9cf9257c1 fix: typo 2019-03-22 13:15:41 -05:00
cha0s
a21b3d6934 feat: vertice iterator 2019-03-22 13:15:28 -05:00
cha0s
d64ec2d10c feat: physics 2019-03-22 11:25:20 -05:00
cha0s
31efc515c3 feat: vertice operations 2019-03-22 11:25:06 -05:00
cha0s
af373189a6 refactor: es6 getter/setter 2019-03-22 11:24:50 -05:00
cha0s
3c09ab3f82 refactor: cartesianDistance -> magnitude 2019-03-22 11:24:07 -05:00
cha0s
3566640678 feat: Vector.angle 2019-03-22 11:23:55 -05:00
cha0s
c6e14e5eb8 fix: vectorKey 2019-03-22 11:23:12 -05:00
cha0s
ab689beee9 refactor: safer fromJSON 2019-03-21 23:40:03 -05:00
cha0s
07491fabdf refactor: use Vector.mixin 2019-03-21 23:39:46 -05:00
cha0s
14d07c195c fix: vector mixin was broked 2019-03-21 23:39:09 -05:00
cha0s
0de58ff338 refactor: Vector mixin 2019-03-21 23:13:46 -05:00
cha0s
25809f5b31 fix: prune duplicate entity results from quad tree 2019-03-21 20:13:53 -05:00
cha0s
bb02bed6a5 refactor: Listed handles quadtree nodes, 4 points for bounds 2019-03-21 20:07:32 -05:00
cha0s
006b9a742e chore: dead code 2019-03-21 18:41:46 -05:00
cha0s
4e5c4abe8c fix: map uuid before adding entity 2019-03-21 18:30:44 -05:00
cha0s
e31d7be41a EntityList::destroy 2019-03-21 01:32:49 -05:00
cha0s
10be72e6fa fix: this animation 2019-03-21 01:32:39 -05:00
cha0s
fd24ca6c7c refactor: better interface 2019-03-21 01:14:24 -05:00
cha0s
4da1b827d5 feat: custom entity list locator 2019-03-21 00:41:25 -05:00
cha0s
f2dba0a801 refactor: no nasty params 2019-03-21 00:36:06 -05:00
cha0s
6d169ad5f4 chore: not abstract enough 2019-03-21 00:31:27 -05:00
cha0s
880f428f3a refactor: more sensible traitAdded interface 2019-03-21 00:15:15 -05:00
cha0s
01b5598379 chore: open it, close it 2019-03-21 00:09:17 -05:00
cha0s
188008fbc2 chore: if you open it, close it 2019-03-20 23:23:34 -05:00
cha0s
119edf2e47 chore: remove old junk 2019-03-20 23:02:42 -05:00
cha0s
03dcc84ca0 fix: addTrait default to empty json 2019-03-20 23:00:42 -05:00
cha0s
30e286b68c refactor: calculate offsets upfront 2019-03-20 21:58:14 -05:00
cha0s
5a5169bf34 feat: uuidMapping exposure 2019-03-20 21:07:57 -05:00
cha0s
76a444f233 feat: Controllable 2019-03-20 21:07:47 -05:00
cha0s
103b6d4899 feat: Pictured 2019-03-20 20:15:04 -05:00
cha0s
c92ca306b4 chore: formatting 2019-03-20 19:49:03 -05:00
cha0s
4e54e474f9 chore: remove dead 2019-03-20 19:48:31 -05:00
cha0s
412f65cae1 chore: whitespace 2019-03-20 19:31:35 -05:00
cha0s
e74922fb2a fix: Animated wasn't setting animations' direction upfront 2019-03-20 19:23:32 -05:00
cha0s
3f3903c882 feat: Listed trait 2019-03-20 18:35:33 -05:00
cha0s
2872f729ff feat: EntityList QuadTree 2019-03-20 18:35:19 -05:00
cha0s
482c5db374 refactor: QuadTree moved to math 2019-03-20 18:34:13 -05:00
cha0s
2da9d73525 feat: QuadTree 2019-03-20 18:33:59 -05:00
cha0s
d4951fd641 refactor: synchronizer in its own file 2019-03-20 18:33:13 -05:00
cha0s
8f7e8bb5f0 refactor: trait actions -> methods 2019-03-20 18:32:54 -05:00
cha0s
d257ea4161 feat: Entity::hasTrait 2019-03-20 18:27:06 -05:00
cha0s
cc95512f39 feat: cache resources 2019-03-20 18:26:55 -05:00
cha0s
6a791b4dc6 chore: add quadtree 2019-03-20 01:08:51 -05:00
cha0s
f2b056f4e4 refactor: self-contained base texture cache 2019-03-20 00:25:18 -05:00