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

Issue 15070003: [nacltoons] Add compound shapes. (Closed)

Created:
7 years, 7 months ago by Sam Clegg
Modified:
7 years, 7 months ago
Reviewers:
noelallen1, binji
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

[nacltoons] Add compound shapes. This change is suprisingly large as it involves switching from CCPhysicsSprite (where each physics object must have a visisble sprite) to CCPhysicsNode (where the physics node itself is not visible, but can have zero or more visible children). This means that a single phyiscs node (corresponding to a single box2d body) can be constructed from many shapes and sprites, each adding its own fixtures to the overall body. R=binji@chromium.org Committed: https://code.google.com/p/nativeclient-sdk/source/detail?r=1552

Patch Set 1 : #

Total comments: 15

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : \ #

Patch Set 6 : #

Total comments: 13

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -217 lines) Patch
D nacltoons/bindings/CCPhysicsSprite.pkg View 1 chunk +0 lines, -15 lines 0 comments Download
M nacltoons/bindings/LuaCocos2dExtensions.h View 1 1 chunk +1 line, -1 line 0 comments Download
M nacltoons/bindings/LuaCocos2dExtensions.cpp View 1 2 4 chunks +173 lines, -4 lines 0 comments Download
M nacltoons/bindings/extensions.pkg View 2 1 chunk +26 lines, -1 line 0 comments Download
M nacltoons/bindings/lua_level_layer.h View 1 chunk +1 line, -1 line 0 comments Download
M nacltoons/bindings/lua_level_layer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M nacltoons/data/res/default_game.lua View 1 chunk +0 lines, -1 line 0 comments Download
M nacltoons/data/res/drawing.lua View 1 2 3 4 5 6 8 chunks +146 lines, -102 lines 0 comments Download
M nacltoons/data/res/loader.lua View 1 2 3 4 5 1 chunk +12 lines, -12 lines 0 comments Download
M nacltoons/data/res/sample_game/level1.def View 1 2 3 4 5 2 chunks +17 lines, -12 lines 0 comments Download
M nacltoons/data/res/sample_game/level2.def View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M nacltoons/data/res/sample_game/level3.def View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M nacltoons/data/res/touch_handler.lua View 3 chunks +7 lines, -2 lines 0 comments Download
M nacltoons/data/res/util.lua View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M nacltoons/data/res/validate.lua View 1 2 3 4 5 6 1 chunk +28 lines, -34 lines 0 comments Download
M nacltoons/proj.linux/Makefile View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M nacltoons/proj.nacl/Makefile View 1 2 3 4 5 1 chunk +15 lines, -14 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sam Clegg
7 years, 7 months ago (2013-05-09 00:05:55 UTC) #1
binji
lgtm https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua File nacltoons/data/res/drawing.lua (right): https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua#newcode38 nacltoons/data/res/drawing.lua:38: -- Constants for tagging cococs nodes sp: cocos ...
7 years, 7 months ago (2013-05-10 16:59:01 UTC) #2
Sam Clegg
https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua File nacltoons/data/res/drawing.lua (right): https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua#newcode38 nacltoons/data/res/drawing.lua:38: -- Constants for tagging cococs nodes On 2013/05/10 16:59:01, ...
7 years, 7 months ago (2013-05-15 20:18:43 UTC) #3
Sam Clegg
Unified "sprites" and "shapes" in the level def files. Sprites are just shapes, or sub-shapes ...
7 years, 7 months ago (2013-05-20 23:54:13 UTC) #4
binji
slgtm, though I think drawing.lua could use some cleanup. https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua File nacltoons/data/res/drawing.lua (right): https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua#newcode281 nacltoons/data/res/drawing.lua:281: ...
7 years, 7 months ago (2013-05-21 21:11:36 UTC) #5
Sam Clegg
https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua File nacltoons/data/res/drawing.lua (right): https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua#newcode281 nacltoons/data/res/drawing.lua:281: -- Add visiable sprite On 2013/05/21 21:11:36, binji wrote: ...
7 years, 7 months ago (2013-05-21 22:51:45 UTC) #6
Sam Clegg
On 2013/05/21 22:51:45, Sam Clegg wrote: > https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua > File nacltoons/data/res/drawing.lua (right): > > https://codereview.chromium.org/15070003/diff/4004/nacltoons/data/res/drawing.lua#newcode281 ...
7 years, 7 months ago (2013-05-21 23:08:23 UTC) #7
Sam Clegg
7 years, 7 months ago (2013-05-21 23:15:59 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 manually as r1552 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698