76 Commits

Author SHA1 Message Date
Adam Barth
3dbef8ac26 SkySprites should import the public libraries
Importing the public libraries caused a name conflict with dart:sky because we
assume people will import dart:sky into a namespace, so I've also changed
skysprites to import dart:sky into a namespace.
2015-09-18 11:19:39 -07:00
Adam Barth
9cef3e61e9 Move theme into material.dart
Also, introduce Colors and Typography to hold the material colors and the
typography declarations. Previously we expected clients of these libraries to
import them into a namespace, but that doesn't play nice with re-exporting them
from material.dart.
2015-09-18 09:57:21 -07:00
Adam Barth
0cc094288e Move mojo frontend into services.dart
What's important about this code is that it's presenting services outside the
VM, not the particular technology used to present the services.
2015-09-16 19:13:50 -07:00
Adam Barth
b0719a47b6 Remove use of some deprecated functions on sky.Paint
We now expose idiomatic setters for these properties. Eventually we'll remove
the setter functions.
2015-09-13 17:24:15 -07:00
Adam Barth
ad0d74a41e Introduce painting.dart and move painting code to src/painting 2015-09-08 10:36:14 -07:00
Viktor Lidholt
ae9d4115ff Adds helpers to bosses at level 2 & 3 and above in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
c4a6610ad7 More precise removal of lasers when they go offscreen in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
7681420367 Laser speed now accounts for scrolling speed in demo game 2015-09-04 10:35:45 -07:00
Viktor Lidholt
a4d344d164 Refactors boss power bar to use new constraint in demo game 2015-09-03 15:36:26 -07:00
Viktor Lidholt
ab616f08d9 Adds coins when a boss explodes in demo game 2015-09-03 14:55:14 -07:00
Viktor Lidholt
2bb73bbf5f Refactors code in demo game to make it simpler 2015-09-03 13:40:36 -07:00
Viktor Lidholt
1a6300a20a Adds power bar and movements to boss fights in demo game 2015-09-03 12:58:24 -07:00
Viktor Lidholt
ee7023531c Initial boss fight in demo game 2015-09-02 16:49:36 -07:00
Viktor Lidholt
e8fbb4f133 Adds speed boost power up to demo game 2015-09-02 15:14:22 -07:00
Viktor Lidholt
b5ffee2b25 Improves laser upgrade in demo game 2015-09-02 14:47:54 -07:00
Adam Barth
becef0155a Merge pull request #1018 from abarth/mv_src
Move widgets and rendering inside src
2015-09-02 13:41:25 -07:00
Adam Barth
0045b65996 Move widgets and rendering inside src
Code outside of package:sky should import this code using

package:sky/rendering.dart
package:sky/widgets.dart

Moving this code into the "src" directory is a convention that signifies that
and it cleans up the generated dartdoc because the libraries in the src
directory aren't included in the generated documentation. Instead, the classes
are documented in the widgets.dart and rendering.dart libraries.
2015-09-02 13:38:00 -07:00
Viktor Lidholt
cbce3da61a Improves on demo game balance and adds levels for lasers 2015-09-02 13:34:02 -07:00
Viktor Lidholt
1cca29b3cd Adds level labels to demo game 2015-09-01 16:14:53 -07:00
Viktor Lidholt
2291bd6d4c Adds small explosions to demo game 2015-09-01 15:34:43 -07:00
Viktor Lidholt
fcd47c4dc1 Speeds up explosions in demo game 2015-09-01 15:34:43 -07:00
Viktor Lidholt
eb6a09c55c Adds power-ups to demo game 2015-08-28 16:07:00 -07:00
Viktor Lidholt
435e3a5fbd Adds new enemies and coin display to demo game 2015-08-28 16:07:00 -07:00
Viktor Lidholt
aca0dd5860 Adds counting of coins in demo game 2015-08-26 15:35:19 -07:00
Viktor Lidholt
77c8c04946 Moves GameObjectFactory and PlayerState to their own files in demo game 2015-08-26 13:14:40 -07:00
Viktor Lidholt
3b183ff416 Adds power ups to demo game, and some minor refactoring to support the addition 2015-08-26 12:41:21 -07:00
Viktor Lidholt
a7ede89e93 Splits up demo game into multiple files for better readability 2015-08-26 10:22:09 -07:00
Viktor Lidholt
33f64444ad Updates demo game to work with new constraints api 2015-08-26 10:07:59 -07:00
Hixie
71e6f53a57 Replace Flex to Row and Column in tests and examples.
This still leaves Flex and FlexDirection available. At some point once
people have transitioned to Row/Column we should rename Flex to _Flex
and stop reexporting FlexDirection from basic.dart.
2015-08-26 09:05:14 -07:00
Viktor Lidholt
872a1cbfa4 Moves sky sprites to its own package 2015-08-25 16:08:46 -07:00
Viktor Lidholt
40e2693bf8 Fixes nits 2015-08-25 15:30:45 -07:00
Viktor Lidholt
ec4aaf2efd Adds swarms of enemies to demo game 2015-08-25 14:49:54 -07:00
Viktor Lidholt
0d0ee255fa Adds constraint for rotating a node towards another node 2015-08-25 14:47:56 -07:00
Viktor Lidholt
dbe555a42a Makes the spline tension editable in sprites 2015-08-25 14:45:44 -07:00
Viktor Lidholt
6622c8cd3d Removes old code from demo game 2015-08-25 10:14:26 -07:00
Viktor Lidholt
cca7006d95 Removes custom joystick code and adds a new moving enemy to demo game 2015-08-25 09:28:58 -07:00
Viktor Lidholt
0257b37975 Adds base rotation property to rotate-to-movement constraint 2015-08-25 09:28:58 -07:00
Viktor Lidholt
4a6919c364 Adds virtual joystick to games library 2015-08-25 09:28:58 -07:00
Viktor Lidholt
bb0de38f5b Minor code cleanup 2015-08-24 16:41:05 -07:00
Viktor Lidholt
e5fb2b7187 Adds support for spline actions and constraints on nodes 2015-08-24 16:08:23 -07:00
Viktor Lidholt
c1b071c1ac New game demo, initial version 2015-08-24 16:07:25 -07:00
Adam Barth
13355a99b0 Add SetRequestedOrientation to Activity service
Fixes #743
2015-08-21 12:49:49 -07:00
Viktor Lidholt
95014000a9 Fixes loading of assets in demo game 2015-08-18 10:33:34 -07:00
Viktor Lidholt
ee8506d32c Merge pull request #666 from vlidholt/master
Adds bounce and elastic easing to animation curves
2015-08-18 09:37:02 -07:00
Eric Seidel
908490d089 Make Asteroids.apk use background music from its bundle
This was the last instance of loading assets off of Github.

@abarth
2015-08-17 17:10:38 -07:00
Viktor Lidholt
8ab5167eb1 Updates demo game to use curves from the animation package 2015-08-17 17:07:55 -07:00
Eric Seidel
7637d52cdf Teach Asteroids Sounds how to load from AssetBundle
@abarth
2015-08-17 16:07:08 -07:00
Adam Barth
87ca9c16be Rename Widget.root to Widget.renderObject
The name `root` is confusing because this value isn't the root of anything.
It's just the associated `RenderObject` instance.
2015-08-17 14:15:26 -07:00
Viktor Lidholt
8bb452618c Adds SoundManager class 2015-08-17 12:49:32 -07:00
Viktor Lidholt
0460f86052 Adds a new ActionDelay class to sprites 2015-08-17 09:23:13 -07:00