Commit b2f467cb b2f467cb62daa97bd9123bb1b0c519a44d83cb73 by 赵春雷

淘好玩四川,修复有线启动时间过长的问题

1 parent bde20d0e
Showing 438 changed files with 2872 additions and 493 deletions
1 #/////////////////////////////////////////////////////////////////////////////
2 # Fireball Projects
3 #/////////////////////////////////////////////////////////////////////////////
4
5 library/
6 temp/
7 local/
8
9 #/////////////////////////////////////////////////////////////////////////////
10 # Logs and databases
11 #/////////////////////////////////////////////////////////////////////////////
12
13 *.log
14 *.sql
15 *.sqlite
16
17 #/////////////////////////////////////////////////////////////////////////////
18 # files for debugger
19 #/////////////////////////////////////////////////////////////////////////////
20
21 *.sln
22 *.csproj
23 *.pidb
24 *.unityproj
25 *.suo
26
27 #/////////////////////////////////////////////////////////////////////////////
28 # OS generated files
29 #/////////////////////////////////////////////////////////////////////////////
30
31 .DS_Store
32 ehthumbs.db
33 Thumbs.db
34
35 #/////////////////////////////////////////////////////////////////////////////
36 # exvim files
37 #/////////////////////////////////////////////////////////////////////////////
38
39 *UnityVS.meta
40 *.err
41 *.err.meta
42 *.exvim
43 *.exvim.meta
44 *.vimentry
45 *.vimentry.meta
46 *.vimproject
47 *.vimproject.meta
48 .vimfiles.*/
49 .exvim.*/
50 quick_gen_project_*_autogen.bat
51 quick_gen_project_*_autogen.bat.meta
52 quick_gen_project_*_autogen.sh
53 quick_gen_project_*_autogen.sh.meta
54 .exvim.app
55
56 #/////////////////////////////////////////////////////////////////////////////
57 # webstorm files
58 #/////////////////////////////////////////////////////////////////////////////
59
60 .idea/
61
62 #//////////////////////////
63 # VS Code
64 #//////////////////////////
65
66 .vscode/
67
68 #//////////////////////////
69 # cocos
70 #//////////////////////////
71 *.meta
...\ No newline at end of file ...\ No newline at end of file
1 APP_STL := c++_static
2
3 # Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices
4 APP_ABI := armeabi-v7a
5
6 APP_CPPFLAGS := -frtti -std=c++11 -fsigned-char
7 APP_LDFLAGS := -latomic
8
9 # To solve windows commands char length too long
10 APP_SHORT_COMMANDS := true
11
12 USE_ARM_MODE := 1
13
14 # MUST be careful to modify this manually
15 # disable module will speed up compile time, and reduce package size
16 USE_GFX_RENDERER := 1
17 USE_VIDEO := 1
18 USE_WEB_VIEW := 1
19 USE_AUDIO := 1
20 USE_SOCKET := 1
21 USE_SPINE := 1
22 USE_DRAGONBONES := 1
23 USE_TIFF := 1
24 USE_MIDDLEWARE := 1
25 USE_PARTICLE := 1
26
27 APP_CPPFLAGS += -DUSE_GFX_RENDERER=$(USE_GFX_RENDERER)
28 APP_CPPFLAGS += -DUSE_VIDEO=${USE_VIDEO}
29 APP_CPPFLAGS += -DUSE_WEB_VIEW=${USE_WEB_VIEW}
30 APP_CPPFLAGS += -DUSE_AUDIO=${USE_AUDIO}
31 APP_CPPFLAGS += -DUSE_SOCKET=${USE_SOCKET}
32 APP_CPPFLAGS += -DUSE_SPINE=${USE_SPINE}
33 APP_CPPFLAGS += -DUSE_DRAGONBONES=${USE_DRAGONBONES}
34 APP_CPPFLAGS += -DCC_USE_TIFF=${USE_TIFF}
35 APP_CPPFLAGS += -DUSE_MIDDLEWARE=${USE_MIDDLEWARE}
36 APP_CPPFLAGS += -DUSE_PARTICLE=${USE_PARTICLE}
37
38 ifeq ($(NDK_DEBUG),1)
39 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
40 APP_CFLAGS += -DCOCOS2D_DEBUG=1
41 APP_OPTIM := debug
42 else
43 APP_CPPFLAGS += -DNDEBUG
44 APP_CFLAGS += -DNDEBUG
45 APP_OPTIM := release
46 endif
47
48 # Some Android Simulators don't support SSE instruction, so disable it for x86 arch.
49 APP_CPPFLAGS += -U__SSE__
50 USE_EDIT_BOX := 1
1 copy Application.mk ..\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk
...\ No newline at end of file ...\ No newline at end of file
1 copy ..\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk Application.mk
...\ No newline at end of file ...\ No newline at end of file
1 # hello-world
2 Hello world new project template.
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
192 "array": [ 192 "array": [
193 0, 193 0,
194 0, 194 0,
195 271.0606384277344, 195 265.13885498046875,
196 0, 196 0,
197 0, 197 0,
198 0, 198 0,
...@@ -5376,8 +5376,8 @@ ...@@ -5376,8 +5376,8 @@
5376 } 5376 }
5377 ], 5377 ],
5378 "_useOriginalSize": false, 5378 "_useOriginalSize": false,
5379 "_string": "v1.1.0.2020051217", 5379 "_string": "v1.1.0.2020051513",
5380 "_N$string": "v1.1.0.2020051217", 5380 "_N$string": "v1.1.0.2020051513",
5381 "_fontSize": 24, 5381 "_fontSize": 24,
5382 "_lineHeight": 24, 5382 "_lineHeight": 24,
5383 "_enableWrapText": true, 5383 "_enableWrapText": true,
......
1 [
2 {
3 "__type__": "cc.SceneAsset",
4 "_name": "",
5 "_objFlags": 0,
6 "_native": "",
7 "scene": {
8 "__id__": 1
9 }
10 },
11 {
12 "__type__": "cc.Scene",
13 "_objFlags": 0,
14 "_parent": null,
15 "_children": [
16 {
17 "__id__": 2
18 }
19 ],
20 "_active": true,
21 "_components": [],
22 "_prefab": null,
23 "_opacity": 255,
24 "_color": {
25 "__type__": "cc.Color",
26 "r": 255,
27 "g": 255,
28 "b": 255,
29 "a": 255
30 },
31 "_contentSize": {
32 "__type__": "cc.Size",
33 "width": 0,
34 "height": 0
35 },
36 "_anchorPoint": {
37 "__type__": "cc.Vec2",
38 "x": 0,
39 "y": 0
40 },
41 "_trs": {
42 "__type__": "TypedArray",
43 "ctor": "Float32Array",
44 "array": [
45 0,
46 0,
47 0,
48 0,
49 0,
50 0,
51 1,
52 1,
53 1,
54 1
55 ]
56 },
57 "_is3DNode": true,
58 "_groupIndex": 0,
59 "groupIndex": 0,
60 "autoReleaseAssets": false,
61 "_id": "af3f854a-c2b1-43b2-8e1f-fc4346561ed3"
62 },
63 {
64 "__type__": "cc.Node",
65 "_name": "Canvas",
66 "_objFlags": 0,
67 "_parent": {
68 "__id__": 1
69 },
70 "_children": [
71 {
72 "__id__": 3
73 },
74 {
75 "__id__": 5
76 },
77 {
78 "__id__": 8
79 }
80 ],
81 "_active": true,
82 "_components": [
83 {
84 "__id__": 12
85 },
86 {
87 "__id__": 13
88 }
89 ],
90 "_prefab": null,
91 "_opacity": 255,
92 "_color": {
93 "__type__": "cc.Color",
94 "r": 255,
95 "g": 255,
96 "b": 255,
97 "a": 255
98 },
99 "_contentSize": {
100 "__type__": "cc.Size",
101 "width": 1280,
102 "height": 720
103 },
104 "_anchorPoint": {
105 "__type__": "cc.Vec2",
106 "x": 0.5,
107 "y": 0.5
108 },
109 "_trs": {
110 "__type__": "TypedArray",
111 "ctor": "Float32Array",
112 "array": [
113 640,
114 360,
115 0,
116 0,
117 0,
118 0,
119 1,
120 1,
121 1,
122 1
123 ]
124 },
125 "_eulerAngles": {
126 "__type__": "cc.Vec3",
127 "x": 0,
128 "y": 0,
129 "z": 0
130 },
131 "_skewX": 0,
132 "_skewY": 0,
133 "_is3DNode": false,
134 "_groupIndex": 0,
135 "groupIndex": 0,
136 "_id": "d02QO59YlLpLuAx25XWfFZ"
137 },
138 {
139 "__type__": "cc.Node",
140 "_name": "Main Camera",
141 "_objFlags": 0,
142 "_parent": {
143 "__id__": 2
144 },
145 "_children": [],
146 "_active": true,
147 "_components": [
148 {
149 "__id__": 4
150 }
151 ],
152 "_prefab": null,
153 "_opacity": 255,
154 "_color": {
155 "__type__": "cc.Color",
156 "r": 255,
157 "g": 255,
158 "b": 255,
159 "a": 255
160 },
161 "_contentSize": {
162 "__type__": "cc.Size",
163 "width": 0,
164 "height": 0
165 },
166 "_anchorPoint": {
167 "__type__": "cc.Vec2",
168 "x": 0.5,
169 "y": 0.5
170 },
171 "_trs": {
172 "__type__": "TypedArray",
173 "ctor": "Float32Array",
174 "array": [
175 0,
176 0,
177 247.68325805664062,
178 0,
179 0,
180 0,
181 1,
182 1,
183 1,
184 1
185 ]
186 },
187 "_eulerAngles": {
188 "__type__": "cc.Vec3",
189 "x": 0,
190 "y": 0,
191 "z": 0
192 },
193 "_skewX": 0,
194 "_skewY": 0,
195 "_is3DNode": false,
196 "_groupIndex": 0,
197 "groupIndex": 0,
198 "_id": "800zpMoYJB7okSVhzGgl4V"
199 },
200 {
201 "__type__": "cc.Camera",
202 "_name": "",
203 "_objFlags": 0,
204 "node": {
205 "__id__": 3
206 },
207 "_enabled": true,
208 "_cullingMask": 4294967295,
209 "_clearFlags": 7,
210 "_backgroundColor": {
211 "__type__": "cc.Color",
212 "r": 0,
213 "g": 0,
214 "b": 0,
215 "a": 255
216 },
217 "_depth": -1,
218 "_zoomRatio": 1,
219 "_targetTexture": null,
220 "_fov": 60,
221 "_orthoSize": 10,
222 "_nearClip": 1,
223 "_farClip": 4096,
224 "_ortho": true,
225 "_rect": {
226 "__type__": "cc.Rect",
227 "x": 0,
228 "y": 0,
229 "width": 1,
230 "height": 1
231 },
232 "_renderStages": 1,
233 "_id": "11sIQyFUdOepZMWDzC58Cp"
234 },
235 {
236 "__type__": "cc.Node",
237 "_name": "New Sprite",
238 "_objFlags": 0,
239 "_parent": {
240 "__id__": 2
241 },
242 "_children": [],
243 "_active": false,
244 "_components": [
245 {
246 "__id__": 6
247 },
248 {
249 "__id__": 7
250 }
251 ],
252 "_prefab": null,
253 "_opacity": 255,
254 "_color": {
255 "__type__": "cc.Color",
256 "r": 255,
257 "g": 255,
258 "b": 255,
259 "a": 255
260 },
261 "_contentSize": {
262 "__type__": "cc.Size",
263 "width": 70,
264 "height": 70
265 },
266 "_anchorPoint": {
267 "__type__": "cc.Vec2",
268 "x": 0.5,
269 "y": 0.5
270 },
271 "_trs": {
272 "__type__": "TypedArray",
273 "ctor": "Float32Array",
274 "array": [
275 0,
276 0,
277 0,
278 0,
279 0,
280 0,
281 1,
282 1,
283 1,
284 1
285 ]
286 },
287 "_eulerAngles": {
288 "__type__": "cc.Vec3",
289 "x": 0,
290 "y": 0,
291 "z": 0
292 },
293 "_skewX": 0,
294 "_skewY": 0,
295 "_is3DNode": false,
296 "_groupIndex": 0,
297 "groupIndex": 0,
298 "_id": "3ccbKIi7hIq4qKdCG5sEWv"
299 },
300 {
301 "__type__": "cc.Sprite",
302 "_name": "",
303 "_objFlags": 0,
304 "node": {
305 "__id__": 5
306 },
307 "_enabled": true,
308 "_materials": [
309 {
310 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
311 }
312 ],
313 "_srcBlendFactor": 770,
314 "_dstBlendFactor": 771,
315 "_spriteFrame": {
316 "__uuid__": "8b1433a3-286a-46be-913a-f7c952eae789"
317 },
318 "_type": 0,
319 "_sizeMode": 1,
320 "_fillType": 0,
321 "_fillCenter": {
322 "__type__": "cc.Vec2",
323 "x": 0,
324 "y": 0
325 },
326 "_fillStart": 0,
327 "_fillRange": 0,
328 "_isTrimmedMode": true,
329 "_atlas": null,
330 "_id": "04vP/zBpdGK4ef4Nh7fnSh"
331 },
332 {
333 "__type__": "cc.Animation",
334 "_name": "",
335 "_objFlags": 0,
336 "node": {
337 "__id__": 5
338 },
339 "_enabled": true,
340 "_defaultClip": {
341 "__uuid__": "859687c1-69f7-491b-b0c1-2d5121cf763a"
342 },
343 "_clips": [
344 {
345 "__uuid__": "859687c1-69f7-491b-b0c1-2d5121cf763a"
346 }
347 ],
348 "playOnLoad": true,
349 "_id": "bcbrp9FfZAfrGvBe0lB+qI"
350 },
351 {
352 "__type__": "cc.Node",
353 "_name": "New Sprite",
354 "_objFlags": 0,
355 "_parent": {
356 "__id__": 2
357 },
358 "_children": [
359 {
360 "__id__": 9
361 }
362 ],
363 "_active": true,
364 "_components": [
365 {
366 "__id__": 11
367 }
368 ],
369 "_prefab": null,
370 "_opacity": 255,
371 "_color": {
372 "__type__": "cc.Color",
373 "r": 255,
374 "g": 255,
375 "b": 255,
376 "a": 255
377 },
378 "_contentSize": {
379 "__type__": "cc.Size",
380 "width": 700,
381 "height": 500
382 },
383 "_anchorPoint": {
384 "__type__": "cc.Vec2",
385 "x": 0.5,
386 "y": 0.5
387 },
388 "_trs": {
389 "__type__": "TypedArray",
390 "ctor": "Float32Array",
391 "array": [
392 0,
393 0,
394 0,
395 0,
396 0,
397 0,
398 1,
399 1,
400 1,
401 1
402 ]
403 },
404 "_eulerAngles": {
405 "__type__": "cc.Vec3",
406 "x": 0,
407 "y": 0,
408 "z": 0
409 },
410 "_skewX": 0,
411 "_skewY": 0,
412 "_is3DNode": false,
413 "_groupIndex": 0,
414 "groupIndex": 0,
415 "_id": "3cDawzkO9JvYQ8NB0u4xCZ"
416 },
417 {
418 "__type__": "cc.Node",
419 "_name": "New Sprite",
420 "_objFlags": 0,
421 "_parent": {
422 "__id__": 8
423 },
424 "_children": [],
425 "_active": true,
426 "_components": [
427 {
428 "__id__": 10
429 }
430 ],
431 "_prefab": null,
432 "_opacity": 255,
433 "_color": {
434 "__type__": "cc.Color",
435 "r": 255,
436 "g": 255,
437 "b": 255,
438 "a": 255
439 },
440 "_contentSize": {
441 "__type__": "cc.Size",
442 "width": 700,
443 "height": 500
444 },
445 "_anchorPoint": {
446 "__type__": "cc.Vec2",
447 "x": 0.5,
448 "y": 0.5
449 },
450 "_trs": {
451 "__type__": "TypedArray",
452 "ctor": "Float32Array",
453 "array": [
454 0,
455 0,
456 0,
457 0,
458 0,
459 0,
460 1,
461 1,
462 1,
463 1
464 ]
465 },
466 "_eulerAngles": {
467 "__type__": "cc.Vec3",
468 "x": 0,
469 "y": 0,
470 "z": 0
471 },
472 "_skewX": 0,
473 "_skewY": 0,
474 "_is3DNode": false,
475 "_groupIndex": 0,
476 "groupIndex": 0,
477 "_id": "f4Fl42wpJMA4BevQy1rFFN"
478 },
479 {
480 "__type__": "cc.Sprite",
481 "_name": "",
482 "_objFlags": 0,
483 "node": {
484 "__id__": 9
485 },
486 "_enabled": true,
487 "_materials": [
488 {
489 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
490 }
491 ],
492 "_srcBlendFactor": 770,
493 "_dstBlendFactor": 771,
494 "_spriteFrame": {
495 "__uuid__": "6320a815-d779-4d01-a088-6906b3bfdbbb"
496 },
497 "_type": 0,
498 "_sizeMode": 0,
499 "_fillType": 0,
500 "_fillCenter": {
501 "__type__": "cc.Vec2",
502 "x": 0,
503 "y": 0
504 },
505 "_fillStart": 0,
506 "_fillRange": 0,
507 "_isTrimmedMode": true,
508 "_atlas": null,
509 "_id": "d2dGhgvQZJbq27OYO3POjD"
510 },
511 {
512 "__type__": "cc.Mask",
513 "_name": "",
514 "_objFlags": 0,
515 "node": {
516 "__id__": 8
517 },
518 "_enabled": true,
519 "_materials": [
520 {
521 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
522 }
523 ],
524 "_spriteFrame": {
525 "__uuid__": "54ffbf85-a577-477d-af66-7e6a55da7ed5"
526 },
527 "_type": 2,
528 "_segments": 64,
529 "_N$alphaThreshold": 0.4,
530 "_N$inverted": false,
531 "_id": "4cTaxcUcFExKhAghA3AFVy"
532 },
533 {
534 "__type__": "cc.Canvas",
535 "_name": "",
536 "_objFlags": 0,
537 "node": {
538 "__id__": 2
539 },
540 "_enabled": true,
541 "_designResolution": {
542 "__type__": "cc.Size",
543 "width": 1280,
544 "height": 720
545 },
546 "_fitWidth": false,
547 "_fitHeight": true,
548 "_id": "5cPHQ0dHZNc7gd0JKhoH4j"
549 },
550 {
551 "__type__": "e133dl85LtGRobhNPnQsUrp",
552 "_name": "",
553 "_objFlags": 0,
554 "node": {
555 "__id__": 2
556 },
557 "_enabled": true,
558 "_id": "f4MfPWOZVAEqhpVj/Oy3mi"
559 }
560 ]
...\ No newline at end of file ...\ No newline at end of file
...@@ -151,7 +151,7 @@ cc.Class({ ...@@ -151,7 +151,7 @@ cc.Class({
151 151
152 getSimulateRequest: function () { 152 getSimulateRequest: function () {
153 var self = this; 153 var self = this;
154 var aJsonList = ["catetory_jtdr_list.json", "catetory_all_list.json", "catetory_nlbz_list.json", "catetory_3dyx_list.json", "catetory_xyx_list.json", "catetory_dfdj_list.json"]; 154 var aJsonList = ["catetory_jtdr_list.json", "catetory_all_list.json", "catetory_nlbz_list.json", "catetory_3dyx_list.json", "catetory_dfdj_list.json"];
155 if (this._oInit[this._oSceneContext._iCurrentLeftIndex]) { //已经加载过数据直接取 155 if (this._oInit[this._oSceneContext._iCurrentLeftIndex]) { //已经加载过数据直接取
156 self.requestMediaList(1); 156 self.requestMediaList(1);
157 } else { 157 } else {
......
...@@ -74,23 +74,6 @@ ...@@ -74,23 +74,6 @@
74 ] 74 ]
75 }, 75 },
76 { 76 {
77 "name": "小游戏",
78 "image": [
79 {
80 "extension": ".png",
81 "code": "image_e9fea105-0412-4600-a0f1-f606a003c63f",
82 "size": 74263,
83 "enable": true,
84 "name": "b2b1bb5f-a956-4930-9273-eb72920a9faa.png",
85 "fileUrl": "upload/image/category/icon_top5.png",
86 "id": 7509,
87 "type": 2,
88 "width": 202,
89 "height": 94
90 }
91 ]
92 },
93 {
94 "name": "巅峰对决", 77 "name": "巅峰对决",
95 "image": [ 78 "image": [
96 { 79 {
......
1 { 1 {
2 "businessCode": "success", 2 "businessCode": "success",
3 "count2": 9, 3 "count2": 9,
4 "count": 25, 4 "count": 15,
5 "currentTime": 1581929128107, 5 "currentTime": 1581929128107,
6 "description": "", 6 "description": "",
7 "resultSet": [{ 7 "resultSet": [{
...@@ -213,146 +213,6 @@ ...@@ -213,146 +213,6 @@
213 "width": 270, 213 "width": 270,
214 "height": 167 214 "height": 167
215 }] 215 }]
216 },
217 {
218 "name": "猜猜我是谁",
219 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guess\"}}]}",
220 "package_name": "com.topdraw.xhx.guess",
221 "description": "猜猜我是谁简介",
222 "image": [{
223 "extension": ".png",
224 "size": 100405,
225 "enable": true,
226 "fileUrl": "upload/image/games/猜猜我是谁270-167.png",
227 "width": 270,
228 "height": 167
229 }]
230 },
231 {
232 "name": "欢乐叠蛋糕",
233 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.cake\"}}]}",
234 "package_name": "com.topdraw.xhx.cake",
235 "description": "欢乐叠蛋糕简介",
236 "image": [{
237 "extension": ".png",
238 "size": 100405,
239 "enable": true,
240 "fileUrl": "upload/image/games/欢乐叠蛋糕270-167.png",
241 "width": 270,
242 "height": 167
243 }]
244 },
245 {
246 "name": "记忆翻牌",
247 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.fanpai\"}}]}",
248 "package_name": "com.topdraw.xhx.fanpai",
249 "description": "记忆翻牌简介",
250 "image": [{
251 "extension": ".png",
252 "size": 100405,
253 "enable": true,
254 "fileUrl": "upload/image/games/记忆翻牌270-167.png",
255 "width": 270,
256 "height": 167
257 }]
258 },
259 {
260 "name": "接糖果",
261 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.candy\"}}]}",
262 "package_name": "com.topdraw.xhx.candy",
263 "description": "接糖果简介",
264 "image": [{
265 "extension": ".png",
266 "size": 100405,
267 "enable": true,
268 "fileUrl": "upload/image/games/接糖果270-167.png",
269 "width": 270,
270 "height": 167
271 }]
272 },
273 {
274 "name": "数一数",
275 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.shuyishu\"}}]}",
276 "package_name": "com.topdraw.xhx.shuyishu",
277 "description": "数一数简介",
278 "image": [{
279 "extension": ".png",
280 "size": 100405,
281 "enable": true,
282 "fileUrl": "upload/image/games/数一数270-167.png",
283 "width": 270,
284 "height": 167
285 }]
286 },
287 {
288 "name": "它的颜色",
289 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guesscolor\"}}]}",
290 "package_name": "com.topdraw.xhx.guesscolor",
291 "description": "它的颜色简介",
292 "image": [{
293 "extension": ".png",
294 "size": 100405,
295 "enable": true,
296 "fileUrl": "upload/image/games/它的颜色270-167.png",
297 "width": 270,
298 "height": 167
299 }]
300 },
301 {
302 "name": "奔跑吧小兔子",
303 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.run\"}}]}",
304 "package_name": "com.topdraw.xhx.run",
305 "description": "奔跑吧小兔子简介",
306 "image": [{
307 "extension": ".png",
308 "size": 100405,
309 "enable": true,
310 "fileUrl": "upload/image/games/奔跑吧小兔子270-167.png",
311 "width": 270,
312 "height": 167
313 }]
314 },
315 {
316 "name": "旋转海盗",
317 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}",
318 "package_name": "com.topdraw.xhx.haidao",
319 "description": "旋转海盗简介",
320 "image": [{
321 "extension": ".png",
322 "size": 100405,
323 "enable": true,
324 "fileUrl": "upload/image/games/旋转海盗270-167.png",
325 "width": 270,
326 "height": 167
327 }]
328 },
329 {
330 "name": "飞檐走壁",
331 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.feiyanzoubi\"}}]}",
332 "package_name": "com.topdraw.xhx.feiyanzoubi",
333 "description": "飞檐走壁简介",
334 "image": [{
335 "extension": ".png",
336 "size": 100405,
337 "enable": true,
338 "fileUrl": "upload/image/games/飞檐走壁270-167.png",
339 "width": 270,
340 "height": 167
341 }]
342 },
343 {
344 "name": "火箭小象",
345 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.bird\"}}]}",
346 "package_name": "com.topdraw.xhx.bird",
347 "description": "火箭小象简介",
348 "image": [{
349 "extension": ".png",
350 "size": 100405,
351 "enable": true,
352 "fileUrl": "upload/image/games/火箭小象270-167.png",
353 "width": 270,
354 "height": 167
355 }]
356 } 216 }
357 ] 217 ]
358 } 218 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -114,48 +114,6 @@ ...@@ -114,48 +114,6 @@
114 "width": 270, 114 "width": 270,
115 "height": 167 115 "height": 167
116 }] 116 }]
117 },
118 {
119 "name": "旋转海盗",
120 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}",
121 "package_name": "com.topdraw.xhx.haidao",
122 "description": "旋转海盗简介",
123 "image": [{
124 "extension": ".png",
125 "size": 100405,
126 "enable": true,
127 "fileUrl": "upload/image/games/旋转海盗270-167.png",
128 "width": 270,
129 "height": 167
130 }]
131 },
132 {
133 "name": "飞檐走壁",
134 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.feiyanzoubi\"}}]}",
135 "package_name": "com.topdraw.xhx.feiyanzoubi",
136 "description": "飞檐走壁简介",
137 "image": [{
138 "extension": ".png",
139 "size": 100405,
140 "enable": true,
141 "fileUrl": "upload/image/games/飞檐走壁270-167.png",
142 "width": 270,
143 "height": 167
144 }]
145 },
146 {
147 "name": "火箭小象",
148 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.bird\"}}]}",
149 "package_name": "com.topdraw.xhx.bird",
150 "description": "火箭小象简介",
151 "image": [{
152 "extension": ".png",
153 "size": 100405,
154 "enable": true,
155 "fileUrl": "upload/image/games/火箭小象270-167.png",
156 "width": 270,
157 "height": 167
158 }]
159 } 117 }
160 ] 118 ]
161 } 119 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -59,34 +59,6 @@ ...@@ -59,34 +59,6 @@
59 "width": 270, 59 "width": 270,
60 "height": 167 60 "height": 167
61 }] 61 }]
62 },
63 {
64 "name": "猜猜我是谁",
65 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guess\"}}]}",
66 "package_name": "com.topdraw.xhx.guess",
67 "description": "猜猜我是谁简介",
68 "image": [{
69 "extension": ".png",
70 "size": 100405,
71 "enable": true,
72 "fileUrl": "upload/image/games/猜猜我是谁270-167.png",
73 "width": 270,
74 "height": 167
75 }]
76 },
77 {
78 "name": "旋转海盗",
79 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}",
80 "package_name": "com.topdraw.xhx.haidao",
81 "description": "旋转海盗简介",
82 "image": [{
83 "extension": ".png",
84 "size": 100405,
85 "enable": true,
86 "fileUrl": "upload/image/games/旋转海盗270-167.png",
87 "width": 270,
88 "height": 167
89 }]
90 } 62 }
91 ] 63 ]
92 } 64 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -58,48 +58,6 @@ ...@@ -58,48 +58,6 @@
58 "width": 270, 58 "width": 270,
59 "height": 167 59 "height": 167
60 }] 60 }]
61 },
62 {
63 "name": "猜猜我是谁",
64 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guess\"}}]}",
65 "package_name": "com.topdraw.xhx.guess",
66 "description": "猜猜我是谁简介",
67 "image": [{
68 "extension": ".png",
69 "size": 100405,
70 "enable": true,
71 "fileUrl": "upload/image/games/猜猜我是谁270-167.png",
72 "width": 270,
73 "height": 167
74 }]
75 },
76 {
77 "name": "记忆翻牌",
78 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.fanpai\"}}]}",
79 "package_name": "com.topdraw.xhx.fanpai",
80 "description": "记忆翻牌简介",
81 "image": [{
82 "extension": ".png",
83 "size": 100405,
84 "enable": true,
85 "fileUrl": "upload/image/games/记忆翻牌270-167.png",
86 "width": 270,
87 "height": 167
88 }]
89 },
90 {
91 "name": "它的颜色",
92 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guesscolor\"}}]}",
93 "package_name": "com.topdraw.xhx.guesscolor",
94 "description": "它的颜色简介",
95 "image": [{
96 "extension": ".png",
97 "size": 100405,
98 "enable": true,
99 "fileUrl": "upload/image/games/它的颜色270-167.png",
100 "width": 270,
101 "height": 167
102 }]
103 } 61 }
104 ] 62 ]
105 } 63 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -73,76 +73,6 @@ ...@@ -73,76 +73,6 @@
73 "width": 270, 73 "width": 270,
74 "height": 167 74 "height": 167
75 }] 75 }]
76 },
77 {
78 "name": "欢乐叠蛋糕",
79 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.cake\"}}]}",
80 "package_name": "com.topdraw.xhx.cake",
81 "description": "欢乐叠蛋糕简介",
82 "image": [{
83 "extension": ".png",
84 "size": 100405,
85 "enable": true,
86 "fileUrl": "upload/image/games/欢乐叠蛋糕270-167.png",
87 "width": 270,
88 "height": 167
89 }]
90 },
91 {
92 "name": "奔跑吧小兔子",
93 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.run\"}}]}",
94 "package_name": "com.topdraw.xhx.run",
95 "description": "奔跑吧小兔子简介",
96 "image": [{
97 "extension": ".png",
98 "size": 100405,
99 "enable": true,
100 "fileUrl": "upload/image/games/奔跑吧小兔子270-167.png",
101 "width": 270,
102 "height": 167
103 }]
104 },
105 {
106 "name": "旋转海盗",
107 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}",
108 "package_name": "com.topdraw.xhx.haidao",
109 "description": "旋转海盗简介",
110 "image": [{
111 "extension": ".png",
112 "size": 100405,
113 "enable": true,
114 "fileUrl": "upload/image/games/旋转海盗270-167.png",
115 "width": 270,
116 "height": 167
117 }]
118 },
119 {
120 "name": "飞檐走壁",
121 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.feiyanzoubi\"}}]}",
122 "package_name": "com.topdraw.xhx.feiyanzoubi",
123 "description": "飞檐走壁简介",
124 "image": [{
125 "extension": ".png",
126 "size": 100405,
127 "enable": true,
128 "fileUrl": "upload/image/games/飞檐走壁270-167.png",
129 "width": 270,
130 "height": 167
131 }]
132 },
133 {
134 "name": "火箭小象",
135 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.bird\"}}]}",
136 "package_name": "com.topdraw.xhx.bird",
137 "description": "火箭小象简介",
138 "image": [{
139 "extension": ".png",
140 "size": 100405,
141 "enable": true,
142 "fileUrl": "upload/image/games/火箭小象270-167.png",
143 "width": 270,
144 "height": 167
145 }]
146 } 76 }
147 ] 77 ]
148 } 78 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -128,146 +128,6 @@ ...@@ -128,146 +128,6 @@
128 "width": 270, 128 "width": 270,
129 "height": 167 129 "height": 167
130 }] 130 }]
131 },
132 {
133 "name": "猜猜我是谁",
134 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guess\"}}]}",
135 "package_name": "com.topdraw.xhx.guess",
136 "description": "猜猜我是谁简介",
137 "image": [{
138 "extension": ".png",
139 "size": 100405,
140 "enable": true,
141 "fileUrl": "upload/image/games/猜猜我是谁270-167.png",
142 "width": 270,
143 "height": 167
144 }]
145 },
146 {
147 "name": "欢乐叠蛋糕",
148 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.cake\"}}]}",
149 "package_name": "com.topdraw.xhx.cake",
150 "description": "欢乐叠蛋糕简介",
151 "image": [{
152 "extension": ".png",
153 "size": 100405,
154 "enable": true,
155 "fileUrl": "upload/image/games/欢乐叠蛋糕270-167.png",
156 "width": 270,
157 "height": 167
158 }]
159 },
160 {
161 "name": "记忆翻牌",
162 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.fanpai\"}}]}",
163 "package_name": "com.topdraw.xhx.fanpai",
164 "description": "记忆翻牌简介",
165 "image": [{
166 "extension": ".png",
167 "size": 100405,
168 "enable": true,
169 "fileUrl": "upload/image/games/记忆翻牌270-167.png",
170 "width": 270,
171 "height": 167
172 }]
173 },
174 {
175 "name": "接糖果",
176 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.candy\"}}]}",
177 "package_name": "com.topdraw.xhx.candy",
178 "description": "接糖果简介",
179 "image": [{
180 "extension": ".png",
181 "size": 100405,
182 "enable": true,
183 "fileUrl": "upload/image/games/接糖果270-167.png",
184 "width": 270,
185 "height": 167
186 }]
187 },
188 {
189 "name": "数一数",
190 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.shuyishu\"}}]}",
191 "package_name": "com.topdraw.xhx.shuyishu",
192 "description": "数一数简介",
193 "image": [{
194 "extension": ".png",
195 "size": 100405,
196 "enable": true,
197 "fileUrl": "upload/image/games/数一数270-167.png",
198 "width": 270,
199 "height": 167
200 }]
201 },
202 {
203 "name": "它的颜色",
204 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.guesscolor\"}}]}",
205 "package_name": "com.topdraw.xhx.guesscolor",
206 "description": "它的颜色简介",
207 "image": [{
208 "extension": ".png",
209 "size": 100405,
210 "enable": true,
211 "fileUrl": "upload/image/games/它的颜色270-167.png",
212 "width": 270,
213 "height": 167
214 }]
215 },
216 {
217 "name": "奔跑吧小兔子",
218 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.run\"}}]}",
219 "package_name": "com.topdraw.xhx.run",
220 "description": "奔跑吧小兔子简介",
221 "image": [{
222 "extension": ".png",
223 "size": 100405,
224 "enable": true,
225 "fileUrl": "upload/image/games/奔跑吧小兔子270-167.png",
226 "width": 270,
227 "height": 167
228 }]
229 },
230 {
231 "name": "旋转海盗",
232 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.haidao\"}}]}",
233 "package_name": "com.topdraw.xhx.haidao",
234 "description": "旋转海盗简介",
235 "image": [{
236 "extension": ".png",
237 "size": 100405,
238 "enable": true,
239 "fileUrl": "upload/image/games/旋转海盗270-167.png",
240 "width": 270,
241 "height": 167
242 }]
243 },
244 {
245 "name": "飞檐走壁",
246 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.feiyanzoubi\"}}]}",
247 "package_name": "com.topdraw.xhx.feiyanzoubi",
248 "description": "飞檐走壁简介",
249 "image": [{
250 "extension": ".png",
251 "size": 100405,
252 "enable": true,
253 "fileUrl": "upload/image/games/飞檐走壁270-167.png",
254 "width": 270,
255 "height": 167
256 }]
257 },
258 {
259 "name": "火箭小象",
260 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.bird\"}}]}",
261 "package_name": "com.topdraw.xhx.bird",
262 "description": "火箭小象简介",
263 "image": [{
264 "extension": ".png",
265 "size": 100405,
266 "enable": true,
267 "fileUrl": "upload/image/games/火箭小象270-167.png",
268 "width": 270,
269 "height": 167
270 }]
271 } 131 }
272 ] 132 ]
273 } 133 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -39,13 +39,13 @@ ...@@ -39,13 +39,13 @@
39 } 39 }
40 }, 40 },
41 { 41 {
42 "name": "飞檐走壁", 42 "name": "奇幻海底",
43 "description": "上完网课,锻炼下记忆力", 43 "description": "和小兔子一起出门吧",
44 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.topdraw.xhx.feiyanzoubi\"}}]}", 44 "tvlink": "{\"click\":[{\"action\":\"ChangeScene\",\"parameters\":{\"sceneName\":\"sceneGameDetail\",\"packageName\":\"com.orbbec.OceanAR\",\"activityName\":\"com.orbbec.u3d.OrbbecActivity\",\"downloadUrl\":\"apk/com.orbbec.OceanAR_v2.1.14_bc89_20190704_Release.apk\"}}]}",
45 "images": { 45 "images": {
46 "extension": ".png", 46 "extension": ".png",
47 "enable": true, 47 "enable": true,
48 "fileUrl": "upload/image/main/飞檐走壁564-358.png", 48 "fileUrl": "upload/image/main/奇幻海底564-358.png",
49 "width": 564, 49 "width": 564,
50 "height": 358 50 "height": 358
51 } 51 }
......
1 {"packageUrl":"http://demo.cloud.api.findfun.topdraw.cn:38081/findfun/remote-assets/","remoteManifestUrl":"http://demo.cloud.api.findfun.topdraw.cn:38081/findfun/remote-assets/project.manifest","remoteVersionUrl":"http://demo.cloud.api.findfun.topdraw.cn:38081/findfun/remote-assets/version.manifest","version":"1.0.0"}
...\ No newline at end of file ...\ No newline at end of file
1 {"packageUrl":"http://sichuan-cmcc.api.forfun.topdraw.cn:8080/clutch/forfun/remote-assets/","remoteManifestUrl":"http://sichuan-cmcc.api.forfun.topdraw.cn:8080/clutch/forfun/remote-assets/project.manifest","remoteVersionUrl":"http://sichuan-cmcc.api.forfun.topdraw.cn:8080/clutch/forfun/remote-assets/version.manifest","version":"1.0.0"}
...\ No newline at end of file ...\ No newline at end of file
......
1 {
2 "engine_version": "2.2.0",
3 "has_native": true,
4 "project_type": "js",
5 "projectName": "For_Fun",
6 "packageName": "com.topdraw.forfun"
7 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "do_default": {
3 "exclude_from_template": [
4 "frameworks/runtime-src"
5 ]
6 },
7 "do_add_native_support": {
8 "append_from_template": {
9 "from": "frameworks/runtime-src",
10 "to": "frameworks/runtime-src",
11 "exclude": [
12 "proj.ios_mac/HelloJavascript.xcodeproj/project.xcworkspace",
13 "proj.ios_mac/HelloJavascript.xcodeproj/xcuserdata",
14 "proj.win32/Debug.win32",
15 "proj.win32/Release.win32",
16 "proj.win32/HelloJavascript.sdf"
17 ]
18 },
19 "append_file": [{
20 "from": "cocos/scripting/js-bindings/manual/jsb_module_register.cpp",
21 "to": "frameworks/runtime-src/Classes/jsb_module_register.cpp"
22 }],
23 "project_rename": {
24 "src_project_name": "HelloJavascript",
25 "files": [
26 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj",
27 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters",
28 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user",
29 "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln",
30 "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj"
31 ]
32 },
33 "project_replace_project_name": {
34 "src_project_name": "HelloJavascript",
35 "files": [
36 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj",
37 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.filters",
38 "frameworks/runtime-src/proj.win32/PROJECT_NAME.vcxproj.user",
39 "frameworks/runtime-src/proj.win32/PROJECT_NAME.sln",
40 "frameworks/runtime-src/proj.win32/main.cpp",
41 "frameworks/runtime-src/proj.android-studio/settings.gradle",
42 "frameworks/runtime-src/proj.android-studio/app/res/values/strings.xml",
43 "frameworks/runtime-src/proj.ios_mac/ios/main.m",
44 "frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch",
45 "frameworks/runtime-src/proj.ios_mac/PROJECT_NAME.xcodeproj/project.pbxproj",
46 "frameworks/runtime-src/Classes/AppDelegate.cpp"
47 ]
48 },
49 "project_replace_package_name": {
50 "src_package_name": "org.cocos2dx.hellojavascript",
51 "files": [
52 "frameworks/runtime-src/proj.android-studio/app/build.gradle",
53 "frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml"
54 ]
55 },
56 "project_replace_mac_bundleid": {
57 "src_bundle_id": "org.cocos2dx.hellojavascript",
58 "files": [
59 "frameworks/runtime-src/proj.ios_mac/mac/Info.plist"
60 ]
61 },
62 "project_replace_ios_bundleid": {
63 "src_bundle_id": "org.cocos2dx.hellojavascript",
64 "files": [
65 "frameworks/runtime-src/proj.ios_mac/ios/Info.plist"
66 ]
67 }
68 }
69 }
1 /****************************************************************************
2 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26 #include "AppDelegate.h"
27
28 #include "cocos2d.h"
29
30 #include "cocos/scripting/js-bindings/manual/jsb_module_register.hpp"
31 #include "cocos/scripting/js-bindings/manual/jsb_global.h"
32 #include "cocos/scripting/js-bindings/jswrapper/SeApi.h"
33 #include "cocos/scripting/js-bindings/event/EventDispatcher.h"
34 #include "cocos/scripting/js-bindings/manual/jsb_classtype.hpp"
35
36 USING_NS_CC;
37
38 AppDelegate::AppDelegate(int width, int height) : Application("Cocos Game", width, height)
39 {
40 }
41
42 AppDelegate::~AppDelegate()
43 {
44 }
45
46 bool AppDelegate::applicationDidFinishLaunching()
47 {
48 se::ScriptEngine *se = se::ScriptEngine::getInstance();
49
50 jsb_set_xxtea_key("93eb5b74-8065-43");
51 jsb_init_file_operation_delegate();
52
53 #if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
54 // Enable debugger here
55 jsb_enable_debugger("0.0.0.0", 6086, false);
56 #endif
57
58 se->setExceptionCallback([](const char *location, const char *message, const char *stack) {
59 // Send exception information to server like Tencent Bugly.
60 });
61
62 jsb_register_all_modules();
63
64 se->start();
65
66 se::AutoHandleScope hs;
67 jsb_run_script("jsb-adapter/jsb-builtin.js");
68 jsb_run_script("main.js");
69
70 se->addAfterCleanupHook([]() {
71 JSBClassType::destroy();
72 });
73
74 return true;
75 }
76
77 // This function will be called when the app is inactive. When comes a phone call,it's be invoked too
78 void AppDelegate::applicationDidEnterBackground()
79 {
80 EventDispatcher::dispatchEnterBackgroundEvent();
81 }
82
83 // this function will be called when the app is active again
84 void AppDelegate::applicationWillEnterForeground()
85 {
86 EventDispatcher::dispatchEnterForegroundEvent();
87 }
1 /****************************************************************************
2 Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25 #pragma once
26
27 #include "platform/CCApplication.h"
28 /**
29 @brief The cocos2d Application.
30
31 The reason for implement as private inheritance is to hide some interface call by Director.
32 */
33 class AppDelegate : public cocos2d::Application
34 {
35 public:
36 AppDelegate(int width, int height);
37 virtual ~AppDelegate();
38
39 /**
40 @brief Implement Director and Scene init code here.
41 @return true Initialize success, app continue.
42 @return false Initialize failed, app terminate.
43 */
44 virtual bool applicationDidFinishLaunching() override;
45
46 /**
47 @brief The function be called when the application enter background
48 @param the pointer of the application
49 */
50 virtual void applicationDidEnterBackground() override;
51
52 /**
53 @brief The function be called when the application enter foreground
54 @param the pointer of the application
55 */
56 virtual void applicationWillEnterForeground() override;
57 };
1 /****************************************************************************
2 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26 #include "cocos2d.h"
27
28 #include "cocos/scripting/js-bindings/manual/jsb_module_register.hpp"
29 #include "cocos/scripting/js-bindings/jswrapper/SeApi.h"
30
31 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.hpp"
32
33 #include "cocos/scripting/js-bindings/manual/jsb_global.h"
34 #include "cocos/scripting/js-bindings/manual/jsb_node.hpp"
35 #include "cocos/scripting/js-bindings/manual/jsb_conversions.hpp"
36 #include "cocos/scripting/js-bindings/manual/jsb_opengl_manual.hpp"
37 #include "cocos/scripting/js-bindings/manual/jsb_platform.h"
38 #include "cocos/scripting/js-bindings/manual/jsb_cocos2dx_manual.hpp"
39 #include "cocos/scripting/js-bindings/manual/jsb_xmlhttprequest.hpp"
40 #include "cocos/scripting/js-bindings/manual/jsb_cocos2dx_network_manual.h"
41 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_network_auto.hpp"
42 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.hpp"
43
44 #if USE_GFX_RENDERER
45 #include "cocos/scripting/js-bindings/auto/jsb_gfx_auto.hpp"
46 #include "cocos/scripting/js-bindings/auto/jsb_renderer_auto.hpp"
47 #include "cocos/scripting/js-bindings/manual/jsb_gfx_manual.hpp"
48 #include "cocos/scripting/js-bindings/manual/jsb_renderer_manual.hpp"
49 #endif
50
51 #if USE_SOCKET
52 #include "cocos/scripting/js-bindings/manual/jsb_websocket.hpp"
53 #include "cocos/scripting/js-bindings/manual/jsb_socketio.hpp"
54 #endif // USE_SOCKET
55
56 #if USE_AUDIO
57 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_audioengine_auto.hpp"
58 #endif
59
60 #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
61 #include "cocos/scripting/js-bindings/manual/JavaScriptObjCBridge.h"
62 #endif
63
64 #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
65 #include "cocos/scripting/js-bindings/manual/JavaScriptJavaBridge.h"
66 #endif
67
68 #if USE_GFX_RENDERER && USE_MIDDLEWARE
69 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_editor_support_auto.hpp"
70
71 #if USE_SPINE
72 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_spine_auto.hpp"
73 #include "cocos/scripting/js-bindings/manual/jsb_spine_manual.hpp"
74 #endif
75
76 #if USE_DRAGONBONES
77 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_dragonbones_auto.hpp"
78 #include "cocos/scripting/js-bindings/manual/jsb_dragonbones_manual.hpp"
79 #endif
80
81 #if USE_PARTICLE
82 #include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_particle_auto.hpp"
83 #endif
84
85 #endif // USE_MIDDLEWARE
86
87 #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
88
89 #if USE_VIDEO
90 #include "cocos/scripting/js-bindings/auto/jsb_video_auto.hpp"
91 #endif
92
93 #if USE_WEB_VIEW
94 #include "cocos/scripting/js-bindings/auto/jsb_webview_auto.hpp"
95 #endif
96
97 #endif // (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
98
99 using namespace cocos2d;
100
101 bool jsb_register_all_modules()
102 {
103 se::ScriptEngine* se = se::ScriptEngine::getInstance();
104
105 se->addBeforeInitHook([](){
106 JSBClassType::init();
107 });
108
109 se->addBeforeCleanupHook([se](){
110 se->garbageCollect();
111 PoolManager::getInstance()->getCurrentPool()->clear();
112 se->garbageCollect();
113 PoolManager::getInstance()->getCurrentPool()->clear();
114 });
115
116 se->addRegisterCallback(jsb_register_global_variables);
117 se->addRegisterCallback(JSB_register_opengl);
118 se->addRegisterCallback(register_all_engine);
119 se->addRegisterCallback(register_all_cocos2dx_manual);
120 se->addRegisterCallback(register_platform_bindings);
121
122 se->addRegisterCallback(register_all_network);
123 se->addRegisterCallback(register_all_cocos2dx_network_manual);
124 se->addRegisterCallback(register_all_xmlhttprequest);
125 // extension depend on network
126 se->addRegisterCallback(register_all_extension);
127
128 #if USE_GFX_RENDERER
129 se->addRegisterCallback(register_all_gfx);
130 se->addRegisterCallback(jsb_register_gfx_manual);
131 se->addRegisterCallback(register_all_renderer);
132 se->addRegisterCallback(jsb_register_renderer_manual);
133 #endif
134
135 #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
136 se->addRegisterCallback(register_javascript_objc_bridge);
137 #endif
138
139 #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
140 se->addRegisterCallback(register_javascript_java_bridge);
141 #endif
142
143 #if USE_AUDIO
144 se->addRegisterCallback(register_all_audioengine);
145 #endif
146
147 #if USE_SOCKET
148 se->addRegisterCallback(register_all_websocket);
149 se->addRegisterCallback(register_all_socketio);
150 #endif
151
152 #if USE_GFX_RENDERER && USE_MIDDLEWARE
153 se->addRegisterCallback(register_all_cocos2dx_editor_support);
154
155 #if USE_SPINE
156 se->addRegisterCallback(register_all_cocos2dx_spine);
157 se->addRegisterCallback(register_all_spine_manual);
158 #endif
159
160 #if USE_DRAGONBONES
161 se->addRegisterCallback(register_all_cocos2dx_dragonbones);
162 se->addRegisterCallback(register_all_dragonbones_manual);
163 #endif
164
165 #if USE_PARTICLE
166 se->addRegisterCallback(register_all_cocos2dx_particle);
167 #endif
168
169 #endif // USE_MIDDLEWARE
170
171 #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
172
173 #if USE_VIDEO
174 se->addRegisterCallback(register_all_video);
175 #endif
176
177 #if USE_WEB_VIEW
178 se->addRegisterCallback(register_all_webview);
179 #endif
180
181 #endif // (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
182
183 se->addAfterCleanupHook([](){
184 PoolManager::getInstance()->getCurrentPool()->clear();
185 JSBClassType::destroy();
186 });
187 return true;
188 }
1 .gradle
2 /local.properties
3 /.idea/workspace.xml
4 /.idea/libraries
5 .DS_Store
6 /build
7 /captures
...@@ -20,9 +20,9 @@ android { ...@@ -20,9 +20,9 @@ android {
20 targets 'cocos2djs' 20 targets 'cocos2djs'
21 arguments 'NDK_TOOLCHAIN_VERSION=clang' 21 arguments 'NDK_TOOLCHAIN_VERSION=clang'
22 22
23 def module_paths = [project.file("D:/CocosCreator_2.2.0/resources/cocos2d-x"), 23 def module_paths = [project.file("D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x"),
24 project.file("D:/CocosCreator_2.2.0/resources/cocos2d-x/cocos"), 24 project.file("D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/cocos"),
25 project.file("D:/CocosCreator_2.2.0/resources/cocos2d-x/external")] 25 project.file("D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/external")]
26 if (Os.isFamily(Os.FAMILY_WINDOWS)) { 26 if (Os.isFamily(Os.FAMILY_WINDOWS)) {
27 arguments 'NDK_MODULE_PATH=' + module_paths.join(";") 27 arguments 'NDK_MODULE_PATH=' + module_paths.join(";")
28 } 28 }
...@@ -134,7 +134,7 @@ android.applicationVariants.all { variant -> ...@@ -134,7 +134,7 @@ android.applicationVariants.all { variant ->
134 134
135 dependencies { 135 dependencies {
136 implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 136 implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
137 implementation fileTree(include: ['*.jar'], dir: 'D:/CocosCreator_2.2.0/resources/cocos2d-x/cocos/platform/android/java/libs') 137 implementation fileTree(include: ['*.jar'], dir: 'D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/cocos/platform/android/java/libs')
138 implementation project(':libcocos2dx') 138 implementation project(':libcocos2dx')
139 implementation files('libs/TopdrawSDK.jar') 139 implementation files('libs/TopdrawSDK.jar')
140 } 140 }
......
1 LOCAL_PATH := $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_MODULE := cocos2djs_shared
6
7 LOCAL_MODULE_FILENAME := libcocos2djs
8
9 ifeq ($(USE_ARM_MODE),1)
10 LOCAL_ARM_MODE := arm
11 endif
12
13 LOCAL_SRC_FILES := hellojavascript/main.cpp \
14 ../../../Classes/AppDelegate.cpp \
15 ../../../Classes/jsb_module_register.cpp \
16
17 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../Classes
18
19 LOCAL_STATIC_LIBRARIES := cocos2dx_static
20
21 include $(BUILD_SHARED_LIBRARY)
22
23 $(call import-module, cocos)
1 APP_STL := c++_static
2
3 # Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices
4 APP_ABI := armeabi-v7a
5
6 APP_CPPFLAGS := -frtti -std=c++11 -fsigned-char
7 APP_LDFLAGS := -latomic
8
9 # To solve windows commands char length too long
10 APP_SHORT_COMMANDS := true
11
12 USE_ARM_MODE := 1
13
14 # MUST be careful to modify this manually
15 # disable module will speed up compile time, and reduce package size
16 USE_GFX_RENDERER := 1
17 USE_VIDEO := 1
18 USE_WEB_VIEW := 1
19 USE_AUDIO := 1
20 USE_SOCKET := 1
21 USE_SPINE := 1
22 USE_DRAGONBONES := 1
23 USE_TIFF := 1
24 USE_MIDDLEWARE := 1
25 USE_PARTICLE := 1
26
27 APP_CPPFLAGS += -DUSE_GFX_RENDERER=$(USE_GFX_RENDERER)
28 APP_CPPFLAGS += -DUSE_VIDEO=${USE_VIDEO}
29 APP_CPPFLAGS += -DUSE_WEB_VIEW=${USE_WEB_VIEW}
30 APP_CPPFLAGS += -DUSE_AUDIO=${USE_AUDIO}
31 APP_CPPFLAGS += -DUSE_SOCKET=${USE_SOCKET}
32 APP_CPPFLAGS += -DUSE_SPINE=${USE_SPINE}
33 APP_CPPFLAGS += -DUSE_DRAGONBONES=${USE_DRAGONBONES}
34 APP_CPPFLAGS += -DCC_USE_TIFF=${USE_TIFF}
35 APP_CPPFLAGS += -DUSE_MIDDLEWARE=${USE_MIDDLEWARE}
36 APP_CPPFLAGS += -DUSE_PARTICLE=${USE_PARTICLE}
37
38 ifeq ($(NDK_DEBUG),1)
39 APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
40 APP_CFLAGS += -DCOCOS2D_DEBUG=1
41 APP_OPTIM := debug
42 else
43 APP_CPPFLAGS += -DNDEBUG
44 APP_CFLAGS += -DNDEBUG
45 APP_OPTIM := release
46 endif
47
48 # Some Android Simulators don't support SSE instruction, so disable it for x86 arch.
49 APP_CPPFLAGS += -U__SSE__
50 USE_EDIT_BOX := 1
1 /****************************************************************************
2 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26 #include "AppDelegate.h"
27 #include "cocos2d.h"
28 #include "platform/android/jni/JniHelper.h"
29 #include <jni.h>
30 #include <android/log.h>
31
32 #define LOG_TAG "main"
33 #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
34 using namespace cocos2d;
35
36 //called when JNI_OnLoad()
37 void cocos_jni_env_init(JNIEnv *env)
38 {
39 LOGD("cocos_jni_env_init");
40 }
41
42 //called when onSurfaceCreated()
43 Application *cocos_android_app_init(JNIEnv *env, int width, int height)
44 {
45 LOGD("cocos_android_app_init");
46 auto app = new AppDelegate(width, height);
47 return app;
48 }
49
50 extern "C"
51 {
52 /*JNI_CALL_FUNCTION*/
53 }
1 ndk.dir=D\:\\SDK\\android-ndk-r16b
2 sdk.dir=D\:\\SDK\\android-sdk-studio
1 # Add project specific ProGuard rules here.
2 # By default, the flags in this file are appended to flags specified
3 # in E:\developSoftware\Android\SDK/tools/proguard/proguard-android.txt
4 # You can edit the include path and order by changing the proguardFiles
5 # directive in build.gradle.
6 #
7 # For more details, see
8 # http://developer.android.com/guide/developing/tools/proguard.html
9
10 # Add any project specific keep options here:
11
12 # If your project uses WebView with JS, uncomment the following
13 # and specify the fully qualified class name to the JavaScript interface
14 # class:
15 #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 # public *;
17 #}
18
19 # Proguard Cocos2d-x-lite for release
20 -keep public class org.cocos2dx.** { *; }
21 -dontwarn org.cocos2dx.**
22
23 # Proguard Apache HTTP for release
24 -keep class org.apache.http.** { *; }
25 -dontwarn org.apache.http.**
26
27 # Proguard okhttp for release
28 -keep class okhttp3.** { *; }
29 -dontwarn okhttp3.**
30
31 -keep class okio.** { *; }
32 -dontwarn okio.**
33
34 # Proguard Android Webivew for release. you can comment if you are not using a webview
35 -keep public class android.net.http.SslError
36 -keep public class android.webkit.WebViewClient
37
38 -dontwarn android.webkit.WebView
39 -dontwarn android.net.http.SslError
40 -dontwarn android.webkit.WebViewClient
41
42 # keep anysdk for release. you can comment if you are not using anysdk
43 -keep public class com.anysdk.** { *; }
44 -dontwarn com.anysdk.**
45
46 -dontwarn tv.icntv.**
47 -keep class tv.icntv.**{*;}
48
49 -dontwarn tv.newtv.**
50 -keep class tv.newtv.**{*;}
1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 #
4 # This file must be checked in Version Control Systems.
5 #
6 # To customize properties used by the Ant build system use,
7 # "ant.properties", and override values to adapt the script to your
8 # project structure.
9
10 # Project target.
11 target=android-29
1 {
2 "ndk_module_path" :[
3 "D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x",
4 "D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/cocos",
5 "D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/external"
6 ],
7 "copy_resources": []
8 }
1 // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
3 buildscript {
4
5 repositories {
6 google()
7 jcenter()
8 }
9 dependencies {
10 classpath 'com.android.tools.build:gradle:3.2.0'
11
12
13 // NOTE: Do not place your application dependencies here; they belong
14 // in the individual module build.gradle files
15 }
16 }
17
18 allprojects {
19 repositories {
20 google()
21 jcenter()
22 flatDir {
23 dirs 'libs'
24 }
25 }
26 }
27
28 task clean(type: Delete) {
29 delete rootProject.buildDir
30 }
1 # Project-wide Gradle settings.
2
3 # IDE (e.g. Android Studio) users:
4 # Gradle settings configured through the IDE *will override*
5 # any settings specified in this file.
6
7 # For more details on how to configure your build environment visit
8 # http://www.gradle.org/docs/current/userguide/build_environment.html
9
10 # Specifies the JVM arguments used for the daemon process.
11 # The setting is particularly useful for tweaking memory settings.
12 # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14
15 # When configured, Gradle will run in incubating parallel mode.
16 # This option should only be used with decoupled projects. More details, visit
17 # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 # org.gradle.parallel=true
19
20 # Android SDK version that will be used as the compile project
21 PROP_COMPILE_SDK_VERSION=29
22
23 # Android SDK version that will be used as the earliest version of android this application can run on
24 PROP_MIN_SDK_VERSION=16
25
26 # Android SDK version that will be used as the latest version of android this application has been tested on
27 PROP_TARGET_SDK_VERSION=29
28
29 # Android Build Tools version that will be used as the compile project
30 PROP_BUILD_TOOLS_VERSION=28.0.3
31
32 # List of CPU Archtexture to build that application with
33 # Available architextures (armeabi-v7a | arm64-v8a | x86)
34 # To build for multiple architexture, use the `:` between them
35 # Example - PROP_APP_ABI=armeabi-v7a
36 PROP_APP_ABI=armeabi-v7a
37
38 # fill in sign information for release mode
39 RELEASE_STORE_FILE=D:/Workspace/topdraw.keystore
40 RELEASE_STORE_PASSWORD=Topdraw!17qaz
41 RELEASE_KEY_ALIAS=topdraw
42 RELEASE_KEY_PASSWORD=Topdraw!17qaz
1 #!/usr/bin/env bash
2
3 ##############################################################################
4 ##
5 ## Gradle start up script for UN*X
6 ##
7 ##############################################################################
8
9 # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 DEFAULT_JVM_OPTS=""
11
12 APP_NAME="Gradle"
13 APP_BASE_NAME=`basename "$0"`
14
15 # Use the maximum available, or set MAX_FD != -1 to use that value.
16 MAX_FD="maximum"
17
18 warn ( ) {
19 echo "$*"
20 }
21
22 die ( ) {
23 echo
24 echo "$*"
25 echo
26 exit 1
27 }
28
29 # OS specific support (must be 'true' or 'false').
30 cygwin=false
31 msys=false
32 darwin=false
33 case "`uname`" in
34 CYGWIN* )
35 cygwin=true
36 ;;
37 Darwin* )
38 darwin=true
39 ;;
40 MINGW* )
41 msys=true
42 ;;
43 esac
44
45 # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 if $cygwin ; then
47 [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 fi
49
50 # Attempt to set APP_HOME
51 # Resolve links: $0 may be a link
52 PRG="$0"
53 # Need this for relative symlinks.
54 while [ -h "$PRG" ] ; do
55 ls=`ls -ld "$PRG"`
56 link=`expr "$ls" : '.*-> \(.*\)$'`
57 if expr "$link" : '/.*' > /dev/null; then
58 PRG="$link"
59 else
60 PRG=`dirname "$PRG"`"/$link"
61 fi
62 done
63 SAVED="`pwd`"
64 cd "`dirname \"$PRG\"`/" >&-
65 APP_HOME="`pwd -P`"
66 cd "$SAVED" >&-
67
68 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69
70 # Determine the Java command to use to start the JVM.
71 if [ -n "$JAVA_HOME" ] ; then
72 if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 # IBM's JDK on AIX uses strange locations for the executables
74 JAVACMD="$JAVA_HOME/jre/sh/java"
75 else
76 JAVACMD="$JAVA_HOME/bin/java"
77 fi
78 if [ ! -x "$JAVACMD" ] ; then
79 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80
81 Please set the JAVA_HOME variable in your environment to match the
82 location of your Java installation."
83 fi
84 else
85 JAVACMD="java"
86 which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87
88 Please set the JAVA_HOME variable in your environment to match the
89 location of your Java installation."
90 fi
91
92 # Increase the maximum file descriptors if we can.
93 if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 MAX_FD_LIMIT=`ulimit -H -n`
95 if [ $? -eq 0 ] ; then
96 if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 MAX_FD="$MAX_FD_LIMIT"
98 fi
99 ulimit -n $MAX_FD
100 if [ $? -ne 0 ] ; then
101 warn "Could not set maximum file descriptor limit: $MAX_FD"
102 fi
103 else
104 warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 fi
106 fi
107
108 # For Darwin, add options to specify how the application appears in the dock
109 if $darwin; then
110 GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 fi
112
113 # For Cygwin, switch paths to Windows format before running java
114 if $cygwin ; then
115 APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117
118 # We build the pattern for arguments to be converted via cygpath
119 ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 SEP=""
121 for dir in $ROOTDIRSRAW ; do
122 ROOTDIRS="$ROOTDIRS$SEP$dir"
123 SEP="|"
124 done
125 OURCYGPATTERN="(^($ROOTDIRS))"
126 # Add a user-defined pattern to the cygpath arguments
127 if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 fi
130 # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 i=0
132 for arg in "$@" ; do
133 CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135
136 if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 else
139 eval `echo args$i`="\"$arg\""
140 fi
141 i=$((i+1))
142 done
143 case $i in
144 (0) set -- ;;
145 (1) set -- "$args0" ;;
146 (2) set -- "$args0" "$args1" ;;
147 (3) set -- "$args0" "$args1" "$args2" ;;
148 (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 esac
155 fi
156
157 # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 function splitJvmOpts() {
159 JVM_OPTS=("$@")
160 }
161 eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163
164 exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
1 @if "%DEBUG%" == "" @echo off
2 @rem ##########################################################################
3 @rem
4 @rem Gradle startup script for Windows
5 @rem
6 @rem ##########################################################################
7
8 @rem Set local scope for the variables with windows NT shell
9 if "%OS%"=="Windows_NT" setlocal
10
11 @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 set DEFAULT_JVM_OPTS=
13
14 set DIRNAME=%~dp0
15 if "%DIRNAME%" == "" set DIRNAME=.
16 set APP_BASE_NAME=%~n0
17 set APP_HOME=%DIRNAME%
18
19 @rem Find java.exe
20 if defined JAVA_HOME goto findJavaFromJavaHome
21
22 set JAVA_EXE=java.exe
23 %JAVA_EXE% -version >NUL 2>&1
24 if "%ERRORLEVEL%" == "0" goto init
25
26 echo.
27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 echo.
29 echo Please set the JAVA_HOME variable in your environment to match the
30 echo location of your Java installation.
31
32 goto fail
33
34 :findJavaFromJavaHome
35 set JAVA_HOME=%JAVA_HOME:"=%
36 set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
38 if exist "%JAVA_EXE%" goto init
39
40 echo.
41 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 echo.
43 echo Please set the JAVA_HOME variable in your environment to match the
44 echo location of your Java installation.
45
46 goto fail
47
48 :init
49 @rem Get command-line arguments, handling Windowz variants
50
51 if not "%OS%" == "Windows_NT" goto win9xME_args
52 if "%@eval[2+2]" == "4" goto 4NT_args
53
54 :win9xME_args
55 @rem Slurp the command line arguments.
56 set CMD_LINE_ARGS=
57 set _SKIP=2
58
59 :win9xME_args_slurp
60 if "x%~1" == "x" goto execute
61
62 set CMD_LINE_ARGS=%*
63 goto execute
64
65 :4NT_args
66 @rem Get arguments from the 4NT Shell from JP Software
67 set CMD_LINE_ARGS=%$
68
69 :execute
70 @rem Setup the command line
71
72 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
74 @rem Execute Gradle
75 "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
77 :end
78 @rem End local scope for the variables with windows NT shell
79 if "%ERRORLEVEL%"=="0" goto mainEnd
80
81 :fail
82 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 rem the _cmd.exe /c_ return code!
84 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 exit /b 1
86
87 :mainEnd
88 if "%OS%"=="Windows_NT" endlocal
89
90 :omega
1 <?xml version="1.0" encoding="UTF-8"?>
2 <module external.linked.project.id="proj.android-studio" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3 <component name="FacetManager">
4 <facet type="java-gradle" name="Java-Gradle">
5 <configuration>
6 <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
7 <option name="BUILDABLE" value="false" />
8 </configuration>
9 </facet>
10 </component>
11 <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
12 <exclude-output />
13 <content url="file://$MODULE_DIR$">
14 <excludeFolder url="file://$MODULE_DIR$/.gradle" />
15 </content>
16 <orderEntry type="inheritedJdk" />
17 <orderEntry type="sourceFolder" forTests="false" />
18 </component>
19 </module>
...\ No newline at end of file ...\ No newline at end of file
1 include ':libcocos2dx'
2 project(':libcocos2dx').projectDir = new File('D:/Programs/CocosCreator_2.2.0/resources/cocos2d-x/cocos/platform/android/libcocos2dx')
3 include ':For_Fun'
4 project(':For_Fun').projectDir = new File(settingsDir, 'app')
1 /****************************************************************************
2 Copyright (c) 2010-2013 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26 #import <UIKit/UIKit.h>
27
28 @class RootViewController;
29
30 @interface AppController : NSObject <UIApplicationDelegate>
31 {
32 }
33
34 @property(nonatomic, readonly) RootViewController* viewController;
35
36 @end
37
1 /****************************************************************************
2 Copyright (c) 2010-2013 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26
27 #import "AppController.h"
28 #import "cocos2d.h"
29 #import "AppDelegate.h"
30 #import "RootViewController.h"
31 #import "SDKWrapper.h"
32 #import "platform/ios/CCEAGLView-ios.h"
33
34
35
36 using namespace cocos2d;
37
38 @implementation AppController
39
40 Application* app = nullptr;
41 @synthesize window;
42
43 #pragma mark -
44 #pragma mark Application lifecycle
45
46 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
47 [[SDKWrapper getInstance] application:application didFinishLaunchingWithOptions:launchOptions];
48 // Add the view controller's view to the window and display.
49 float scale = [[UIScreen mainScreen] scale];
50 CGRect bounds = [[UIScreen mainScreen] bounds];
51 window = [[UIWindow alloc] initWithFrame: bounds];
52
53 // cocos2d application instance
54 app = new AppDelegate(bounds.size.width * scale, bounds.size.height * scale);
55 app->setMultitouch(true);
56
57 // Use RootViewController to manage CCEAGLView
58 _viewController = [[RootViewController alloc]init];
59 #ifdef NSFoundationVersionNumber_iOS_7_0
60 _viewController.automaticallyAdjustsScrollViewInsets = NO;
61 _viewController.extendedLayoutIncludesOpaqueBars = NO;
62 _viewController.edgesForExtendedLayout = UIRectEdgeAll;
63 #else
64 _viewController.wantsFullScreenLayout = YES;
65 #endif
66 // Set RootViewController to window
67 if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
68 {
69 // warning: addSubView doesn't work on iOS6
70 [window addSubview: _viewController.view];
71 }
72 else
73 {
74 // use this method on ios6
75 [window setRootViewController:_viewController];
76 }
77
78 [window makeKeyAndVisible];
79
80 [[UIApplication sharedApplication] setStatusBarHidden:YES];
81
82 //run the cocos2d-x game scene
83 app->start();
84
85 return YES;
86 }
87
88 - (void)applicationWillResignActive:(UIApplication *)application {
89 /*
90 Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
91 Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
92 */
93 [[SDKWrapper getInstance] applicationWillResignActive:application];
94 }
95
96 - (void)applicationDidBecomeActive:(UIApplication *)application {
97 /*
98 Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
99 */
100 [[SDKWrapper getInstance] applicationDidBecomeActive:application];
101 }
102
103 - (void)applicationDidEnterBackground:(UIApplication *)application {
104 /*
105 Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
106 If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
107 */
108 [[SDKWrapper getInstance] applicationDidEnterBackground:application];
109 app->applicationDidEnterBackground();
110
111 }
112
113 - (void)applicationWillEnterForeground:(UIApplication *)application {
114 /*
115 Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
116 */
117 [[SDKWrapper getInstance] applicationWillEnterForeground:application];
118 app->applicationWillEnterForeground();
119
120 }
121
122 - (void)applicationWillTerminate:(UIApplication *)application
123 {
124 [[SDKWrapper getInstance] applicationWillTerminate:application];
125 delete app;
126 app = nil;
127 }
128
129
130 #pragma mark -
131 #pragma mark Memory management
132
133 - (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
134 /*
135 Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
136 */
137 }
138
139 @end
1 <?xml version="1.0" encoding="UTF-8"?>
2 <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3 <device id="retina5_9" orientation="landscape">
4 <adaptation id="fullscreen"/>
5 </device>
6 <dependencies>
7 <deployment version="1792" identifier="iOS"/>
8 <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/>
9 <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10 </dependencies>
11 <scenes>
12 <!--View Controller-->
13 <scene sceneID="EHf-IW-A2E">
14 <objects>
15 <viewController id="01J-lp-oVM" sceneMemberID="viewController">
16 <layoutGuides>
17 <viewControllerLayoutGuide type="top" id="fm7-M6-edp"/>
18 <viewControllerLayoutGuide type="bottom" id="uRH-d6-mvd"/>
19 </layoutGuides>
20 <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
21 <rect key="frame" x="0.0" y="0.0" width="812" height="375"/>
22 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
23 <subviews>
24 <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFill" insetsLayoutMarginsFromSafeArea="NO" image="LaunchScreenBackground.png" translatesAutoresizingMaskIntoConstraints="NO" id="YCC-wj-Gww" userLabel="Background">
25 <rect key="frame" x="0.0" y="0.0" width="812" height="375"/>
26 </imageView>
27 </subviews>
28 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
29 <constraints>
30 <constraint firstAttribute="bottom" secondItem="YCC-wj-Gww" secondAttribute="bottom" id="Naz-ae-jWI"/>
31 <constraint firstAttribute="trailing" secondItem="YCC-wj-Gww" secondAttribute="trailing" id="myj-85-hk9"/>
32 <constraint firstItem="YCC-wj-Gww" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="qOq-Cg-doS"/>
33 <constraint firstItem="YCC-wj-Gww" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="xL7-Fo-4bl"/>
34 </constraints>
35 </view>
36 </viewController>
37 <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
38 </objects>
39 <point key="canvasLocation" x="50.399999999999999" y="373.15270935960592"/>
40 </scene>
41 </scenes>
42 <resources>
43 <image name="LaunchScreenBackground.png" width="2208" height="1242"/>
44 </resources>
45 </document>
1 /*
2 Localizable.strings
3 */
4
5 "done" = "Done";
6 "next" = "Next";
7 "search" = "Search";
8 "go" = "Go";
9 "send" = "Send";
1 {
2 "images" : [
3 {
4 "size" : "20x20",
5 "idiom" : "iphone",
6 "filename" : "Icon-20@2x.png",
7 "scale" : "2x"
8 },
9 {
10 "size" : "20x20",
11 "idiom" : "iphone",
12 "filename" : "Icon-20@3x.png",
13 "scale" : "3x"
14 },
15 {
16 "size" : "29x29",
17 "idiom" : "iphone",
18 "filename" : "Icon-29.png",
19 "scale" : "1x"
20 },
21 {
22 "size" : "29x29",
23 "idiom" : "iphone",
24 "filename" : "Icon-29@2x.png",
25 "scale" : "2x"
26 },
27 {
28 "size" : "29x29",
29 "idiom" : "iphone",
30 "filename" : "Icon-29@3x.png",
31 "scale" : "3x"
32 },
33 {
34 "size" : "40x40",
35 "idiom" : "iphone",
36 "filename" : "Icon-40@2x.png",
37 "scale" : "2x"
38 },
39 {
40 "size" : "40x40",
41 "idiom" : "iphone",
42 "filename" : "Icon-40@3x.png",
43 "scale" : "3x"
44 },
45 {
46 "size" : "57x57",
47 "idiom" : "iphone",
48 "filename" : "Icon-57.png",
49 "scale" : "1x"
50 },
51 {
52 "size" : "57x57",
53 "idiom" : "iphone",
54 "filename" : "Icon-57@2x.png",
55 "scale" : "2x"
56 },
57 {
58 "size" : "60x60",
59 "idiom" : "iphone",
60 "filename" : "Icon-60@2x.png",
61 "scale" : "2x"
62 },
63 {
64 "size" : "60x60",
65 "idiom" : "iphone",
66 "filename" : "Icon-60@3x.png",
67 "scale" : "3x"
68 },
69 {
70 "size" : "20x20",
71 "idiom" : "ipad",
72 "filename" : "Icon-20.png",
73 "scale" : "1x"
74 },
75 {
76 "size" : "20x20",
77 "idiom" : "ipad",
78 "filename" : "Icon-20@2x.png",
79 "scale" : "2x"
80 },
81 {
82 "size" : "29x29",
83 "idiom" : "ipad",
84 "filename" : "Icon-29.png",
85 "scale" : "1x"
86 },
87 {
88 "size" : "29x29",
89 "idiom" : "ipad",
90 "filename" : "Icon-29@2x.png",
91 "scale" : "2x"
92 },
93 {
94 "size" : "40x40",
95 "idiom" : "ipad",
96 "filename" : "Icon-40.png",
97 "scale" : "1x"
98 },
99 {
100 "size" : "40x40",
101 "idiom" : "ipad",
102 "filename" : "Icon-40@2x.png",
103 "scale" : "2x"
104 },
105 {
106 "size" : "50x50",
107 "idiom" : "ipad",
108 "filename" : "Icon-50.png",
109 "scale" : "1x"
110 },
111 {
112 "size" : "50x50",
113 "idiom" : "ipad",
114 "filename" : "Icon-50@2x.png",
115 "scale" : "2x"
116 },
117 {
118 "size" : "72x72",
119 "idiom" : "ipad",
120 "filename" : "Icon-72.png",
121 "scale" : "1x"
122 },
123 {
124 "size" : "72x72",
125 "idiom" : "ipad",
126 "filename" : "Icon-72@2x.png",
127 "scale" : "2x"
128 },
129 {
130 "size" : "76x76",
131 "idiom" : "ipad",
132 "filename" : "Icon-76.png",
133 "scale" : "1x"
134 },
135 {
136 "size" : "76x76",
137 "idiom" : "ipad",
138 "filename" : "Icon-76@2x.png",
139 "scale" : "2x"
140 },
141 {
142 "size" : "83.5x83.5",
143 "idiom" : "ipad",
144 "filename" : "Icon-83.5@2x.png",
145 "scale" : "2x"
146 },
147 {
148 "idiom" : "ios-marketing",
149 "size" : "1024x1024",
150 "scale" : "1x"
151 }
152 ],
153 "info" : {
154 "version" : 1,
155 "author" : "xcode"
156 }
157 }
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "info" : {
3 "version" : 1,
4 "author" : "xcode"
5 }
6 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>CFBundleDevelopmentRegion</key>
6 <string>English</string>
7 <key>CFBundleDisplayName</key>
8 <string>${PRODUCT_NAME}</string>
9 <key>CFBundleExecutable</key>
10 <string>${EXECUTABLE_NAME}</string>
11 <key>CFBundleIcons~ipad</key>
12 <dict/>
13 <key>CFBundleIdentifier</key>
14 <string>com.topdraw.forfun</string>
15 <key>CFBundleInfoDictionaryVersion</key>
16 <string>6.0</string>
17 <key>CFBundleName</key>
18 <string>${PRODUCT_NAME}</string>
19 <key>CFBundlePackageType</key>
20 <string>APPL</string>
21 <key>CFBundleShortVersionString</key>
22 <string>1.0.0</string>
23 <key>CFBundleSignature</key>
24 <string>????</string>
25 <key>CFBundleVersion</key>
26 <string>1.0</string>
27 <key>LSRequiresIPhoneOS</key>
28 <true/>
29 <key>NSAppTransportSecurity</key>
30 <dict>
31 <key>NSAllowsArbitraryLoads</key>
32 <true/>
33 </dict>
34 <key>UILaunchStoryboardName</key>
35 <string>LaunchScreen</string>
36 <key>UIPrerenderedIcon</key>
37 <true/>
38 <key>UIRequiredDeviceCapabilities</key>
39 <dict>
40 <key>accelerometer</key>
41 <true/>
42 <key>opengles-1</key>
43 <true/>
44 </dict>
45 <key>UIRequiresFullScreen</key>
46 <true/>
47 <key>UIStatusBarHidden</key>
48 <true/>
49 <key>UISupportedInterfaceOrientations</key>
50 <array>
51 <string>UIInterfaceOrientationLandscapeRight</string>
52 <string>UIInterfaceOrientationLandscapeLeft</string>
53 </array>
54 </dict>
55 </plist>
...\ No newline at end of file ...\ No newline at end of file
1 //
2 // Prefix header for all source files of the 'For_Fun' target in the 'For_Fun' project
3 //
4
5 #ifdef __OBJC__
6 #import <Foundation/Foundation.h>
7 #import <UIKit/UIKit.h>
8 #endif
1 /****************************************************************************
2 Copyright (c) 2013 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26
27 #import <UIKit/UIKit.h>
28
29
30 @interface RootViewController : UIViewController {
31
32 }
33 - (BOOL)prefersStatusBarHidden;
34 @end
1 /****************************************************************************
2 Copyright (c) 2013 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26
27 #import "RootViewController.h"
28 #import "cocos2d.h"
29
30 #include "platform/CCApplication.h"
31 #include "platform/ios/CCEAGLView-ios.h"
32
33 @implementation RootViewController
34
35 /*
36 // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
37 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
38 if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
39 // Custom initialization
40 }
41 return self;
42 }
43 */
44
45 // Implement loadView to create a view hierarchy programmatically, without using a nib.
46 - (void)loadView {
47 // Set EAGLView as view of RootViewController
48 self.view = (__bridge CCEAGLView *)cocos2d::Application::getInstance()->getView();
49 }
50
51 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
52 - (void)viewDidLoad {
53 [super viewDidLoad];
54 }
55
56 - (void)viewWillAppear:(BOOL)animated {
57 [super viewWillAppear:animated];
58 }
59
60 - (void)viewDidDisappear:(BOOL)animated {
61 [super viewDidDisappear:animated];
62 }
63
64
65 // For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
66 #ifdef __IPHONE_6_0
67 - (NSUInteger) supportedInterfaceOrientations{
68 return UIInterfaceOrientationMaskAllButUpsideDown;
69 }
70 #endif
71
72 - (BOOL) shouldAutorotate {
73 return YES;
74 }
75
76 - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
77 [super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
78 }
79
80 //fix not hide status on ios7
81 - (BOOL)prefersStatusBarHidden {
82 return YES;
83 }
84
85 // Controls the application's preferred home indicator auto-hiding when this view controller is shown.
86 - (BOOL)prefersHomeIndicatorAutoHidden {
87 return YES;
88 }
89
90 - (void)didReceiveMemoryWarning {
91 // Releases the view if it doesn't have a superview.
92 [super didReceiveMemoryWarning];
93
94 // Release any cached data, images, etc that aren't in use.
95 }
96
97
98 @end
1 //
2 // SDKWrapper.h
3 // polish_project-mobile
4 //
5 // Created by 杨欣 on 2018/10/20.
6 //
7
8 #import <Foundation/Foundation.h>
9
10 NS_ASSUME_NONNULL_BEGIN
11
12 @interface SDKWrapper : NSObject
13 @property(nonatomic,strong) NSString *name;
14 + (instancetype)getInstance;
15 // iOS应用生命周期
16 - (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
17 - (void)applicationDidBecomeActive:(UIApplication *)application;
18 - (void)applicationWillResignActive:(UIApplication *)application;
19 - (void)applicationDidEnterBackground:(UIApplication *)application;
20 - (void)applicationWillEnterForeground:(UIApplication *)application;
21 - (void)applicationWillTerminate:(UIApplication *)application;
22 @end
23
24 NS_ASSUME_NONNULL_END
1 //
2 // SDKWrapper.m
3 // polish_project-mobile
4 //
5 // Created by 杨欣 on 2018/10/20.
6 //
7
8 #import "SDKWrapper.h"
9 #import "SDKDelegate.h"
10
11 @interface SDKWrapper ()
12
13 @property (nonatomic, strong) NSArray *sdkClasses;
14
15 @end
16
17 @implementation SDKWrapper
18
19 #pragma mark -
20 #pragma mark Singleton
21
22 static SDKWrapper *mInstace = nil;
23
24 + (instancetype)getInstance {
25 static dispatch_once_t onceToken;
26 dispatch_once(&onceToken, ^{
27 mInstace = [[super allocWithZone:NULL] init];
28 [mInstace initSDKWrapper];
29 });
30 return mInstace;
31 }
32 + (id)allocWithZone:(struct _NSZone *)zone {
33 return [SDKWrapper getInstance];
34 }
35
36 + (id)copyWithZone:(struct _NSZone *)zone {
37 return [SDKWrapper getInstance];
38 }
39
40 #pragma mark -
41 #pragma mark Application lifecycle
42 - (void)initSDKWrapper {
43 [self loadSDKClass];
44 }
45
46 - (void)loadSDKClass {
47 NSString *path = [NSString stringWithFormat:@"%@/project.json",
48 [[NSBundle mainBundle] resourcePath]];
49 NSData *data = [NSData dataWithContentsOfFile:path options:NSDataReadingMappedIfSafe error:nil];
50 id obj = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
51 id dic = obj[@"serviceClassPath"];
52 NSLog(@"%@",dic);
53 NSMutableArray *sdks = [NSMutableArray array];
54 for (NSString *str in dic) {
55 @try {
56 NSString *className = [[str componentsSeparatedByString:@"."] lastObject];
57 NSLog(@"%@",className);
58 Class c = NSClassFromString(className);
59 id sdk = [[c alloc] init];
60 [sdks addObject:sdk];
61 NSLog(@"%@",sdk);
62 } @catch (NSException *e) {
63 NSLog(@"%@",@"NSException");
64 NSLog(@"%@",e);
65 }
66 }
67 self.sdkClasses = [NSArray arrayWithArray:sdks];
68 }
69
70 /**
71 app显示给用户之前执行最后的初始化操作
72 */
73 - (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
74 for (id <SDKDelegate> sdk in self.sdkClasses) {
75 if ([sdk respondsToSelector:@selector(application:didFinishLaunchingWithOptions:)]) {
76 [sdk application:application didFinishLaunchingWithOptions:launchOptions];
77 }
78 }
79
80 }
81
82 /**
83 app已经切换到active状态后需要执行的操作
84 */
85 - (void)applicationDidBecomeActive:(UIApplication *)application {
86 for (id sdk in self.sdkClasses) {
87 if ([sdk respondsToSelector:@selector(applicationDidBecomeActive:)]) {
88 [sdk applicationDidBecomeActive:application];
89 }
90 }
91 }
92 /**
93 app将要从前台切换到后台时需要执行的操作
94 */
95 - (void)applicationWillResignActive:(UIApplication *)application {
96 for (id sdk in self.sdkClasses) {
97 if ([sdk respondsToSelector:@selector(applicationWillResignActive:)]) {
98 [sdk applicationWillResignActive:application];
99 }
100 }
101 }
102 /**
103 app已经进入后台后需要执行的操作
104 */
105 - (void)applicationDidEnterBackground:(UIApplication *)application {
106 for (id sdk in self.sdkClasses) {
107 if ([sdk respondsToSelector:@selector(applicationDidEnterBackground:)]) {
108 [sdk applicationDidEnterBackground:application];
109 }
110 }
111 }
112 /**
113 app将要从后台切换到前台需要执行的操作,但app还不是active状态
114 */
115 - (void)applicationWillEnterForeground:(UIApplication *)application {
116 for (id sdk in self.sdkClasses) {
117 if ([sdk respondsToSelector:@selector(applicationWillEnterForeground:)]) {
118 [sdk applicationWillEnterForeground:application];
119 }
120 }
121 }
122 /**
123 app将要结束时需要执行的操作
124 */
125 - (void)applicationWillTerminate:(UIApplication *)application {
126 for (id sdk in self.sdkClasses) {
127 if ([sdk respondsToSelector:@selector(applicationWillTerminate:)]) {
128 [sdk applicationWillTerminate:application];
129 }
130 }
131 }
132
133 @end
1 // Configuration settings file format documentation can be found at:
2 // https://help.apple.com/xcode/#/dev745c5c974
3
4 #include "D:\CocosCreator_2.2.0\resources\cocos2d-x/cocos/platform/ios/CCModuleConfigIOS.debug.xcconfig"
1 // Configuration settings file format documentation can be found at:
2 // https://help.apple.com/xcode/#/dev745c5c974
3
4 #include "D:\CocosCreator_2.2.0\resources\cocos2d-x/cocos/platform/ios/CCModuleConfigIOS.release.xcconfig"
1
2
3 #import <UIKit/UIKit.h>
4
5 int main(int argc, char *argv[]) {
6
7 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
8 int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
9 [pool release];
10 return retVal;
11 }
1 //
2 // SDKWrapperDelegate.h
3 // polish_project-mobile
4 //
5 // Created by 杨欣 on 2018/10/22.
6 //
7
8 #import <Foundation/Foundation.h>
9
10 NS_ASSUME_NONNULL_BEGIN
11
12 @protocol SDKDelegate <NSObject>
13
14 @optional
15 - (void) optionalFunction;
16 - (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
17 - (void)applicationDidBecomeActive:(UIApplication *)application;
18 - (void)applicationWillResignActive:(UIApplication *)application;
19 - (void)applicationDidEnterBackground:(UIApplication *)application;
20 - (void)applicationWillEnterForeground:(UIApplication *)application;
21 - (void)applicationWillTerminate:(UIApplication *)application;
22
23 @end
24
25 NS_ASSUME_NONNULL_END
1 /*
2 Localizable.strings
3 */
4
5 "done" = "完成";
6 "next" = "下一个";
7 "search" = "搜索";
8 "go" = "前往";
9 "send" = "发送";
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>CFBundleDevelopmentRegion</key>
6 <string>en</string>
7 <key>CFBundleExecutable</key>
8 <string>${EXECUTABLE_NAME}</string>
9 <key>CFBundleIconFile</key>
10 <string>Icon</string>
11 <key>CFBundleIdentifier</key>
12 <string>com.topdraw.forfun</string>
13 <key>CFBundleInfoDictionaryVersion</key>
14 <string>6.0</string>
15 <key>CFBundleName</key>
16 <string>${PRODUCT_NAME}</string>
17 <key>CFBundlePackageType</key>
18 <string>APPL</string>
19 <key>CFBundleShortVersionString</key>
20 <string>1.0</string>
21 <key>CFBundleSignature</key>
22 <string>????</string>
23 <key>CFBundleVersion</key>
24 <string>1</string>
25 <key>LSApplicationCategoryType</key>
26 <string>public.app-category.games</string>
27 <key>LSMinimumSystemVersion</key>
28 <string>${MACOSX_DEPLOYMENT_TARGET}</string>
29 <key>NSHumanReadableCopyright</key>
30 <string>Copyright © 2013. All rights reserved.</string>
31 <key>NSMainNibFile</key>
32 <string>MainMenu</string>
33 <key>NSPrincipalClass</key>
34 <string>NSApplication</string>
35 <key>NSAppTransportSecurity</key>
36 <dict>
37 <key>NSAllowsArbitraryLoads</key>
38 <true/>
39 </dict>
40 </dict>
41 </plist>
1 //
2 // Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project
3 //
4
5 #ifdef __OBJC__
6 #import <Cocoa/Cocoa.h>
7 #endif
1 // Configuration settings file format documentation can be found at:
2 // https://help.apple.com/xcode/#/dev745c5c974
3
4 #include "D:\CocosCreator_2.2.0\resources\cocos2d-x/cocos/platform/mac/CCModuleConfigMac.debug.xcconfig"
1 // Configuration settings file format documentation can be found at:
2 // https://help.apple.com/xcode/#/dev745c5c974
3
4 #include "D:\CocosCreator_2.2.0\resources\cocos2d-x/cocos/platform/mac/CCModuleConfigMac.release.xcconfig"
1 /****************************************************************************
2 Copyright (c) 2010 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26
27 #include "AppDelegate.h"
28
29 int main(int argc, char *argv[])
30 {
31 AppDelegate app(960, 640);
32 app.start();
33 return 0;
34 }
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup>
4 <Filter Include="resource">
5 <UniqueIdentifier>{ca9c9e15-d942-43a1-aa7a-5f0b74ca1afd}</UniqueIdentifier>
6 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;png;manifest</Extensions>
7 </Filter>
8 <Filter Include="win32">
9 <UniqueIdentifier>{ccb2323b-1cfa-41ea-bcf4-ba5f07309396}</UniqueIdentifier>
10 </Filter>
11 <Filter Include="Classes">
12 <UniqueIdentifier>{e93a77e1-af1e-4400-87d3-504b62ebdbb0}</UniqueIdentifier>
13 </Filter>
14 </ItemGroup>
15 <ItemGroup>
16 <ClCompile Include="main.cpp">
17 <Filter>win32</Filter>
18 </ClCompile>
19 <ClCompile Include="..\Classes\AppDelegate.cpp">
20 <Filter>Classes</Filter>
21 </ClCompile>
22 <ClCompile Include="..\Classes\jsb_module_register.cpp">
23 <Filter>Classes</Filter>
24 </ClCompile>
25 </ItemGroup>
26 <ItemGroup>
27 <ClInclude Include="..\Classes\AppDelegate.h">
28 <Filter>Classes</Filter>
29 </ClInclude>
30 <ClInclude Include="main.h">
31 <Filter>win32</Filter>
32 </ClInclude>
33 <ClInclude Include="resource.h" />
34 </ItemGroup>
35 <ItemGroup>
36 <ResourceCompile Include="game.rc">
37 <Filter>resource</Filter>
38 </ResourceCompile>
39 </ItemGroup>
40 <ItemGroup>
41 <Image Include="res\game.ico">
42 <Filter>resource</Filter>
43 </Image>
44 </ItemGroup>
45 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4 <LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
5 <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6 </PropertyGroup>
7 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
8 <LocalDebuggerWorkingDirectory>$(OutDir)</LocalDebuggerWorkingDirectory>
9 <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
10 </PropertyGroup>
11 </Project>
...\ No newline at end of file ...\ No newline at end of file
1 {
2 "copy_resources": [
3 {
4 "from": "../../../src",
5 "to": "src"
6 },
7 {
8 "from": "../../../res",
9 "to": "res"
10 },
11 {
12 "from": "../../../subpackages",
13 "to": "subpackages"
14 },
15 {
16 "from": "../../../main.js",
17 "to": ""
18 },
19 {
20 "from": "../../../project.json",
21 "to": ""
22 },
23 {
24 "from": "../../../jsb-adapter",
25 "to": "jsb-adapter"
26 }
27 ]
28 }
1 // Microsoft Visual C++ generated resource script.
2 //
3 #include "resource.h"
4
5 #define APSTUDIO_READONLY_SYMBOLS
6 /////////////////////////////////////////////////////////////////////////////
7 //
8 // Generated from the TEXTINCLUDE 2 resource.
9 //
10 #include "winresrc.h"
11
12 /////////////////////////////////////////////////////////////////////////////
13 #undef APSTUDIO_READONLY_SYMBOLS
14
15 /////////////////////////////////////////////////////////////////////////////
16 // Chinese (Simplified, PRC) resources
17
18 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
19 LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
20 #pragma code_page(936)
21
22 #ifdef APSTUDIO_INVOKED
23 /////////////////////////////////////////////////////////////////////////////
24 //
25 // TEXTINCLUDE
26 //
27
28 2 TEXTINCLUDE
29 BEGIN
30 "#include ""winresrc.h""\r\n"
31 "\0"
32 END
33
34 3 TEXTINCLUDE
35 BEGIN
36 "\r\n"
37 "\0"
38 END
39
40 #endif // APSTUDIO_INVOKED
41
42 #endif // Chinese (Simplified, PRC) resources
43 /////////////////////////////////////////////////////////////////////////////
44
45
46 /////////////////////////////////////////////////////////////////////////////
47 // English (United States) resources
48
49 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
50 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
51 #pragma code_page(1252)
52
53 #ifdef APSTUDIO_INVOKED
54 /////////////////////////////////////////////////////////////////////////////
55 //
56 // TEXTINCLUDE
57 //
58
59 1 TEXTINCLUDE
60 BEGIN
61 "resource.h\0"
62 END
63
64 #endif // APSTUDIO_INVOKED
65
66
67 /////////////////////////////////////////////////////////////////////////////
68 //
69 // Icon
70 //
71
72 // Icon with lowest ID value placed first to ensure application icon
73 // remains consistent on all systems.
74 GLFW_ICON ICON "res\\game.ico"
75
76 /////////////////////////////////////////////////////////////////////////////
77 //
78 // Version
79 //
80
81 VS_VERSION_INFO VERSIONINFO
82 FILEVERSION 1,0,0,1
83 PRODUCTVERSION 1,0,0,1
84 FILEFLAGSMASK 0x3fL
85 #ifdef _DEBUG
86 FILEFLAGS 0x1L
87 #else
88 FILEFLAGS 0x0L
89 #endif
90 FILEOS 0x4L
91 FILETYPE 0x2L
92 FILESUBTYPE 0x0L
93 BEGIN
94 BLOCK "StringFileInfo"
95 BEGIN
96 BLOCK "040904B0"
97 BEGIN
98 VALUE "FileDescription", "game Module"
99 VALUE "FileVersion", "1, 0, 0, 1"
100 VALUE "InternalName", "game"
101 VALUE "LegalCopyright", "Copyright "
102 VALUE "OriginalFilename", "game.exe"
103 VALUE "ProductName", "game Module"
104 VALUE "ProductVersion", "1, 0, 0, 1"
105 END
106 END
107 BLOCK "VarFileInfo"
108 BEGIN
109 VALUE "Translation", 0x409, 1200
110 END
111 END
112
113 #endif // English (United States) resources
114 /////////////////////////////////////////////////////////////////////////////
115
116
117
118 #ifndef APSTUDIO_INVOKED
119 /////////////////////////////////////////////////////////////////////////////
120 //
121 // Generated from the TEXTINCLUDE 3 resource.
122 //
123
124
125 /////////////////////////////////////////////////////////////////////////////
126 #endif // not APSTUDIO_INVOKED
...\ No newline at end of file ...\ No newline at end of file
1 /****************************************************************************
2 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26 #include "main.h"
27 #include "AppDelegate.h"
28
29 USING_NS_CC;
30
31 // uncomment below line, open debug console
32 // #define USE_WIN32_CONSOLE
33
34 int APIENTRY _tWinMain(HINSTANCE hInstance,
35 HINSTANCE hPrevInstance,
36 LPTSTR lpCmdLine,
37 int nCmdShow)
38 {
39 UNREFERENCED_PARAMETER(hPrevInstance);
40 UNREFERENCED_PARAMETER(lpCmdLine);
41
42 #ifdef USE_WIN32_CONSOLE
43 AllocConsole();
44 freopen("CONIN$", "r", stdin);
45 freopen("CONOUT$", "w", stdout);
46 freopen("CONOUT$", "w", stderr);
47 #endif
48
49 // create the application instance
50 AppDelegate app(960, 640);
51 app.start();
52
53 #ifdef USE_WIN32_CONSOLE
54 FreeConsole();
55 #endif
56
57 return 0;
58 }
1 /****************************************************************************
2 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
3
4 http://www.cocos.com
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated engine source code (the "Software"), a limited,
8 worldwide, royalty-free, non-assignable, revocable and non-exclusive license
9 to use Cocos Creator solely to develop games on your target platforms. You shall
10 not use Cocos Creator software for developing other software or tools that's
11 used for developing games. You are not granted to publish, distribute,
12 sublicense, and/or sell copies of Cocos Creator.
13
14 The software or tools in this License Agreement are licensed, not sold.
15 Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26 #ifndef __MAIN_H__
27 #define __MAIN_H__
28
29 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
30
31 // Windows Header Files:
32 #include <tchar.h>
33
34 // C RunTime Header Files
35 #include "CCStdC.h"
36
37 #endif // __WINMAIN_H__
1 //{{NO_DEPENDENCIES}}
2 // Microsoft Visual C++ generated include file.
3 // Used by game.rc
4 //
5 #define IDS_PROJNAME 100
6 #define IDR_TESTJS 100
7
8 // Next default values for new objects
9 //
10 #ifdef APSTUDIO_INVOKED
11 #ifndef APSTUDIO_READONLY_SYMBOLS
12 #define _APS_NEXT_RESOURCE_VALUE 204
13 #define _APS_NEXT_COMMAND_VALUE 32785
14 #define _APS_NEXT_CONTROL_VALUE 1001
15 #define _APS_NEXT_SYMED_VALUE 101
16 #endif
17 #endif
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.