You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mojoc modules have dependency hierarchy, the upper layer can reference the lower layer, but the lower layer cannot reference the upper layer, and parallel modules cannot be referenced to each other. This ensures minimal dependency compilation of modules.
5
+
Mojoc modules have a dependency hierarchy, the upper layer can reference the lower layer, but the lower layer cannot reference the upper layer, and parallel modules cannot be referenced to each other. This ensures minimal dependency compilation of modules.
7
6
8
7
*[Toolkit Module](#toolkit-module)
9
8
*[ThirdParty Module](#thirdparty-module)
@@ -16,54 +15,54 @@ Mojoc modules have dependency hierarchy, the upper layer can reference the lower
16
15
17
16
## Toolkit Module
18
17
19
-
The [Toolkit](https://github.com/scottcgi/Mojoc/tree/master/Engine/Toolkit) module is development kit of C language. It provides basic data structure and algorithm support.
18
+
The [Toolkit](../Engine/Toolkit) module is a development kit of C language. It provides basic data structure and algorithm support.
20
19
21
-
*[Math](https://github.com/scottcgi/Mojoc/tree/master/Engine/Toolkit/Math) provides mathematical related algorithm implementation.
22
-
*[Utils](https://github.com/scottcgi/Mojoc/tree/master/Engine/Toolkit/Utils) provides basic data storage tools and algorithm structure.
23
-
*[HeaderUtils](https://github.com/scottcgi/Mojoc/tree/master/Engine/Toolkit/HeaderUtils) provides independent structure definitions or functions (no `.c` file implementation).
The [ThirdParty](https://github.com/scottcgi/Mojoc/tree/master/Engine/ThirdParty) module is prebuild third party libraries, that can direct called by Mojoc engine. So the third party need to provide different prebuild lib files for native platforms of Mojoc support.
28
+
The [ThirdParty](../Engine/ThirdParty) module contains third party libraries, that can direct called by Mojoc engine. So the third party need to provide different prebuild lib files for native platforms of Mojoc support.
30
29
31
-
* Currently only contains [PNG](https://github.com/scottcgi/Mojoc/tree/master/Engine/ThirdParty/PNG) library.
32
-
*[ThirdPartyBuild](https://github.com/scottcgi/Mojoc/tree/master/ThirdPartyBuild) is multi-platform build project of ThirdParty.
30
+
* Currently only contains [PNG](../Engine/ThirdParty/PNG) library.
31
+
*[ThirdPartyBuild](../ThirdPartyBuild) is a multi-platform build project of the ThirdParty module.
33
32
34
33
## Graphics Module
35
34
36
-
[Graphics](https://github.com/scottcgi/Mojoc/tree/master/Engine/Graphics) module is draw layer implemented with OpenGLES3, and provide drawing tools and implementations.
35
+
[Graphics](../Engine/Graphics) module is draw layer implemented with OpenGLES3, and provides drawing tools and implementations.
*[Audio.h](https://github.com/scottcgi/Mojoc/blob/master/Engine/Audio/Platform/Audio.h) is interface of audio API.
51
-
*[Platform](https://github.com/scottcgi/Mojoc/tree/master/Engine/Audio/Platform) is cross-platform audio implementation
52
-
*[Android/Audio.c](https://github.com/scottcgi/Mojoc/blob/master/Engine/Audio/Platform/Android/Audio.c) is OpenSLES implementation in Android.
53
-
*[IOS/Audio.m](https://github.com/scottcgi/Mojoc/blob/master/Engine/Audio/Platform/IOS/Audio.m) is OpenAL implementation in IOS.
49
+
*[Audio.h](../Engine/Audio/Platform/Audio.h) is an interface for the audio API.
50
+
*[Platform](../Engine/Audio/Platform) is a cross-platform audio implementation.
51
+
*[Android/Audio.c](../Engine/Audio/Platform/Android/Audio.c) is OpenSLES implementation in Android.
52
+
*[IOS/Audio.m](../Engine/Audio/Platform/IOS/Audio.m) is OpenAL implementation in IOS.
54
53
55
54
## Extension Module
56
55
57
-
[Extension](https://github.com/scottcgi/Mojoc/tree/master/Engine/Extension) module is editor-related implementation.
58
-
*[Spine](https://github.com/scottcgi/Mojoc/tree/master/Engine/Extension/Spine) is runtime implementation of Spine 2D skeleton animation.
56
+
[Extension](../Engine/Extension) module is editor-related implementation.
57
+
*[Spine](../Engine/Extension/Spine) is runtime implementation of Spine 2D skeleton animation.
59
58
60
59
## Application Module
61
60
62
-
[Application](https://github.com/scottcgi/Mojoc/tree/master/Engine/Application) module is app control and interaction layer. It provides app lifecycle callback, input event, native platform functions, component architecture and so on.
61
+
[Application](../Engine/Application) module is app control and interaction layer. It provides app lifecycle callbacks, input events, native platform functions, component architecture and so on.
Copy file name to clipboardExpand all lines: Docs/CodeStyle.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Mojoc strictly follow this code style to ensure the C code **readability** and **uniformity**. This code style is important to understand how Mojoc works.
1
+
Mojoc strictly follow this code style to ensure the C code **readability** and **uniformity**. This code style is important to understanding how Mojoc works.
Mojoc uses [OOC Spine](https://github.com/scottcgi/Mojoc/tree/master/Engine/Extension/Spine) to implement the Java [OOP Spine](https://github.com/EsotericSoftware/spine-runtimes/tree/3.5/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine).
260
+
Mojoc uses [OOC Spine](../Engine/Extension/Spine) to implement the Java [OOP Spine](https://github.com/EsotericSoftware/spine-runtimes/tree/3.5/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine).
Copy file name to clipboardExpand all lines: Docs/QuickStart.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,38 @@
1
1
## Three Steps To Quick Start
2
2
3
3
#### Step 1.
4
-
Get the source code, have three options.
4
+
To get the source code, there are three options.
5
5
6
-
* Git from <https://github.com/scottcgi/Mojoc.git>
7
-
* Download git master zip file <https://github.com/scottcgi/Mojoc/archive/master.zip>
8
-
* Download released version <https://github.com/scottcgi/Mojoc/releases>
6
+
* Git clone from <https://github.com/scottcgi/Mojoc.git>
7
+
* Download Github master zip file from<https://github.com/scottcgi/Mojoc/archive/master.zip>
8
+
* Download released version from <https://github.com/scottcgi/Mojoc/releases>
9
9
10
10
#### Step 2.
11
11
12
-
Running sample [SuperLittleRed](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed), debugging on phone.
12
+
Running sample [SuperLittleRed](../Samples/SuperLittleRed), debugging on phone.
13
13
14
-
*[IOS Folder](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed/IOS) is XCode project that all set up well, just open it with XCode.
15
-
*[Android Folder](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed/Android) is AndroidStudio project that all set up well, just open it with AndroidStudio.
16
-
* The only thing need to be set is switch Mojoc platform macro in [Platform.h](https://github.com/scottcgi/Mojoc/blob/master/Engine/Toolkit/Platform/Platform.h).
14
+
*[IOS Folder](../Samples/SuperLittleRed/IOS) is XCode project that all set up well, just open it with XCode.
15
+
*[Android Folder](../Samples/SuperLittleRed/Android) is AndroidStudio project that all set up well, just open it with AndroidStudio.
16
+
* The only thing that needs to be set is Mojoc platform macro in [Platform.h](../Engine/Toolkit/Platform/Platform.h).
17
17
```c
18
18
#definePLATFORM_TARGET PLATFORM_IOS
19
19
#define PLATFORM_TARGET PLATFORM_ANDROID
20
20
```
21
-
*[Code Folder](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed/Code) is sample code shared between android and ios.
21
+
*[Code Folder](../Samples/SuperLittleRed/Code) is sample code shared between android and ios.
22
22
23
-
And the AndroidStudio and Xcode already config sample source code reference [engine code](https://github.com/scottcgi/Mojoc/tree/master/Engine). So any engine code changes will present in sample game.
23
+
The AndroidStudio and Xcode sample source code already references [engine code](../Engine). So any engine code changes will be present in the sample game.
24
24
25
25
#### Step 3.
26
-
Understanding source code.
26
+
Understanding the source code.
27
27
28
-
* [Code Style](./CodeStyle.md) is unified code writing style, all source code following.
28
+
* [Code Style](./CodeStyle.md) is unified code writing style that all the source code follows.
29
29
* [OOC (Object Oriented C)](./OOC.md)) is the OOP (Object Oriented Programming) model of C language.
30
-
* Mojoc uses extremely lightweight OOC model that very easy to understand and use.
30
+
* Mojoc uses extremely lightweight OOC model that is very easy to understand and use.
31
31
* Following the OOC rules, the C language can build complex projects, and can organize and reuse large amounts of code.
32
-
*[Component Architecture](./ComponentArchitecture.md) is code architecture support gameplay logic.
33
-
*[Code Details](./CodeDetails.md)are introduced the engine modules and functions of each code file. Through this can understand all the code of Mojoc.
32
+
*[Component Architecture](./ComponentArchitecture.md) is code architecture that supports gameplay logic.
33
+
*[Code Details](./CodeDetails.md)to introduce the engine modules and functions of each source file. Through this can understand all the code of Mojoc.
34
34
35
-
The sample [SuperLittleRed](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed)give all aspects of using Mojoc, including all the above features. So modify and debug the source code helps understand all about Mojoc.
35
+
The sample [SuperLittleRed](../Samples/SuperLittleRed)shows all aspects of using Mojoc, including all the above features. So modifying and debugging the source code helps to understand everything about Mojoc.
Mojoc is licensed under the [MIT License](https://github.com/scottcgi/Mojoc/blob/master/LICENSE"Mojoc Under MIT License").
18
+
Mojoc is licensed under the [MIT License](./LICENSE"Mojoc Under MIT License").
19
19
20
20
21
21
## Core Idea
@@ -45,13 +45,13 @@ Mojoc has been used for a cross-platform Android and IOS game.
45
45
## Samples
46
46
The samples will show all aspects of the Mojoc features. Each platform will provide native building project for native platform editor. For example: Android provides AndroidStudio project, IOS provides XCode project.
47
47
48
-
Currently there is only one sample, which is a simplfied version of the published game [SuperLittleRed](https://github.com/scottcgi/Mojoc/tree/master/Samples/SuperLittleRed). Please check out the wiki [Quick Start](https://github.com/scottcgi/Mojoc/wiki) guide for quickly run this sample.
48
+
Currently there is only one sample, which is a simplfied version of the published game [SuperLittleRed](./Samples/SuperLittleRed). Please check out the wiki [Quick Start](./Docs/QuickStart.md) guide for quickly run this sample.
@@ -84,7 +84,7 @@ The compiled and playable apk is here:
84
84
85
85
During the development I experienced a lot of repetition and thinking. For a long time I was not very sure and clear about how to use the C language to simulate OOP and keep it simple and uniform. So I tried a lot of ideas, repeated the proces: wrote code, modified, refactored, changed ideas, deleted code, rewritten it again and so on.
86
86
87
-
But in the end, I developed a unique rule set, the [Mojoc Code Style](https://github.com/scottcgi/Mojoc/wiki/Code-Style) and [Mojoc OOC Model](./Docs/OOC.md) that felt right and nice, then I followed the rules to develop Mojoc.
87
+
But in the end, I developed a unique rule set, the [Mojoc Code Style](./Docs/CodeStyle.md) and [Mojoc OOC Model](./Docs/OOC.md) that felt right and nice, then I followed the rules to develop Mojoc.
0 commit comments