Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: CleanUpProject
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (25 sloc) 0.686 kb
//
// HelloWorldScene.h
// CuteAPultCocos2D-x
//
// Created by Clawoo on 9/8/11.
// Copyright __MyCompanyName__ 2011. All rights reserved.
//
#ifndef __HELLO_WORLD_H__
#define __HELLO_WORLD_H__
// When you import this file, you import all the cocos2d classes
#include "cocos2d.h"
#include "Box2D.h"
class HelloWorld : public cocos2d::CCLayer {
public:
~HelloWorld();
HelloWorld();
// returns a Scene that contains the HelloWorld as the only child
static cocos2d::CCScene* scene();
// adds a new sprite at a given coordinate
virtual void draw();
void tick(cocos2d::ccTime dt);
private:
b2World* world;
};
#endif // __HELLO_WORLD_H__
Jump to Line
Something went wrong with that request. Please try again.