-
Notifications
You must be signed in to change notification settings - Fork 0
/
StartGame.h
49 lines (43 loc) · 1.05 KB
/
StartGame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// StartGame.h
// goldMiner
//
// Created by student on 15/8/17.
//
//
#ifndef __goldMiner__StartGame__
#define __goldMiner__StartGame__
#include "Item.h"
#include "Shop.h"
#include <stdio.h>
#include <iostream>
USING_NS_CC;
class Miner;
class Hook;
class StartGame:public Layer{
public:
Hook *hook;
Miner *miner;
Label *lable5;
Menu *menu;
MenuItemToggle *toggle;
void item();
void move();
static Scene *secne();
virtual bool init();
CREATE_FUNC(StartGame);
void consumeTime(float dt);
void testCollin(float dt);
void removeItem(Node *render);
void removeBoom();//移除炸弹
void chooseItem(ItemType type,int count);
void changeSelect(float dt);
virtual bool onTouchBegan(Touch *touch, Event *unused_event);
virtual void draw(Renderer *renderer, const Mat4& transform,uint32_t flags);
__Array *itemArray;
~StartGame();
protected:
CustomCommand _customCommand;
void onDraw( const cocos2d::Mat4 &transform, uint32_t flags);
};
#endif /* defined(__goldMiner__StartGame__) */