54 Commits

Author SHA1 Message Date
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
Viktor Lidholt
9d092ad454 Adds background music for demo game 2015-08-13 16:00:29 -07:00
Viktor Lidholt
be9d8d2dbc Unifies interfaces for SoundTrackPlayer and SoundEffectPlayer 2015-08-13 16:00:29 -07:00
Viktor Lidholt
788565248e Adds a SoundTrackPlayer class 2015-08-13 16:00:29 -07:00
Viktor Lidholt
f2cb9637ec Rename SoundCompleteCallback to SoundEffectStreamCallback 2015-08-13 16:00:29 -07:00
Viktor Lidholt
523bea099d Refactors names of sound effect classes 2015-08-13 16:00:29 -07:00
Viktor Lidholt
bad255ba3e Removes the ability to jump to different positions in sound effects (this isn't supported on Android) 2015-08-13 16:00:29 -07:00
Viktor Lidholt
9fdd8afbce Adds sounds to demo game bundle 2015-08-13 12:57:07 -07:00
Viktor Lidholt
7aca14793c Adds sounds to demo game 2015-08-13 12:35:32 -07:00
Viktor Lidholt
ecfdebe5f5 Adds sound support to sprite api 2015-08-13 12:35:32 -07:00
Viktor Lidholt
127346ab56 Merge pull request #577 from vlidholt/master
Fixes issue in sprite
2015-08-13 12:33:40 -07:00
Adam Barth
fbe12785cc Add PaintingContext which has-a sky.Canvas instead of is-a sky.Canvas
We'll need this for compositing because we need to switch out the sky.Canvas
when we switch compositing layers.
2015-08-13 10:18:33 -07:00
Viktor Lidholt
a9e313fe79 Fixes issue in sprite 2015-08-12 10:25:55 -07:00
Viktor Lidholt
4d3a7d0465 Adds API docs to particle systems and removes redundant property 2015-08-11 16:25:58 -07:00
Viktor Lidholt
cdc0755f19 Adds API docs to sprite Node and Node3D 2015-08-11 14:33:45 -07:00
Viktor Lidholt
5054ec3d06 Adds API docs to sprite ColorSequence and Layer 2015-08-11 14:13:57 -07:00
Viktor Lidholt
4b48c8cfbf Merge pull request #561 from vlidholt/master
Adds documentation for sprite actions
2015-08-11 14:04:22 -07:00
Viktor Lidholt
21e0996bf6 Adds documentation for actions. 2015-08-11 12:19:07 -07:00
Viktor Lidholt
e2bc694adc Merge pull request #527 from vlidholt/master
Adds optional rect property to sprite layer class
2015-08-11 09:11:09 -07:00
Adam Barth
41c201e768 Use ImageResource instead of Future<sky.Image>
Using ImageResource solves two problems:

1) Listeners can be notified synchronously when the sky.Image is already
   available. This change removes flash of 0x0 layout when moving an
   already-cached image around in the render tree.

2) In the future, when we support animated images, we can notify listeners
   multiple times whenever a new image is available.
2015-08-10 20:43:32 -07:00
Ian Fischer
464e35f342 Pubspec for Asteroids 2015-08-10 15:07:46 -07:00
Ian Fischer
ad1a56ff01 Merge pull request #528 from iansf/asteroids_move_main
Move main.dart to lib/main.dart for the game
2015-08-10 15:06:54 -07:00
Ian Fischer
6722df87e8 Move game/main.dart to game/lib/main.dart. 2015-08-10 15:05:54 -07:00
Viktor Lidholt
8ef8d8bef7 Adds optional rect property to sprite layer class 2015-08-10 14:43:34 -07:00
Viktor Lidholt
05824f0937 Updates demo game with changes to Sprites and Nodes 2015-08-10 12:37:44 -07:00