Commit Graph

247 Commits

Author SHA1 Message Date
cha0s
b1d1841fab fix: entity trait property removal 2019-04-18 20:44:33 -05:00
cha0s
0952ffbd0e perf: cool off visibleEntities 2019-04-16 23:59:08 -05:00
cha0s
981d483349 perf: Track dirty entity state 2019-04-16 23:44:03 -05:00
cha0s
e63766b045 refactor: Synchronized is a mixin 2019-04-16 17:52:56 -05:00
cha0s
81a6ecf5c4 feat: trait state dirty optimization 2019-04-16 17:41:17 -05:00
cha0s
d5e35341dd refactor: byebye TraitProxy 2019-04-16 16:40:20 -05:00
cha0s
570054c610 fix: visibleBoundingBox optimizations 2019-04-16 13:30:15 -05:00
cha0s
c9260a2cca refactor: optimize visibleBoundingBox 2019-04-16 09:26:01 -05:00
cha0s
54470b0627 refactor: the great trait splittening 2019-04-14 20:21:52 -05:00
cha0s
6de939f4dc refactor: new trait source pattern 2019-04-14 20:10:13 -05:00
cha0s
4f366ab39a refactor: Graphical -> Visible 2019-04-14 18:42:13 -05:00
cha0s
459b81f76b fix: graphical may have already died 2019-04-14 16:09:41 -05:00
cha0s
812de824db fix: more robust Physical destroy 2019-04-14 16:07:31 -05:00
cha0s
883837006f fix: if not addedToPhysics on destroy body will be undefined 2019-04-14 16:06:11 -05:00
cha0s
5a8940e922 chore: restructure 2019-04-13 20:53:02 -05:00
cha0s
c2b2196018 feat: EntityListView 2019-04-13 20:48:52 -05:00
cha0s
4963808ad7 refactor: use receiver for most events 2019-04-12 18:58:38 -05:00
cha0s
e16e969170 refactor: StateProperty optimizations 2019-04-12 17:21:43 -05:00
cha0s
c55ac68ed7 refactor Vector.mixin 2019-04-12 16:30:22 -05:00
cha0s
2817300800 refactor: check trait 2019-04-12 15:53:44 -05:00
cha0s
f27e303f5a refactor: take heat off of TraitProxy 2019-04-12 14:14:03 -05:00
cha0s
037e130006 chore: dead code 2019-04-12 14:02:49 -05:00
cha0s
400b2ebb7d refactor: immutable optimizations 2019-04-12 13:18:34 -05:00
cha0s
bf18ae019a refactor: faster list tick and full state flush 2019-04-12 13:12:11 -05:00
cha0s
a4549daef6 refactor: take some heat off entity tick 2019-04-12 13:05:30 -05:00
cha0s
f686ce4b14 refactor: snappier lerp 2019-04-12 12:37:02 -05:00
cha0s
9353a91012 refactor: ticking change snaps position 2019-04-12 12:27:32 -05:00
cha0s
4234a3a3be feat: primitive position interpolation 2019-04-12 09:48:43 -05:00
cha0s
2d2eb62073 fix: isVisible is state not param 2019-04-12 00:36:30 -05:00
cha0s
768506c26e refactor: toggle ticking, visible, and physics 2019-04-11 23:49:37 -05:00
cha0s
80409e38fd chore: remove rounded position 2019-04-11 12:20:24 -05:00
cha0s
1157634200 refactor: use rounded entity position for display 2019-04-11 08:00:46 -05:00
cha0s
47d22e71e9 fix: update camera position in band 2019-04-11 08:00:17 -05:00
cha0s
c2d094fe2b fix: sync graphical position on tick 2019-04-11 07:38:28 -05:00
cha0s
6f95f71163 chore: small opt 2019-04-11 06:49:49 -05:00
cha0s
c6f0e737c7 feat: pack location into integers 2019-04-10 21:02:42 -05:00
cha0s
e5e0810c31 refactor: clamp graphical container to pixels 2019-04-10 21:02:15 -05:00
cha0s
d66efaeb1f feat: trait state patching transformation 2019-04-10 21:01:58 -05:00
cha0s
7b7d133acb refactor: current animation frame not sync'd 2019-04-09 16:59:01 -04:00
cha0s
50110fe42f feat: Behaved 2019-04-09 10:42:40 -04:00
cha0s
06c054f9f6 feat moveFor, for testing 2019-04-09 10:22:41 -04:00
cha0s
b227b69855 feat: Collider 2019-04-08 16:20:28 -04:00
cha0s
8bdd0f27b6 refactor: Shaped 2019-04-08 14:32:40 -04:00
cha0s
b41118953f refactor: new step logic 2019-04-07 15:34:42 -04:00
cha0s
9708de0877 chore: simplify 2019-04-07 13:18:20 -04:00
cha0s
71a215c8a6 chore: _PRIVATE removed 2019-04-07 13:00:11 -04:00
cha0s
7de34a7669 chore: format 2019-04-07 12:51:28 -04:00
cha0s
7529e7cee0 feat: Synchronized 2019-04-07 12:43:50 -04:00
cha0s
dcd61c29d4 refactor: DRY 2019-04-07 00:19:47 -04:00
cha0s
6eb7d6bad9 refactor: state update 2019-04-05 23:14:29 -04:00
cha0s
8f3a8d9513 chore: acceptStateChange -> patchState 2019-04-05 16:16:55 -04:00
cha0s
f2b9c90948 fix: traits always use Immutable params and state 2019-04-05 12:54:25 -04:00
cha0s
f404d5ab02 fix: room passed to removedFromRoom 2019-04-05 12:25:26 -04:00
cha0s
bc3762a3bf feat: followed 2019-04-05 12:25:16 -04:00
cha0s
a314e03a9e chore: deps 2019-03-28 12:56:42 -05:00
cha0s
0bb3a05f8d refactor: ShapeView owned by physics 2019-03-28 02:39:04 -05:00
cha0s
b042e1b1c0 refactor: "hypotenuse" is normalization 2019-03-27 17:53:18 -05:00
cha0s
a4d10904af feat: findEntity 2019-03-27 17:36:57 -05:00
cha0s
771b6e6583 refactor: decorate empty class > [Class]Base 2019-03-27 16:18:27 -05:00
cha0s
71ff55c1a7 refactor: room world property 2019-03-27 16:11:37 -05:00
cha0s
e50f4e9f1a chore: dead code 2019-03-27 15:18:33 -05:00
cha0s
e3d0ca626e refactor: physics on room not list now 2019-03-27 01:49:48 -05:00
cha0s
222a0247b3 refactor: cleans, checks, searching moved to list 2019-03-27 01:49:34 -05:00
cha0s
9a1b19c00b refactor: quadTree name simplify and searching 2019-03-27 01:47:38 -05:00
cha0s
5616f3275b feat: layered and roomed 2019-03-27 01:03:05 -05:00
cha0s
91dccd9329 refactor: entity.state getter 2019-03-27 01:02:16 -05:00
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
da1ae31f44 refactor: state getter 2019-03-26 15:41:49 -05:00
cha0s
b9a963d2f1 feat: BodyView 2019-03-24 19:11:45 -05:00
cha0s
7d2037d870 feat: real (Matter.js) physics :) 2019-03-24 03:24:35 -05:00
cha0s
f3d8f55689 refactor: Abstract physics 2019-03-24 01:16:24 -05:00
cha0s
23c7a77e5b refactor: simpleState -> StateProperty 2019-03-23 23:24:18 -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
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
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
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
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
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
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
6a791b4dc6 chore: add quadtree 2019-03-20 01:08:51 -05:00
cha0s
c0fd9ad546 feat: entity z-sorting 2019-03-19 21:27:41 -05:00
cha0s
7902311131 feat: animation offset 2019-03-19 21:11:04 -05:00
cha0s
6e0b192671 refactor: animation swapping helpers 2019-03-19 20:58:19 -05:00
cha0s
3b0efe4e9b refactor: restructure traits, no autoregister 2019-03-19 19:52:00 -05:00
cha0s
72459bc0a9 refactor: animated trait uses Animation 2019-03-19 18:06:08 -05:00
cha0s
53f9b10eee fix: positionChanged arg order 2019-03-19 18:02:45 -05:00
cha0s
97ad01b426 chore: use container 2019-03-19 11:59:47 -05:00
cha0s
1969657651 chore: early out 2019-03-19 11:48:46 -05:00
cha0s
fb19cdfc69 refactor: frame rect calc 2019-03-19 11:29:07 -05:00
cha0s
2952e4edf4 refactor: always use Trait::initialize 2019-03-19 11:25:42 -05:00
cha0s
3b50c134d0 refactor: Trait::initialize before hooks, actions, and listeners 2019-03-19 11:21:52 -05:00
cha0s
5e8805fde1 refactor: Trait::initialize 2019-03-19 11:12:28 -05:00
cha0s
f6145f99f1 chore: dead code removal 2019-03-19 11:10:29 -05:00
cha0s
fbc0ab5583 refactor: sync position after initialization 2019-03-19 11:10:03 -05:00
cha0s
80d808a921 feat: Trait::hasInitialized 2019-03-19 11:09:41 -05:00
cha0s
ef1dbbe5b5 refactor: container position sync 2019-03-19 11:03:48 -05:00
cha0s
fc2d873809 fix: x/y changes should emit positionChanged 2019-03-19 11:02:38 -05:00
cha0s
b4e6ed7c77 chore: tidy 2019-03-19 10:52:09 -05:00
cha0s
8602b0e81d chore: dead code 2019-03-19 10:51:08 -05:00
cha0s
83e50210ed fix: skip empty image load 2019-03-19 10:46:20 -05:00
cha0s
8299973c7b refactor: hasGraphics, conditional entity container 2019-03-19 10:45:19 -05:00
cha0s
4a4a624d9e chore: clean up animated frameRect calc 2019-03-19 10:22:35 -05:00
cha0s
654a9b4dd8 chore: clean up listener creation 2019-03-19 10:21:00 -05:00
cha0s
d250d94f3b feat: explicit directional movement tracking 2019-03-19 10:20:49 -05:00
cha0s
1afc3609e4 chore: standards 2019-03-19 10:19:38 -05:00
cha0s
3b55648f60 feat: track position change 2019-03-19 10:19:23 -05:00
cha0s
701623ea31 refactor: trait params and state passed as args, Trait::fromJSON removed 2019-03-19 10:02:18 -05:00
cha0s
b9cbccede8 feat: Animated trait 2019-03-18 22:20:03 -05:00
cha0s
5b0e8092d2 featL synchronize params and state 2019-03-18 21:22:54 -05:00
cha0s
9e74aaf7e7 feat: graphical trait 2019-03-18 20:07:20 -05:00
cha0s
efce6ce42d feat: traitAdded event on Traits 2019-03-18 20:05:41 -05:00
cha0s
2298d65cd3 feat: track direction 2019-03-18 20:05:11 -05:00
cha0s
73a91efbeb feat: track position 2019-03-18 20:05:00 -05:00
cha0s
77ec2a3c04 refactor: simpleState now uses Property 2019-03-18 20:04:12 -05:00
cha0s
c1e7db9ebf feat: more intelligent trait state merging 2019-03-18 20:03:30 -05:00
cha0s
a014a59e20 refactor: listener responsibility removed from trait instance 2019-03-18 20:02:57 -05:00
cha0s
101b443316 feat: events for add/remove entity in list 2019-03-18 19:58:22 -05:00
cha0s
22fe6261b8 chore: initial 2019-03-17 23:45:48 -05:00