当前位置:网站首页>Open source cocos creator 3 X game framework oops framework
Open source cocos creator 3 X game framework oops framework
2022-07-21 22:46:00 【dgflash_ game】
oops-framework
Introduce
oops-framework be based on Cocos Creato 3.x Developed a game framework
- Provide common game function libraries , Improve development efficiency
- Provide templates for business module development , Reduce the difficulty of program design
- Low coupling of built-in modules in the framework , You can delete unnecessary modules by yourself
Framework instructions
There are many technical contents in the framework , Every technology has been tested by the author in the project , Therefore, the stability of single technology is relatively guaranteed . Developers can get the framework and understand the required technology according to their current needs .
Reading suggestions for first contact with game developers
- read script/game/initialize Game initialization process under folder
- Understand how to build a game module
- Understand what the game initialization process does
- Understand how the resource loading interface is managed through the interface (oops.gui.open) Of API Start the prefabrication interface
- Draw inferences from one instance after understanding , Assemble the interface through prefabrication , Attempt to call pass Cocos Creator Node component development mode production interface , Through oops-framework Of API Open and close the management interface
- And then do something DEMO Small program practice deepens the proficiency of technology use , Before moving to the second stage
Reading suggestions for developers with project experience
- read script/game One provided by the author DEMO, This DEMO What the author expresses is based on oops-framework Designed business framework
- Understand the design idea of the three-tier architecture of the supply module , Auxiliary demand analysis
- Understand code templates , Auxiliary business module development
- Understand code separation between modules , Keep business thinking clear
- Understand the low coupling between modules , Reduce the scope of influence when modifying requirements
Technical classification
- Foundation class
- Interface management - LayerManager.ts
- Resource management - ResLoader.ts
- time management - TimerManager.ts
- Sound management - AudioManager.ts
- Message management - MessageManager.ts
- Screen adaptation - GUI.ts.ts
- The local store - StorageManager.ts
- Interface class
- Commonly used UI Components
- Button class - gui/button
- The tag class - gui/label
- Language class - gui/language
- MVVM Component library - core/libs/model-view
- Special effects management - core/game/effect
- Commonly used UI Components
- Network class
- Http - core/network/HttpRequest.ts
- WebSocket - core/network/NetManager.ts
- Framework class
- ECS - core/libs/ECS.ts
- BehaviorTree Behavior tree - core/libs/behavior-tree
- Visual animation state machine - core/libs/animator
- Tool class
- Asynchronous queues - AsyncQueue.ts
- Log management - Logger.ts
- Random number generator - RandomManager.ts
- encryption tool - core/libs/security
- gzip Compress - core/libs/pako.min
- Auxiliary method library - core/utils
- Render textures
- The contents of the 3D camera are displayed on the model - RtToModel
- The 3D model is displayed on the 2D sprite - RtToSprite
- Hot update
- Hotter control script game/initialize/view/HotUpdate.ts
- Local hot configuration resources/project.manifes
- Local hot configuration resources/version.manifes
- Cocos Creator 3.5 Version new function business framework template
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-X9Is58UQ-1651152923764)(./doc/imgs/module.png)]
Third party source code library
Library name | Introduce | Original link |
---|---|---|
WebSocket | The original design is flexible , Easy to extend custom protocol | Originator code address |
animator | Visual animation state machine , And Untiy3D Of Animator The experience is similar to , Expand 3D Bone animation support | Originator code address |
model-view | MVVM Component library , The original library is cc2.x edition , I upgrade to cc3.x | Originator code address |
ECS Framework | Entity-Component-System, The original code has been upgraded and optimized | Originator code address |
behavior-tree | Behavior tree | nothing |
The third party NPM library
Library name | Introduce | install | Original link |
---|---|---|---|
Nano ID | Generate unique identity | npm install --save nanoid | Originator code address |
seedrandom | Generate random number | npm install seedrandom | Originator code address |
ky | Fetch API Small and elegant HTTP client | npm install ky | Originator code address |
Demonstration of some functions of the framework
Solution demonstration of framework implementation
Game map module oops-rpg-2d
Novice guidance module oops-guide
Online game framework oops-mgobe
Open source framework oops-framework gitee
Open source framework oops-framework github
Exchange of learning QQ Group :798575969
notes :
Cocos Creator 3.x Different versions of the framework , It can be downloaded in the branch
边栏推荐
猜你喜欢
随机推荐
P1111 修复公路(并查集)
005:整型数据类型存储空间大小
力扣记录:动态规划2背包问题(2)完全背包——518 零钱兑换II,377 组合总和IV,70 爬楼梯,322零钱兑换,279 完全平方数,139 单词拆分
016:简单计算器
Redis哨兵机制及配置过程
第一周ACM训练报告
Verify Goldbach conjecture
第四周ACM训练报告
Programmation créative / groupe primaire (4e - 6e année) - graphisme créatif
006: floating point data type storage space size
226. 翻转二叉树
Which of these five special Bluetooth cores suits your application best
9th week ACM training report
Principles and advantages of wireless charging module development
205. 同构字符串
567. 字符串的排列
029:陶陶摘苹果
11th week ACM training report
2022acm summer training weekly report (III)
Characteristics and differences between PCB and integrated circuit