mirror of https://github.com/axmolengine/axmol.git
Merge: f8e6c06286
cea283c489
Merge pull request #11 from simdsoft/sync-v4 Sync v4
This commit is contained in:
parent
217962e748
commit
d5af773970
|
@ -130,6 +130,18 @@ Rect Grid3DAction::getGridRect() const
|
||||||
}
|
}
|
||||||
|
|
||||||
// implementation of TiledGrid3DAction
|
// implementation of TiledGrid3DAction
|
||||||
|
TiledGrid3DAction* TiledGrid3DAction::create(float duration, const Size &gridSize)
|
||||||
|
{
|
||||||
|
TiledGrid3DAction *ret = new (std::nothrow) TiledGrid3DAction();
|
||||||
|
if (ret && ret->initWithDuration(duration, gridSize))
|
||||||
|
{
|
||||||
|
ret->autorelease();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
delete ret;
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
GridBase* TiledGrid3DAction::getGrid()
|
GridBase* TiledGrid3DAction::getGrid()
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,20 +83,22 @@ PongLayer::PongLayer()
|
||||||
|
|
||||||
Vector<Paddle*> paddlesM(4);
|
Vector<Paddle*> paddlesM(4);
|
||||||
|
|
||||||
|
float paddleStep =(VisibleRect::getVisibleRect().size.height - kStatusBarHeight - 30 - 3*paddleTexture->getPixelsHigh())/3 + paddleTexture->getPixelsHigh();
|
||||||
|
float nextPaddlePos = VisibleRect::bottom().y + 15;
|
||||||
Paddle* paddle = Paddle::createWithTexture(paddleTexture);
|
Paddle* paddle = Paddle::createWithTexture(paddleTexture);
|
||||||
paddle->setPosition( Vec2(VisibleRect::center().x, VisibleRect::bottom().y + 15) );
|
paddle->setPosition( Vec2(VisibleRect::center().x, nextPaddlePos));
|
||||||
paddlesM.pushBack( paddle );
|
paddlesM.pushBack( paddle );
|
||||||
|
|
||||||
paddle = Paddle::createWithTexture( paddleTexture );
|
paddle = Paddle::createWithTexture( paddleTexture );
|
||||||
paddle->setPosition( Vec2(VisibleRect::center().x, VisibleRect::top().y - kStatusBarHeight - 15) );
|
paddle->setPosition( Vec2(VisibleRect::center().x, nextPaddlePos+=paddleStep) );
|
||||||
paddlesM.pushBack( paddle );
|
paddlesM.pushBack( paddle );
|
||||||
|
|
||||||
paddle = Paddle::createWithTexture( paddleTexture );
|
paddle = Paddle::createWithTexture( paddleTexture );
|
||||||
paddle->setPosition( Vec2(VisibleRect::center().x, VisibleRect::bottom().y + 100) );
|
paddle->setPosition( Vec2(VisibleRect::center().x, nextPaddlePos+=paddleStep) );
|
||||||
paddlesM.pushBack( paddle );
|
paddlesM.pushBack( paddle );
|
||||||
|
|
||||||
paddle = Paddle::createWithTexture( paddleTexture );
|
paddle = Paddle::createWithTexture( paddleTexture );
|
||||||
paddle->setPosition( Vec2(VisibleRect::center().x, VisibleRect::top().y - kStatusBarHeight - 100) );
|
paddle->setPosition( Vec2(VisibleRect::center().x, nextPaddlePos+=paddleStep) );
|
||||||
paddlesM.pushBack( paddle );
|
paddlesM.pushBack( paddle );
|
||||||
|
|
||||||
_paddles = paddlesM;
|
_paddles = paddlesM;
|
||||||
|
|
|
@ -102,6 +102,8 @@ If ($env:build_type -eq "android_cpp_tests") {
|
||||||
} elseif ($env:build_type -eq "windows32_cmake_test") {
|
} elseif ($env:build_type -eq "windows32_cmake_test") {
|
||||||
Write-Host "Build tests project by cmake"
|
Write-Host "Build tests project by cmake"
|
||||||
|
|
||||||
|
$ENV:PATH="$env:APPVEYOR_BUILD_FOLDER\tools\cocos2d-console\bin;$ENV:PATH"
|
||||||
|
|
||||||
& mkdir $env:APPVEYOR_BUILD_FOLDER\win32-build
|
& mkdir $env:APPVEYOR_BUILD_FOLDER\win32-build
|
||||||
# if ($lastexitcode -ne 0) {throw} # mkdir return no-zero
|
# if ($lastexitcode -ne 0) {throw} # mkdir return no-zero
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue