Viktor Lidholt
32359d4b62
Refactors Sprite class to use SpritePaint mix-in for setting paint properties
2015-08-10 12:36:08 -07:00
Ian Fischer
d44ed7dfc3
Move example out of sky/packages to //examples
2015-08-07 17:04:50 -07:00
Ian Fischer
82404e030a
Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277.
...
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1218593002 .
2015-06-26 15:06:40 -07:00
Viktor Lidholt
2e32c6721d
Adds support for rotated textures
...
Adds documentation to Texture and SpriteSheet
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1212073002 .
2015-06-25 13:13:33 -07:00
Ian Fischer
82d1eb2fdb
Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia counterparts.
...
Also changes the framework dart code to use the
refactored APIs and fixes the various examples and
tests.
R=abarth@chromium.org , ianh@chromium.org
Review URL: https://codereview.chromium.org/1190123003 .
2015-06-24 10:21:45 -07:00
Viktor Lidholt
9b1985c237
Adds basic sprite sheet support to sprites
...
Adds drawImageRect to Canvas bindings
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1204783003 .
2015-06-23 16:38:28 -07:00
Viktor Lidholt
639e47bd7f
Adds API documentation, improves the API names, and cleans up code.
...
R=ianh@google.com
Review URL: https://codereview.chromium.org/1201983004 .
2015-06-22 10:13:23 -07:00
Viktor Lidholt
627aeff31a
Optimizes sprite transformations for box to node
...
Enabling/disabling of handling multiple pointers
Adds basic touch handling
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1179413009 .
2015-06-18 15:29:26 -07:00
Adam Barth
8e5245c9a1
Implement ColorFilter in widgets/basic.dart
...
Also, trim the redundant |Mode| suffix from the TransferMode names.
R=ianh@google.com
Review URL: https://codereview.chromium.org/1188003006 .
2015-06-17 17:06:27 -07:00
Viktor Lidholt
6c7a619f99
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
Matt Perry
cc5fde4e61
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
7357aa443b
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
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