Guest User

Untitled

a guest
May 27th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.91 KB | None | 0 0
  1. //  Created by Justin Boisvert on 1/15/12.
  2. //  Copyright (c) 2012 et. All rights reserved.
  3. #include "Scene.h"
  4. #include <iostream>
  5. #ifndef Sol_Work_it_h
  6. #define Sol_Work_it_h
  7. class Work_it : public Scene {
  8.     Layer* mainLayer;
  9.     Sprite *circle;
  10.    
  11. public:
  12.     void init(){
  13.         circle = new Sprite();
  14.         circle->init("Dude.png");
  15.         mainLayer = new Layer();
  16.         addLayer(mainLayer);
  17.         mainLayer->addRenderable(circle,false);
  18.         backgroundColor = whiteColorf();
  19.        
  20.        
  21.     }
  22.     void deinit(){
  23.         delete mainLayer;
  24.     }
  25.     void touchDown(const Vector2& loc){
  26.        
  27.     }
  28.     void touchMoved(const Vector2& prev, const Vector2& loc){
  29.        
  30.     }
  31.    
  32.     void touchUp(const Vector2& loc){
  33.        
  34.     }
  35.    
  36.     void accelerated(const Vector3& acceleration){
  37.        
  38.     }
  39.     void update(){
  40.         Scene::update();
  41.     }
  42. };
  43.  
  44. #endif
Add Comment
Please, Sign In to add comment