48 Commits

Author SHA1 Message Date
Chinmay Garde
c87a7c6863 Specify a default launch screen for iOS Asteroids 2015-07-29 15:05:00 -07:00
Viktor Lidholt
cede2b1b5b Adds delay between game over and return to main screen in demo game 2015-07-29 13:54:30 -07:00
Eric Seidel
b9c56a294e Add more logging for the NetworkService unavailable case
TBR=abarth@google.com
2015-07-29 13:41:34 -07:00
Viktor Lidholt
c2356a09de Refactors setting of last score in demo game to use callback 2015-07-29 13:33:17 -07:00
Viktor Lidholt
07522f9f5a Adds display of last score to demo game 2015-07-29 13:33:17 -07:00
Chinmay Garde
944fecffab Add launcher icons and update display name for Asteroids on iOS 2015-07-29 13:11:48 -07:00
Viktor Lidholt
1f5e492ddd Merge pull request #353 from vlidholt/master
Fixes analyzer warnings in SpriteBox
2015-07-29 13:07:52 -07:00
Viktor Lidholt
c933f2ce5a Fixes analyzer warnings in SpriteBox 2015-07-29 12:31:02 -07:00
Chinmay Garde
a2d13124de Merge pull request #349 from abarth/vsync_provider
Drive frames from the vsync provider on Android
2015-07-29 09:59:59 -07:00
Viktor Lidholt
e73f94e225 Merge pull request #346 from vlidholt/master
Adds star field to game start screen
2015-07-29 07:34:53 -07:00
Adam Barth
f81d96e1dd Drive frames from the vsync provider on Android
Instead of using back pressure from swap buffers to drive the engine, this
patch using the vsync signal from the Android framework. We still respect
back pressure from swap buffers if we get too far ahead.
2015-07-28 22:32:36 -07:00
Viktor Lidholt
acececc43f Adds star field to game start screen 2015-07-28 17:34:39 -07:00
Viktor Lidholt
306ba1c5cb Merge pull request #345 from vlidholt/master
Fixes analyzer warnings in sprites
2015-07-28 17:34:02 -07:00
Viktor Lidholt
1ace7181ed Fixes compilation error in demo game and adds auto scrolling star field 2015-07-28 17:21:06 -07:00
Viktor Lidholt
248fc1c4e2 Fixes compilation errors in sprites 2015-07-28 17:19:56 -07:00
Adam Barth
25fcb18cb0 Merge pull request #343 from abarth/fix_analyzer
Fix analyzer warnings
2015-07-28 17:06:11 -07:00
Adam Barth
b4db5ee64d Fix analyzer warnings 2015-07-28 17:05:30 -07:00
Hans Muller
94132e779e Animated selected tab indicator 2015-07-28 17:01:15 -07:00
Matt Perry
82c13d7ee0 Merge remote-tracking branch 'upstream/master' into performance 2015-07-28 17:23:42 -04:00
Matt Perry
f676d29b85 Add an AnimationStatus to AnimationPerformance, and use that in Drawer,
SnackBar, and PopupMenu instead of custom statuses.
2015-07-28 17:23:27 -04:00
Adam Barth
88afbedc0f Merge pull request #328 from abarth/schedule_build
Move build() off microtasks
2015-07-28 14:06:01 -07:00
Adam Barth
f167c43ef0 Move build() off microtasks
Rather than using a microtask to schedule component build functions, instead
use the scheduler. We now tread building just like layout and painting as a
visual update.
2015-07-28 14:05:21 -07:00
Chinmay Garde
9a4423b059 Move the game Info.plist to the packages directory 2015-07-28 13:32:53 -07:00
Chinmay Garde
64e29f79ef Load SkyX files on iOS where available 2015-07-28 13:27:46 -07:00
Viktor Lidholt
65e85d5312 Updates startled in game demo to use drawAtlas 2015-07-28 12:49:36 -07:00
Viktor Lidholt
63fe297d50 Merge pull request #315 from vlidholt/master
Optimizations for sprite code
2015-07-28 12:06:38 -07:00
Matt Perry
a079f3adf2 Refactor AnimationContainer to support drop-in Intentions.
This lets us be flexible in how to animate the properties of the container.
Currently used by SnackBar with a SlideIn intention.
2015-07-28 14:12:17 -04:00
Hans Muller
c0d7ed0be4 When the selected tab changes in a TabBar for which isScrollable:true, animate the selected tab to the center of the viewport, if that's possible.
Added an optional duration: to Scrollable.scrollTo(newOffset, duration: d) which animates the scroll to newOffset.

Refactored the Scrollable implementation a little to make the roles of the "toEnd" and "toOffset" animations clearer.

_handlePointerDown() now stops both animations.

Similarly, we only call settleScrollOffset() from the cancel gesture handlers if the animations aren't already running.
2015-07-28 10:23:34 -07:00
Viktor Lidholt
d9ed5494ee Optimizes sprite performance by minimizing the number of calls to action controllers 2015-07-28 10:16:16 -07:00
Viktor Lidholt
cb5a2e1751 Optimizes sprite performance by reusing Paint objects 2015-07-28 10:16:15 -07:00
Viktor Lidholt
a3649e6a13 Optimizes sprites by replacing save/restore by caching the total matrix 2015-07-28 10:16:14 -07:00
Adam Barth
eb8329455a Move sky package into sky/packages/sky
This patch makes the sky package match the structure we've adopted for the
other Dart packages we produce from this repo.
2015-07-28 08:42:57 -07:00
Adam Barth
8fac8efa1f Run sky:init before creating a snapshot
If we've never run sky:init before, the mojom package will be empty and the
snapshot will fail.
2015-07-27 19:47:25 -07:00
Adam Barth
32a881e346 Remove DEPS-managed Dart packages
We now use `pub` to manage Dart packages.
2015-07-27 16:54:30 -07:00
Adam Barth
fa5326a3a3 Break the dependency on Go-based sky_server
We now use the Dart sky_server in shelldb.
2015-07-27 15:38:42 -07:00
Adam Barth
d5c77c60a7 Teach gclient to run pub in more directories
At gclient sync time, we now run `pub get` for every Dart package except
`workbench`. This patch ensures that we have all the packages we need locally.
2015-07-27 14:54:09 -07:00
Adam Barth
f737c1dcbc Merge pull request #297 from abarth/network_nits
Cleanups to network service
2015-07-27 14:04:08 -07:00
Adam Barth
a06a3b2f18 Cleanups to network service
This patch contains some minor improvements to the network service:

- We now cache the connection to the network service so we don't need to spin
  it up for each request.
- We now manage the lifetime of NetworkServiceImpl in the same way as other
  services.

Also, update the workbench sky_tools dependency to the latest version.
2015-07-27 13:50:42 -07:00
Adam Barth
d59e4115e6 Teach big_red_button how to publish sky, sky_engine, sky_services
This CL makess big_red_button.py work for the sky, sky_engine, sky_services
packages.
2015-07-27 12:21:33 -07:00
Adam Barth
d566b71be6 Rev Sky package 2015-07-27 09:13:01 -07:00
Adam Barth
96781ddbf2 Update version for material_design_icons 2015-07-27 08:25:40 -07:00
Adam Barth
e8c3ceb7da Create //sky/packages/workbench
The workbench package exists to pull in pub packages from both pub.dartlang.org
and from the source tree (using dependency overrides). The idea is that
workbench will reflect a typical Sky developer's environment so that we can use
the same tools as a typical sky developer by running them with the workbench as
the cwd.
2015-07-23 22:20:07 -07:00
Eric Seidel
af454168fc Fix material_design_icons
TBR=abarth@google.com
2015-07-23 17:35:43 -07:00
Adam Barth
62005770f8 Remove the magic from the Sky package
We now just symlink the lib directory into the packages directory in the output
directory.
2015-07-23 16:52:32 -07:00
Adam Barth
267410cb83 Symlink Material Design Icons into Dart packages in the out dir
Otherwise they won't be visible to the web server.
2015-07-23 16:34:11 -07:00
Adam Barth
45be398801 Add sky_services pub package
This package contains the mojom.dart files we generate from the sky_engine
repository.
2015-07-23 15:51:37 -07:00
Adam Barth
47a582b794 Move Material Design Icons to their own package
After this patch, we use pub to manage versioning and fetching the material
design icons.
2015-07-23 14:54:59 -07:00
Adam Barth
b091dfbba9 Add a sky_engine package to contain the dart:sky SDK extensions 2015-07-23 14:17:35 -07:00