Skip to content

Commit

Permalink
hpbar & foe shoot
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Jun 5, 2018
1 parent 6e4aa83 commit db0fa30
Show file tree
Hide file tree
Showing 62 changed files with 5,073 additions and 3,944 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"extends": "google"
};
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ quick_gen_project_*_autogen.sh.meta
# VS Code
#//////////////////////////

.vscode/
# .vscode/
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"build/": true,
"temp/": true,
"library/": true,
"**/*.anim": true
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.meta": true,
"library/": true,
"local/": true,
"temp/": true
}
}
16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"tasks": [
{
"taskName": "compile",
"command": "curl",
"args": ["http://localhost:7456/update-db"],
"isShellCommand": true,
"isBackground": true,
"showOutput": "always",
"isBuildCommand": true
}
]
}
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,36 @@

《纸飞机的星际冒险》

## 设计文档
> A web game about paper plane. Let's start!
### Complete
[Design Docs](docs/PaperStar-design.md)

...
## Function

### Intend
## Intend

- 游戏运行时间
- Battle Logic
- Prop
- Foe Damage
- generate Random Planet
- Enemy
- Floating Air Carrier (release simple black paper plane)
- Black Bomber

#### Wechat Game
### Wechat Game

- [ ] Wechat API 接入 ([wx-sub](https://github.com/PaperStar/wx-sub))
- [ ] Wechat API ([wx-sub](https://github.com/PaperStar/wx-sub))

#### UI
### UI

- [ ] 开场动画(启动界面动画)
- [ ] 星球 按钮 光晕 glow 效果
- [ ] 自定义绘制纸飞机
- [ ] Planet style button with glow fx
- [ ] Custom draw paper plane

### BUG
## BUG

- [ ] 使用 `cc.director.pause()` 暂停后,按钮可以响应,但缩放交互失效
- [ ] Use `cc.director.pause()` to pause, button can respond, but scale effect disabled.

### Reference
## Reference

- [tutorial-dark-slash](https://github.com/cocos-creator/tutorial-dark-slash)
- [tutorial-dark-slash](https://github.com/cocos-creator/tutorial-dark-slash)
- [aircraft_war](https://github.com/A123asdo11/aircraft_war)
29 changes: 29 additions & 0 deletions assets/Animation/foe/hpBarFade.anim
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"__type__": "cc.AnimationClip",
"_name": "hpBarFade",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 2,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"props": {
"opacity": [
{
"frame": 0,
"value": 255
},
{
"frame": 0.5,
"value": 255
},
{
"frame": 2,
"value": 0
}
]
}
},
"events": []
}
5 changes: 5 additions & 0 deletions assets/Animation/foe/hpBarFade.anim.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "568b3cad-6343-4e38-937b-49b8f1ba26f2",
"subMetas": {}
}
5 changes: 5 additions & 0 deletions assets/Animation/planet.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ver": "1.0.1",
"uuid": "e3b8037c-7077-4a90-a925-e22d65189507",
"subMetas": {}
}
79 changes: 79 additions & 0 deletions assets/Animation/planet/break.anim
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"__type__": "cc.AnimationClip",
"_name": "break",
"_objFlags": 0,
"_rawFiles": null,
"_duration": 1.1833333333333333,
"sample": 60,
"speed": 1,
"wrapMode": 1,
"curveData": {
"comps": {
"cc.Sprite": {
"spriteFrame": [
{
"frame": 0,
"value": {
"__uuid__": "3f617414-1ae0-49a4-8474-5cd4e4e6c109"
}
},
{
"frame": 0.16666666666666666,
"value": {
"__uuid__": "8c463b39-f986-4a2c-83ad-35c1266d9d72"
}
},
{
"frame": 0.3333333333333333,
"value": {
"__uuid__": "0ab72450-21df-4036-a817-fb53fdd9b793"
}
},
{
"frame": 0.5,
"value": {
"__uuid__": "d4c13c1e-0fe6-43b4-af0b-9d108140081f"
}
},
{
"frame": 0.6666666666666666,
"value": {
"__uuid__": "4929e8ff-b466-45b7-b577-2d12d8c26f31"
}
},
{
"frame": 0.8333333333333334,
"value": {
"__uuid__": "08df8021-5924-4022-af5c-a99f7ccb9733"
}
},
{
"frame": 1,
"value": {
"__uuid__": "bba9d0c6-dc2f-4c7b-9e7d-2e78e46d233d"
}
},
{
"frame": 1.1666666666666667,
"value": {
"__uuid__": "bba9d0c6-dc2f-4c7b-9e7d-2e78e46d233d"
}
}
]
}
},
"props": {
"opacity": [
{
"frame": 1,
"value": 255
},
{
"frame": 1.1666666666666667,
"value": 0
}
]
}
},
"events": []
}
5 changes: 5 additions & 0 deletions assets/Animation/planet/break.anim.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ver": "1.0.0",
"uuid": "a17f8acf-1898-4ac4-9e58-4cc2ce0480e5",
"subMetas": {}
}
13 changes: 9 additions & 4 deletions assets/Prefab/Object/bullet/Chain.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"__type__": "cc.Node",
"_name": "BulletChain",
"_name": "ChainBullet",
"_objFlags": 0,
"_parent": null,
"_children": [
Expand Down Expand Up @@ -457,13 +457,18 @@
"__id__": 1
},
"_enabled": true,
"speed": 500,
"bulletType": 0,
"length": 500,
"moveSpeed": 500,
"delay": 0.3,
"width": 2,
"lifeTime": 10,
"collisionTime": 2,
"damage": 10,
"sprite": null,
"fxBroken": null,
"canBreak": false
"canBreak": false,
"brokenFX": null,
"isVisible": false
},
{
"__type__": "cc.PrefabInfo",
Expand Down
5 changes: 3 additions & 2 deletions assets/Prefab/Object/bullet/Line.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"__type__": "cc.Node",
"_name": "defaultBullet",
"_name": "LineBullet",
"_objFlags": 0,
"_parent": null,
"_children": [
Expand Down Expand Up @@ -487,7 +487,8 @@
"canBreak": true,
"brokenFX": {
"__id__": 5
}
},
"isVisible": false
},
{
"__type__": "cc.Animation",
Expand Down
14 changes: 10 additions & 4 deletions assets/Prefab/Role/Boss/Boss1.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -150,
"x": 0,
"y": 0
},
"_skewX": 0,
Expand Down Expand Up @@ -432,7 +432,7 @@
"score": 0,
"crashDamage": 0,
"moveSpeed": 0,
"turnSpeed": 0,
"turnSpeed": 1,
"moveDir": {
"__type__": "cc.Vec2",
"x": 0,
Expand All @@ -448,6 +448,12 @@
"atkPrepTime": 3,
"fxSmoke": {
"__id__": 7
},
"sprite": {
"__id__": 3
},
"hpBarPrefab": {
"__uuid__": "d2f7e1a3-8139-43ef-8503-8083ce88fb68"
}
},
{
Expand All @@ -470,7 +476,7 @@
},
"_angularVelocity": 0,
"_fixedRotation": false,
"enabledContactListener": false,
"enabledContactListener": true,
"bullet": false
},
{
Expand All @@ -485,7 +491,7 @@
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_restitution": 0.2,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
Expand Down
14 changes: 10 additions & 4 deletions assets/Prefab/Role/Boss/Boss2.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 100,
"x": 0,
"y": 0
},
"_skewX": 0,
Expand Down Expand Up @@ -427,7 +427,7 @@
"score": 0,
"crashDamage": 0,
"moveSpeed": 0,
"turnSpeed": 0,
"turnSpeed": 3,
"moveDir": {
"__type__": "cc.Vec2",
"x": 0,
Expand All @@ -443,6 +443,12 @@
"atkPrepTime": 0,
"fxSmoke": {
"__id__": 7
},
"sprite": {
"__id__": 3
},
"hpBarPrefab": {
"__uuid__": "d2f7e1a3-8139-43ef-8503-8083ce88fb68"
}
},
{
Expand All @@ -465,7 +471,7 @@
},
"_angularVelocity": 0,
"_fixedRotation": false,
"enabledContactListener": false,
"enabledContactListener": true,
"bullet": false
},
{
Expand All @@ -480,7 +486,7 @@
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"_restitution": 0.2,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
Expand Down
Loading

0 comments on commit db0fa30

Please sign in to comment.