Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#import <UIKit/UIKit.h>
#import "cocos2d.h"
// this definition enables type "kCurrentTurn" or "enum _kCurrentTurn"
typedef enum _kCurrentTurn {
kCurrentTurnNone = 0,
kCurrentTurnMaru = 1,
kCurrentTurnBatu = 2,
} kCurrentTurn;
enum {
kPieceMoving = 0xffffffff-1,
kPieceSettled = 0xffffffff-2,
};
@interface TicTacToeScene : Scene {
}
@end
@interface TicTacToeLayer : Layer {
kCurrentTurn currentTurn;
CGPoint lastAccerelometerVector;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment