Coder Social home page Coder Social logo

cocos2dwindows's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Lucky @QiMa
  • ๐Ÿ‘€ Iโ€™m interested in golang, c/c++, js/ts
  • ๐ŸŒฑ Iโ€™m currently learning Windows Driver
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on everything.
  • ๐Ÿ“ซ How to reach me, [email protected]

cocos2dwindows's People

Contributors

penrodnie avatar qima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocos2dwindows's Issues

Animation runs slowly on a sprite despite setting CCAnimation object's setDelayperUnit to lowest value

Bug: I have created a simple coin animation that executes perfectly but the delay between the frames remains the same whether I have set the delayPerUnit. Infact the delay is quite low and the frames changed very slowly. Here is my sample code that I have tried with and without CCSpriteBatchNode the results are the same.

CCSize size = CCDirector::sharedDirector()->getWinSize();

CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("coin-sprite-sheet.plist");

CCSpriteBatchNode * batchNode = CCSpriteBatchNode::create("coin-sprite-sheet.png");

this->addChild(batchNode);

CCArray * spriteFrames = CCArray::create(CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("coin-1.png"),
CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("coin-2.png"),
CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("coin-3.png"),
CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName("coin-4.png"),
NULL);

CCAnimation* animation = CCAnimation::createWithSpriteFrames(spriteFrames);
animation->setDelayPerUnit(0.6); <---- change here to any value no effect

CCSprite * sprite_ = CCSprite::createWithSpriteFrameName("coin-1.png");
sprite_->setPosition(ccp(size.width/2,size.height/2));

batchNode->addChild(sprite_, 10);

CCRepeatForever * rep = CCRepeatForever::create(CCAnimate::create(animation, true));
sprite_->runAction(rep);

I believe it's a bug in cocos2dx-windowsPhone. I am using currently this http://github.com/qima/cocos2d-windowsphone. Please have you added a fix for this issue.

CCLabelTTF is Pixelated

When using CClabelttf , labels appears to be very pixelated however same things works on ios/android perfectly. PFA!
capture

TestCpp?

You said that most test cases are passed in TestCpp. But it seems that you forgot to commit TestCpp into this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.