Giter VIP home page Giter VIP logo

ssanimation's Introduction

SSAnimation

Collection of commonly used sprite and menu animation methods to be used with Cocos2d.

Background

While working on my first iOS game PYXL ( Check it out here: http://t.co/Iqu1Tm65N9 ) I began to generalize a few of the animation methods that I was repeatedly using. I figured that things like pulsing sprites or menu animations would be something useful to the entire Cocos2d community - and therefor would be totally worth sharing. You can see all of the methods in action in my game, or you can download the class files and try it out for yourself.

Methods that are included in this class are:

  • Pulse (Rapid expansion and contraction of a sprite once)
  • Pulse with Amount (allows variation on default Pulse effect)
  • Pulse Forever (continuously neverending Pulse)
  • Animate Powerups
  • Notify (Sprite Notifications appear in the center of the screen)
  • Shake
  • Animate from Right (Animates a sprite from the right side of the screen)
  • Animate Meny from Left (Animates a menu from the Left side of the screen)

Usage:

  • Add SSAnimation.m and SSAnimation.h to your XCode project
  • #include SSAnimation.h
  • Code Example:
    CCSprite * player = [CCSprite spriteWithFile:@"player.png"]; [SSAnimation pulse: player]

ssanimation's People

Contributors

salmansqadeer avatar

Stargazers

iancu tudor avatar Valerio Santinelli avatar  avatar  avatar Andrew Brampton avatar

Watchers

 avatar

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.