Skip to content

Commit 8d8d7b7

Browse files
committed
game plane
1 parent 44b5991 commit 8d8d7b7

34 files changed

+25914
-0
lines changed

openpose/readme.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ windows 运行 `getModels.bat`
1010

1111

1212

13+
参考文章:[用 Python 实现抖音尬舞机](https://mp.weixin.qq.com/s/_CrlqYB1dLbQinu3dyRNcA)
14+
15+
16+
1317
效果演示:
1418

1519
![](out.jpg)

plane/.gitignore

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#/////////////////////////////////////////////////////////////////////////////
2+
# Fireball Projects
3+
#/////////////////////////////////////////////////////////////////////////////
4+
5+
library/
6+
temp/
7+
local/
8+
build/
9+
10+
#/////////////////////////////////////////////////////////////////////////////
11+
# Logs and databases
12+
#/////////////////////////////////////////////////////////////////////////////
13+
14+
*.log
15+
*.sql
16+
*.sqlite
17+
18+
#/////////////////////////////////////////////////////////////////////////////
19+
# files for debugger
20+
#/////////////////////////////////////////////////////////////////////////////
21+
22+
*.sln
23+
*.csproj
24+
*.pidb
25+
*.unityproj
26+
*.suo
27+
28+
#/////////////////////////////////////////////////////////////////////////////
29+
# OS generated files
30+
#/////////////////////////////////////////////////////////////////////////////
31+
32+
.DS_Store
33+
ehthumbs.db
34+
Thumbs.db
35+
36+
#/////////////////////////////////////////////////////////////////////////////
37+
# exvim files
38+
#/////////////////////////////////////////////////////////////////////////////
39+
40+
*UnityVS.meta
41+
*.err
42+
*.err.meta
43+
*.exvim
44+
*.exvim.meta
45+
*.vimentry
46+
*.vimentry.meta
47+
*.vimproject
48+
*.vimproject.meta
49+
.vimfiles.*/
50+
.exvim.*/
51+
quick_gen_project_*_autogen.bat
52+
quick_gen_project_*_autogen.bat.meta
53+
quick_gen_project_*_autogen.sh
54+
quick_gen_project_*_autogen.sh.meta
55+
.exvim.app
56+
57+
#/////////////////////////////////////////////////////////////////////////////
58+
# webstorm files
59+
#/////////////////////////////////////////////////////////////////////////////
60+
61+
.idea/
62+
63+
#//////////////////////////
64+
# VS Code
65+
#//////////////////////////
66+
67+
.vscode/

plane/assets/bullet.prefab

+151
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
[
2+
{
3+
"__type__": "cc.Prefab",
4+
"_name": "",
5+
"_objFlags": 0,
6+
"_native": "",
7+
"data": {
8+
"__id__": 1
9+
},
10+
"optimizationPolicy": 0,
11+
"asyncLoadAssets": false
12+
},
13+
{
14+
"__type__": "cc.Node",
15+
"_name": "bullet",
16+
"_objFlags": 0,
17+
"_parent": null,
18+
"_children": [],
19+
"_active": true,
20+
"_level": 1,
21+
"_components": [
22+
{
23+
"__id__": 2
24+
},
25+
{
26+
"__id__": 3
27+
},
28+
{
29+
"__id__": 4
30+
}
31+
],
32+
"_prefab": {
33+
"__id__": 5
34+
},
35+
"_opacity": 255,
36+
"_color": {
37+
"__type__": "cc.Color",
38+
"r": 255,
39+
"g": 255,
40+
"b": 255,
41+
"a": 255
42+
},
43+
"_contentSize": {
44+
"__type__": "cc.Size",
45+
"width": 4,
46+
"height": 11
47+
},
48+
"_anchorPoint": {
49+
"__type__": "cc.Vec2",
50+
"x": 0.5,
51+
"y": 0.5
52+
},
53+
"_position": {
54+
"__type__": "cc.Vec3",
55+
"x": 102,
56+
"y": 405,
57+
"z": 0
58+
},
59+
"_scale": {
60+
"__type__": "cc.Vec3",
61+
"x": 1,
62+
"y": 1,
63+
"z": 1
64+
},
65+
"_rotationX": 0,
66+
"_rotationY": 0,
67+
"_quat": {
68+
"__type__": "cc.Quat",
69+
"x": 0,
70+
"y": 0,
71+
"z": 0,
72+
"w": 1
73+
},
74+
"_skewX": 0,
75+
"_skewY": 0,
76+
"_zIndex": 0,
77+
"groupIndex": 2,
78+
"_id": ""
79+
},
80+
{
81+
"__type__": "cc.Sprite",
82+
"_name": "",
83+
"_objFlags": 0,
84+
"node": {
85+
"__id__": 1
86+
},
87+
"_enabled": true,
88+
"_srcBlendFactor": 770,
89+
"_dstBlendFactor": 771,
90+
"_spriteFrame": {
91+
"__uuid__": "4fcb3287-a5b6-4704-bec1-ea4396c969e4"
92+
},
93+
"_type": 0,
94+
"_sizeMode": 1,
95+
"_fillType": 0,
96+
"_fillCenter": {
97+
"__type__": "cc.Vec2",
98+
"x": 0,
99+
"y": 0
100+
},
101+
"_fillStart": 0,
102+
"_fillRange": 0,
103+
"_isTrimmedMode": true,
104+
"_state": 0,
105+
"_atlas": null,
106+
"_id": ""
107+
},
108+
{
109+
"__type__": "2d437SznahIvL9NWIG0Pczd",
110+
"_name": "",
111+
"_objFlags": 0,
112+
"node": {
113+
"__id__": 1
114+
},
115+
"_enabled": true,
116+
"speed": 500,
117+
"_id": ""
118+
},
119+
{
120+
"__type__": "cc.BoxCollider",
121+
"_name": "",
122+
"_objFlags": 0,
123+
"node": {
124+
"__id__": 1
125+
},
126+
"_enabled": true,
127+
"tag": 2,
128+
"_offset": {
129+
"__type__": "cc.Vec2",
130+
"x": 0,
131+
"y": 0
132+
},
133+
"_size": {
134+
"__type__": "cc.Size",
135+
"width": 4,
136+
"height": 11
137+
},
138+
"_id": ""
139+
},
140+
{
141+
"__type__": "cc.PrefabInfo",
142+
"root": {
143+
"__id__": 1
144+
},
145+
"asset": {
146+
"__uuid__": "17d3bae4-3c6a-4d8f-941e-e0ab2636dd86"
147+
},
148+
"fileId": "113llKs4tMLpiOOmgmuTGa",
149+
"sync": false
150+
}
151+
]

plane/assets/bullet.prefab.meta

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ver": "1.0.0",
3+
"uuid": "17d3bae4-3c6a-4d8f-941e-e0ab2636dd86",
4+
"optimizationPolicy": "AUTO",
5+
"asyncLoadAssets": false,
6+
"subMetas": {}
7+
}

plane/assets/enemy.prefab

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
[
2+
{
3+
"__type__": "cc.Prefab",
4+
"_name": "",
5+
"_objFlags": 0,
6+
"_native": "",
7+
"data": {
8+
"__id__": 1
9+
},
10+
"optimizationPolicy": 0,
11+
"asyncLoadAssets": false
12+
},
13+
{
14+
"__type__": "cc.Node",
15+
"_name": "enemy",
16+
"_objFlags": 0,
17+
"_parent": null,
18+
"_children": [],
19+
"_active": true,
20+
"_level": 1,
21+
"_components": [
22+
{
23+
"__id__": 2
24+
},
25+
{
26+
"__id__": 3
27+
},
28+
{
29+
"__id__": 4
30+
}
31+
],
32+
"_prefab": {
33+
"__id__": 5
34+
},
35+
"_opacity": 255,
36+
"_color": {
37+
"__type__": "cc.Color",
38+
"r": 255,
39+
"g": 255,
40+
"b": 255,
41+
"a": 255
42+
},
43+
"_contentSize": {
44+
"__type__": "cc.Size",
45+
"width": 61,
46+
"height": 43
47+
},
48+
"_anchorPoint": {
49+
"__type__": "cc.Vec2",
50+
"x": 0.5,
51+
"y": 0.5
52+
},
53+
"_position": {
54+
"__type__": "cc.Vec3",
55+
"x": 176,
56+
"y": 476,
57+
"z": 0
58+
},
59+
"_scale": {
60+
"__type__": "cc.Vec3",
61+
"x": 1,
62+
"y": 1,
63+
"z": 1
64+
},
65+
"_rotationX": 0,
66+
"_rotationY": 0,
67+
"_quat": {
68+
"__type__": "cc.Quat",
69+
"x": 0,
70+
"y": 0,
71+
"z": 0,
72+
"w": 1
73+
},
74+
"_skewX": 0,
75+
"_skewY": 0,
76+
"_zIndex": 0,
77+
"groupIndex": 3,
78+
"_id": ""
79+
},
80+
{
81+
"__type__": "cc.Sprite",
82+
"_name": "",
83+
"_objFlags": 0,
84+
"node": {
85+
"__id__": 1
86+
},
87+
"_enabled": true,
88+
"_srcBlendFactor": 770,
89+
"_dstBlendFactor": 771,
90+
"_spriteFrame": {
91+
"__uuid__": "c01792f2-744d-4ef3-bf65-3113d31d4442"
92+
},
93+
"_type": 0,
94+
"_sizeMode": 1,
95+
"_fillType": 0,
96+
"_fillCenter": {
97+
"__type__": "cc.Vec2",
98+
"x": 0,
99+
"y": 0
100+
},
101+
"_fillStart": 0,
102+
"_fillRange": 0,
103+
"_isTrimmedMode": true,
104+
"_state": 0,
105+
"_atlas": null,
106+
"_id": ""
107+
},
108+
{
109+
"__type__": "4a7820Y6JZI74tMJCtfeR04",
110+
"_name": "",
111+
"_objFlags": 0,
112+
"node": {
113+
"__id__": 1
114+
},
115+
"_enabled": true,
116+
"speed": 0,
117+
"speed_min": 50,
118+
"speed_max": 100,
119+
"_id": ""
120+
},
121+
{
122+
"__type__": "cc.BoxCollider",
123+
"_name": "",
124+
"_objFlags": 0,
125+
"node": {
126+
"__id__": 1
127+
},
128+
"_enabled": true,
129+
"tag": 0,
130+
"_offset": {
131+
"__type__": "cc.Vec2",
132+
"x": 0,
133+
"y": 0
134+
},
135+
"_size": {
136+
"__type__": "cc.Size",
137+
"width": 61,
138+
"height": 43
139+
},
140+
"_id": ""
141+
},
142+
{
143+
"__type__": "cc.PrefabInfo",
144+
"root": {
145+
"__id__": 1
146+
},
147+
"asset": {
148+
"__uuid__": "ef040092-e9fd-447f-942d-f71b637203a2"
149+
},
150+
"fileId": "33ip+cfwlIoamsA10cgjeQ",
151+
"sync": false
152+
}
153+
]

0 commit comments

Comments
 (0)