Blame view

ios/Runner/Wowgame/Classes/game_food/ResourcesConfig.h 977 Bytes
cb213901   xiaoyu   添加一个游戏的源码和编译选项
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
  //
  //  ResourcesConfig.h
  //  HalloweenSpaceInvaders
  //
  //  Created by Katarzyna Kalinowska-Górska on 04/09/2019.
  //
  
  #ifndef ResourcesConfig_h
  #define ResourcesConfig_h
  
  #include <string>
  
  namespace ResourcesConfig {
  
      extern const char* RES_FOLDER_NAME_XLARGE;
  extern const char* RES_FOLDER_NAME_TINY;
      
      extern const std::string LEVEL_BABY_IMAGE_PATH;
      extern const std::string LEVEL_TEEN_IMAGE_PATH;
      extern const std::string LEVEL_ADULT_IMAGE_PATH;
      
      static std::string picturePathForLevel(int level){
          switch (level){
              case 0: return LEVEL_BABY_IMAGE_PATH;
              case 1: return LEVEL_TEEN_IMAGE_PATH;
              case 2: return LEVEL_ADULT_IMAGE_PATH;
              default: return LEVEL_TEEN_IMAGE_PATH;
          }
      }
  
  //    extern const std::string INTRO_1_SOUND_FILE_PATH;
  //    extern const std::string PICK_LEVEL_SOUND_FILE_PATH;
  //    extern const std::string INTRO_2_SOUND_FILE_PATH;
  }
  
  #endif /* ResourcesConfig_h */