Viktor Lidholt
5dc39bace7
Updates game for new AppView API
...
Deletes old test game
Demo game is now playable
Updates demo game with steering and changes in sprites
Fixes smaller bugs in sprites
Refactor class names in game demo
Strips Box2D from game
Fixes ordering in game node
Adds frameRate property to SpriteBox and improves update methods.
Fixes node to box transformations for hit tests
Fixes minor code issues
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1179333002 .
2015-06-15 09:11:16 -07:00
Adam Barth
219ead3718
Rename all the things
...
This CL moves the bulk of the SkyView code out of the |framework| directory
because the |framework| directory was redundant in Dart package import
declarations.
TBR=ianh@google.com
Review URL: https://codereview.chromium.org/1177383006 .
2015-06-13 09:46:52 -07:00
Matt Perry
502430f988
Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB".
...
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1184523002 .
2015-06-11 15:59:10 -04:00
Matt Perry
583b126b57
Remove redundant Paint.setARGB in favor of assigning to Paint.color.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1182563002 .
2015-06-11 15:43:53 -04:00
Matt Perry
c9dd71253c
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
96846207db
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
df472efd57
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
09172e8831
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
aa80a91279
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
44ad012a65
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
b91b750436
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
96aadc99b4
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
59f352c735
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
2d8240aa75
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
05c7ca6bef
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
16f8b21601
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
ef070b2cfb
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
109271ea62
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