new how to build section in readme + crash fix

This commit is contained in:
Yoshman29
2023-01-08 18:16:43 +01:00
parent a9925105f8
commit 06e9ed2192
5 changed files with 33 additions and 9 deletions
+29 -6
View File
@@ -16,9 +16,32 @@ Also, `lime test windows` uses the source assets folder instead of the export on
- Credits to [Ne_Eo](https://twitter.com/Ne_Eo_Twitch) and the [3D-HaxeFlixel](https://github.com/lunarcleint/3D-HaxeFlixel) repository for Away3D Flixel support - Credits to [Ne_Eo](https://twitter.com/Ne_Eo_Twitch) and the [3D-HaxeFlixel](https://github.com/lunarcleint/3D-HaxeFlixel) repository for Away3D Flixel support
- Credits to Smokey555 for the fancy Animate Atlas code (might be replaced soon) - Credits to Smokey555 for the fancy Animate Atlas code (might be replaced soon)
## HOW TO BUILD <details>
- Install the [latest version of Haxe](https://haxe.org/download/) <summary><h2>How to build</h2></summary>
- Install everything mentioned here for your platform: [`Windows`](https://lime.openfl.org/docs/advanced-setup/windows/), [`Linux`](https://lime.openfl.org/docs/advanced-setup/linux/), [`MacOS`](https://lime.openfl.org/docs/advanced-setup/macos/)
- Run `update.bat` to install/update all libraries needed for the engine. ### **Open the instructions for your platform**
- If you're using another operating system, execute `haxe -cp update -D analyzer-optimize -main Update --interp` in a terminal. <details>
- Run `lime test windows` to compile the game (may take a long time) <summary><h3>Windows</h3></summary>
##### Tested on Windows 10 21H2
1. Install the [latest version of Haxe](https://haxe.org/download/).
2. Download [Visual Studio Build Tools](https://aka.ms/vs/17/release/vs_BuildTools.exe)
3. Wait for the Visual Studio Installer to install
4. On the Visual Studio installer screen, go to the "Individual components" tab and only select those options:
- MSVC v143 VS 2022 C++ x64/x86 build tools (Latest)
- Windows 10/11 SDK (any works)
5. This is what your Installation details panel should look like. Once correct, press "Install".
- ⚠ This will download around 1.07 GB of data from the internet, and will require around 5.5 GB of available space on your computer.
![Installation details](art/github/windows-installation-details.png)
6. Once the installation is done, close Visual Studio Installer.
7. Download and install [`git-scm`](https://git-scm.com/download/win).
- Leave all installation options as default.
8. Open the Codename Engine source folder, click on the address bar and type `cmd` to open a command prompt window.
9. On the command prompt, run `update.bat`, and wait for the libraries to install.
10. Once the libraries are installed, run `haxelib run lime test windows` to compile and launch the game (may take a long time)
- ℹ You can run `haxelib run lime setup` to make the lime command global, allowing you to execute `lime test windows` directly.
</details>
</details>
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

+1 -1
View File
@@ -1,2 +1,2 @@
update.bat update.bat
lime test windows haxelib run lime test windows
+1 -1
View File
@@ -1 +1 @@
1950 1951
@@ -74,6 +74,7 @@ class WindowDragHitbox extends FlxObject {
override function destroy() { override function destroy() {
super.destroy(); super.destroy();
offset.put(); if (offset != null)
offset.put();
} }
} }