Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Issue 1215413002: First pass on action animations for sprites (Closed)

Created:
5 years, 5 months ago by viktorl
Modified:
5 years, 5 months ago
CC:
abarth-chromium, gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -6 lines) Patch
A sky/sdk/example/game/lib/action.dart View 1 chunk +155 lines, -0 lines 1 comment Download
M sky/sdk/example/game/lib/color_secuence.dart View 1 chunk +0 lines, -6 lines 0 comments Download
M sky/sdk/example/game/lib/game_demo_world.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M sky/sdk/example/game/lib/node.dart View 1 chunk +9 lines, -0 lines 0 comments Download
M sky/sdk/example/game/lib/sprite_box.dart View 1 chunk +11 lines, -0 lines 1 comment Download
M sky/sdk/example/game/lib/sprites.dart View 1 chunk +2 lines, -0 lines 0 comments Download
A sky/sdk/example/game/lib/util.dart View 1 chunk +7 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (4 generated)
viktorl
Actions are a simple animation system, primarily for use with the sprites package, but it ...
5 years, 5 months ago (2015-07-01 22:07:11 UTC) #2
kulakowski
https://codereview.chromium.org/1215413002/diff/1/sky/sdk/example/game/lib/action.dart File sky/sdk/example/game/lib/action.dart (right): https://codereview.chromium.org/1215413002/diff/1/sky/sdk/example/game/lib/action.dart#newcode150 sky/sdk/example/game/lib/action.dart:150: if (action._finished) { How many actions can be pending? ...
5 years, 5 months ago (2015-07-01 22:18:44 UTC) #4
abarth-chromium
https://codereview.chromium.org/1215413002/diff/1/sky/sdk/example/game/lib/util.dart File sky/sdk/example/game/lib/util.dart (right): https://codereview.chromium.org/1215413002/diff/1/sky/sdk/example/game/lib/util.dart#newcode3 sky/sdk/example/game/lib/util.dart:3: num _clamp(num val, num min, num max) { https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:core.num#id_clamp
5 years, 5 months ago (2015-07-01 22:20:53 UTC) #6
abarth-chromium
Might be worth talking with mpcomplete re: animations and lerps, etc.
5 years, 5 months ago (2015-07-01 22:22:26 UTC) #8
eseidel
I don't have strong opinions. I expect that you want to share code with mpcomplete's ...
5 years, 5 months ago (2015-07-01 22:26:43 UTC) #9
viktorl
On 2015/07/01 at 22:26:43, eseidel wrote: > I don't have strong opinions. I expect that ...
5 years, 5 months ago (2015-07-01 22:28:26 UTC) #10
viktorl
Committed patchset #1 (id:1) manually as b2b69122e7e6c1b3b7477fb74ea09a703823d6d8 (presubmit successful).
5 years, 5 months ago (2015-07-01 22:36:10 UTC) #11
eseidel
I think another problem here is separation of concerns. I care about your resuable "game ...
5 years, 5 months ago (2015-07-01 22:37:25 UTC) #12
viktorl
5 years, 5 months ago (2015-07-01 22:42:40 UTC) #13
Message was sent while issue was closed.
On 2015/07/01 at 22:37:25, eseidel wrote:
> I think another problem here is separation of concerns.  I care about your
resuable "game library" code, but I don't really care about the asteroids
specific code.  I think we should sometime-in-the-near-future separate the two
and can then have more rigorous review of your game library changes and not much
of the game demos.
> 
> The sky-based-game-library can even be its own pub package if you so desire,
or can just be part of the Sky framework depending.

Yes, definitely agree with this! It's already separated by the 'game_demo'
library and 'sprites', but they should be more separated, just haven't made it a
priority yet.

Powered by Google App Engine
This is Rietveld 408576698