Matt Perry
a523d7f3ea
Fix up constructor naming style for MaskFilter and ColorFilter.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1179913002 .
2015-06-11 13:15:20 -04:00
Viktor Lidholt
dcb0fa4312
Adds hit tests and transformations between coordinate systems in sprites
...
Sprite nodes use Point instead of Vector2
Updates sprite test app
Refactors accounting for pivot points in sprites
Adds abstract NodeWithSize class in Sprites.
Refactors SpriteNode to Sprite
Refactors TransformNode to Node (may need to find another name as it conflicts with Sky's Node).
Sprite system now uses and caches transformation matrices.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1180703002 .
2015-06-11 08:44:22 -07:00
Adam Barth
ac7f2ff860
Ink splashes should start at the touch point
...
Previously, they always started at the center of the RenderInkWell. Now we
remember the local coordinates we computed during the hit test and provide that
information when handling the event.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1180553002 .
2015-06-10 13:55:20 -07:00
Viktor Lidholt
3260d9988d
Adds support for zOrder and references to parent nodes in sprites, also start of new test app.
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1177563004 .
2015-06-10 09:21:01 -07:00
Matt Perry
5a0b18490f
Change the ColorFilter constructor to ColorFilter.Mode, in case we want to add
...
more ColorFilter types.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1163373007 .
2015-06-09 14:55:52 -04:00
Hixie
37f0b0240b
Convert everything in the Sky API from degrees to radians.
...
Radians are the one true angle unit.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1164393002
2015-06-08 14:38:06 -07:00
Viktor Lidholt
824a66399e
Adds a spaceship and (somewhat crappy) controls to the example game.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1151793003
2015-06-04 17:14:46 -07:00
Hixie
b7c588661c
Rename "BorderSide.None" to "BorderSide.none", since it's a constant, and change the sky.Size.infinite() constructor to a constant.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1158263005
2015-06-04 16:17:20 -07:00
Eric Seidel
7ebb281c5c
Fix examples/game to work after Hixie's grand rename.
...
TBR=viktorl@google.com
Review URL: https://codereview.chromium.org/1158273009
2015-06-04 15:25:46 -07:00
Viktor Lidholt
3b06e1e1f7
Adds support for transfer mode in Paint and SpriteNode classes. Adds support for opacity in sprites, and modifies example game.
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1164633004
2015-06-04 11:14:07 -07:00
Adam Barth
9bdb39d0ec
Fix build after hixie's rename
...
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1164073002
2015-06-04 10:49:05 -07:00
Adam Barth
e99c880bc2
Fix gesture events in fn2
...
This CL makes gesture events work again in fn2.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1146923005
2015-06-03 16:06:15 -07:00
Viktor Lidholt
006da931cf
Sky example game enhancements, adds preloading of images and adds transform modes to SpriteBox
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1149183004
2015-06-03 15:05:55 -07:00
Viktor Lidholt
3118a6fba1
Initial version of working game with Box2D, images, nodes and sprites.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1161023006
2015-06-02 15:09:01 -07:00