-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMG Optimization Task #212
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,10 +83,11 @@ function Dragon:init3D() | |
self:initShadow() | ||
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setScale(10) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could remove this commented line as well |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
end | ||
|
||
-- init Dragon animations============================= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,10 +135,11 @@ function Knight:init3D() | |
self:initPuff() | ||
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setScale(25) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this commented line |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
self:setDefaultEqt() | ||
end | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,10 +75,11 @@ function Mage:init3D() | |
self:initPuff() | ||
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setScale(1.9) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented line |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
self:setDefaultEqt() | ||
end | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,10 +67,11 @@ function Piglet:init3D() | |
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setTexture("model/piglet/zhu0928.jpg") | ||
self._sprite3d:setScale(1.3) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented line |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
end | ||
|
||
-- init Piglet animations============================= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,10 +54,11 @@ function Rat:init3D() | |
self:initShadow() | ||
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setScale(20) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented line |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
end | ||
|
||
-- init Rat animations============================= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,10 +63,11 @@ function Slime:init3D() | |
self._sprite3d = cc.EffectSprite3D:create(file) | ||
self._sprite3d:setTexture("model/slime/baozi.jpg") | ||
self._sprite3d:setScale(17) | ||
self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
--self._sprite3d:addEffect(cc.V3(0,0,0),CelLine, -1) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented line |
||
self:addChild(self._sprite3d) | ||
self._sprite3d:setRotation3D({x = 90, y = 0, z = 0}) | ||
self._sprite3d:setRotation(-90) | ||
self._sprite3d:setOpacity(255) | ||
end | ||
-- | ||
function Slime:walkMode() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we could remove this line