From 22d053bda92fddc6961b83e068bb556c2244525e Mon Sep 17 00:00:00 2001 From: ifengzp Date: Sat, 25 Apr 2020 18:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 ++++++++++------- assets/Scene/Home/Home.ts | 6 +++--- .../{shader 溶解效果.md => 溶解效果.md} | 2 +- .../{shader 追光效果.md => 追光效果.md} | 0 4 files changed, 14 insertions(+), 11 deletions(-) rename doc/Dissolve_color/{shader 溶解效果.md => 溶解效果.md} (96%) rename doc/Follow_spot/{shader 追光效果.md => 追光效果.md} (100%) diff --git a/README.md b/README.md index 9451641..5eb3c1f 100755 --- a/README.md +++ b/README.md @@ -1,15 +1,18 @@ # cocos-awesome cocos是一款挺棒的游戏引擎,我在这个仓库实现一些游戏当中比较使用的功能模块,对应的一个功能一个场景,用的引擎版本是`v2.3.0`,实现的思路会在一个公众号上更新,目前实现的效果有: -- 背景无限滚动 -- 遥控杆 -- 刮刮卡实现 -- 金币落袋效果 -- 局部缩放效果 +- [溶解效果(shader)](./Doc/Dissolve_color/溶解效果.md) +- [刮刮卡实现](./Doc/Scratch_ticket/Scratch_ticket.md) +- [金币落袋效果](./Doc/Coin_fly_to_wallet/金币落袋效果.md) +- [放大镜效果](./Doc/Magnifying_mirror/局部放大效果.md) +- [追光效果(shader)](./Doc/Follow_spot/追光效果.md) +- [打字机效果](./Doc/Typer/打字机效果.md) +- [子弹跟踪效果](./Doc/Bullet_Tracking/子弹跟踪效果.md) +- [移动残影效果](./Doc/Moving_ghost/Moving_ghost.md) +- [背景无限滚动](./Doc/Infinite_bg_scroll/背景无限滚动.md) - 换装 -- 打字机效果 -- 移动残影效果 - 震屏效果+动画恢复第一帧 +- [遥控杆](./Doc/Joystick/遥控杆.md) # 关注公众号查看实现思路 ![教程二维码](http://cdn.blog.ifengzp.com/cocos-awesome/wxgzh.png) diff --git a/assets/Scene/Home/Home.ts b/assets/Scene/Home/Home.ts index 687be47..8bfbf25 100644 --- a/assets/Scene/Home/Home.ts +++ b/assets/Scene/Home/Home.ts @@ -2,11 +2,11 @@ import BackHomeBtn from './BackHomeBtn'; const { ccclass, property } = cc._decorator; const LOAD_SCENE_MIN_SEC: number = 1.2; enum sceneList { - 'Dissolve_color' = 'shader 溶解效果', + 'Dissolve_color' = '溶解效果(shader)', 'Scratch_ticket' = '刮刮卡实现', 'Coin_fly_to_wallet' = '金币落袋效果', - 'Magnifying_mirror' = '局部缩放效果', - 'Follow_spot' = 'shader 追光效果', + 'Magnifying_mirror' = '放大镜效果', + 'Follow_spot' = '追光效果(shader)', 'Typer' = '打字机效果', 'Bullet_Tracking' = '子弹跟踪效果', 'Moving_ghost' = '移动残影效果', diff --git a/doc/Dissolve_color/shader 溶解效果.md b/doc/Dissolve_color/溶解效果.md similarity index 96% rename from doc/Dissolve_color/shader 溶解效果.md rename to doc/Dissolve_color/溶解效果.md index 4cd6bd3..8a6bc73 100644 --- a/doc/Dissolve_color/shader 溶解效果.md +++ b/doc/Dissolve_color/溶解效果.md @@ -2,7 +2,7 @@ 物体的淡入淡出是游戏当中很常见的一种状态切换效果,但是有时候我们希望`fade`切换的时候,物体能够能更有色彩层次感或者其他一些特殊的中间状态,这个时候就得自己去写着色器,这种区别于单纯的淡入和淡出的效果可以形象地叫做溶解。 -![demo](http://cdn.blog.ifengzp.com/cocos-awesome/Dissolve_color/resources/demo.gif) +![demo](./resources/demo.gif) # 实现思路 diff --git a/doc/Follow_spot/shader 追光效果.md b/doc/Follow_spot/追光效果.md similarity index 100% rename from doc/Follow_spot/shader 追光效果.md rename to doc/Follow_spot/追光效果.md