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
Copy file name to clipboardExpand all lines: README.md
+23-12Lines changed: 23 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,26 +36,37 @@ Also the game is available on Itch.io: https://eugenyn.itch.io/tanks-kombat
36
36
37
37
## Build from source
38
38
39
-
####Prerequisites
39
+
### Prerequisites
40
40
41
41
1. Download [Axmol](https://github.com/axmolengine/axmol) game engine.
42
-
2. Config ```axmol```, run ```python setup.py``` from axmol root directory.
42
+
2. Install [PowerShell](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell), powershell-7 is recommended, it's support Windows, macOS, Linux
43
+
3. Config ```axmol```, run ```pwsh setup.ps1``` from axmol root directory.
44
+
4. Ensure C/C++ compiler toolset installed on your machine.
43
45
44
-
#### Windows
46
+
###Quick build by `axmol build` for all target platforms [`Recommended`]
45
47
46
-
1. Install Visual Studio 2019/2022 (for toolchain)
47
-
2. Install [CMake](https://cmake.org/) 3.14+
48
+
Using a powershell console window, the `axmol build` command will auto setup general depended toolsets, so you can simply build project for all platform targets, i.e.
49
+
50
+
- win32: `axmol build -p win32`
51
+
- android: `axmol build -p android -a arm64` can runs on Windows, Linux, macOS and script will auto setup android sdk
52
+
53
+
See [DevSetup](https://github.com/axmolengine/axmol/blob/dev/docs/DevSetup.md) for additional options.
54
+
55
+
### Manually build with cmake
56
+
57
+
#### Windows (Visual Studio)
58
+
59
+
1. Install Visual Studio 2022 (for toolchain)
60
+
2. Install [CMake](https://cmake.org/) 3.28.1+
48
61
3. Use CMake to build project files:
49
62
* for 32 bit Visual Studio 2022: ```cmake -S . -B build -G "Visual Studio 17 2022" -A Win32```
50
63
* for 64 bit Visual Studio 2022: ```cmake -S . -B build -G "Visual Studio 17 2022" -A x64```
51
-
4. Build and run project.
52
-
53
-
Also you can use built-in CMake projects support in your IDE (use Visual Studio as toolchain)
64
+
4. Use Visual Studio to open the newly created solution file. Build and run project.
54
65
55
-
#### Android
66
+
#### Android (Android Studio)
56
67
57
-
1. Install Android Studio
58
-
2. Install SDK Build-Tools, NDK r23c+, CMake 3.10+ from Android Studio ```SDK Manager```
68
+
1. Install Android Studio 2023.1.1+
69
+
2. Install SDK Build-Tools 34.0.0, NDK r23c+, CMake, from Android Studio ```SDK Manager```, use Gradle Plugin (AGP) 8.2.1
59
70
3. Open ```proj.android``` in Android Studio, wait for ```Gradle sync``` finish.
60
71
4. Build and run project.
61
72
@@ -68,7 +79,7 @@ Also you can use built-in CMake projects support in your IDE (use Visual Studio
68
79
69
80
## Third-party code and libraries
70
81
71
-
*[Axmol Game Engine](https://github.com/axmolengine/axmol) fork of [Cocos2d-x-4.0](https://github.com/cocos2d/cocos2d-x)
82
+
*[Axmol Game Engine](https://github.com/axmolengine/axmol)
*[Random Cave Using Cellular Automata](http://gamedevelopment.tutsplus.com/tutorials/generate-random-cave-levels-using-cellular-automata--gamedev-9664)
74
85
*[A* Pathfinding with Cocos2D](http://www.raywenderlich.com/4970/how-to-implement-a-pathfinding-with-cocos2d-tutorial) (Objective-C)
0 commit comments