Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project.xml cleanup and Linux/Mac setup file #14

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 67 additions & 85 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@
<project>
<!-- _________________________ Application Settings _________________________ -->

<app title="Friday n Fnightfunkin" file="Friday n Fnightfunkin" packageName="com.shadowmario.psychengine" package="com.shadowmario.psychengine" main="Main" version="0.2.7" company="ShadowMario" />

<!--Switch Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />
<app title="Friday n Fnightfunkin" file="NightmareVE" main="Main" version="0.2.7" company="DuskieWhy"/>
<!-- for mac and android, so package names get recognised properly yeah mac is just like that. -->
<app packageName="com.duskiewhy.nightmarevision" package="com.duskiewhy.nightmarevision"/>

<!-- NOTE TO SELF: DISABLE THIS IF ISSUES ARE FOUND -->
<haxedef name="LINC_LUA_RELATIVE_DYNAMIC_LIB"/> <!-- stable luas PUT AFTER FIRST LINE WITH APP NAME AND ETC -->

<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
<!-- <app preloader="Preloader" resizable="true" /> -->
<app preloader="flixel.system.FlxPreloader" />
<!-- <app preloader="Preloader" resizable="true"/> -->
<app preloader="flixel.system.FlxPreloader"/>

<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />
<set name="SWF_VERSION" value="11.8"/>

<!-- ____________________________ Window Settings ___________________________ -->

<!--These window settings apply to all targets-->
<window width="1280" height="720" fps="" background="#000000" hardware="true" vsync="false" />
<window width="1280" height="720" fps="60" background="#000000" hardware="true" vsync="false"/>

<!--HTML5-specific-->
<window if="html5" resizable="true" />
<window if="html5" resizable="true"/>

<!--Desktop-specific-->
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false"/>
Expand All @@ -33,132 +32,115 @@
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false"/>

<!--Switch-specific-->
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true"/>

<!-- _____________________________ Path Settings ____________________________ -->

<set name="BUILD_DIR" value="export/debug" if="debug" />
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />
<classpath name="source"/>

<classpath name="source" />

<!-- PSYCH ENGINE CUSTOMIZATION -->
<define name="MODS_ALLOWED" if="desktop" />
<define name="LUA_ALLOWED" if="desktop" />
<!-- <define name="ACHIEVEMENTS_ALLOWED" /> FUCK YOUUUU-->
<define name="VIDEOS_ALLOWED" if="cpp" />
<define name="DISCORD_ALLOWED" if="cpp"/>
<set name="BUILD_DIR" value="export/debug" if="debug"/>
<set name="BUILD_DIR" value="export/release" unless="debug"/>
<set name="BUILD_DIR" value="export/32bit" if="32bits"/>

<!-- OOPPSSS HAHA -->
<!-- define name="HIT_SINGLE"/ -->

<!-- <define name="EMBED_FILES"/> -->

<!-- <assets path="assets/embeds/songs" rename= "assets/songs" library="songs" embed="true" if="EMBED_FILES"/>
<assets path="assets/embeds/songs" rename= "assets/songs" library="songs" embed="false" unless="EMBED_FILES"/>

<assets path="assets/embeds" rename= "assets" embed="true" if="EMBED_FILES"/>
<assets path="assets/embeds" rename= "assets" embed="false" unless="EMBED_FILES"/> -->


<define name="hscriptPos" if="debug" />
<!-- CUSTOM FILE EMBEDDING AND STUFF -->
<!-- RUN "lime test cpp -D HIT_SINGLE" TO ENABLE -->
<!-- YOU CAN APPEND "EMBED_FILES" AND THE END OF THAT IF YOU NEED ASSETS TO BE BAKED INTO THE EXECUTABLE -->
<!-- JUST REMEMBER TO PLACE THOSE ASSETS IN "assets/embeds" FOLDER !!! -->
<!-- FULL COMMAND WOULD BE "lime test cpp -D HIT_SINGLE EMBED_FILES" -->

<!--
<section if="EMBED_FILES">
<assets path="assets/embeds/songs" rename= "assets/songs" library="songs" embed="true"/>
<assets path="assets/embeds" rename= "assets" embed="true"/>
</section>

<section unless="EMBED_FILES">
<assets path="assets/embeds/songs" rename= "assets/songs" library="songs" embed="false"/>
<assets path="assets/embeds" rename= "assets" embed="false"/>
</section>
-->

<assets path="assets/preload" rename="assets"/>
<assets path="assets/fonts" rename="assets"/>

<library name="videos" preload="true"/>
<library name="songs" preload="true"/>
<library name="shared" preload="true"/>

<library name="videos" preload="true" />
<library name="songs" preload="true" />
<library name="shared" preload="true" />

<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED"/>
<assets path="assets/songs" library="songs" unless="HIT_SINGLE"/>
<assets path="assets/shared" library="shared"/>

<assets path='content' embed='false' if="MODS_ALLOWED"/>


<!-- <template path='mods' /> -->

<!-- assets path="CHANGELOG.md" rename='changelog.txt' -->

<!-- NOTE FOR FUTURE SELF SINCE FONTS ARE ALWAYS FUCKY
TO FIX ONE OF THEM, I CONVERTED IT TO OTF. DUNNO IF YOU NEED TO
THEN UHHH I USED THE NAME OF THE FONT WITH SETFORMAT() ON THE TEXT!!!
NOT USING A DIRECT THING TO THE ASSET!!!
-->



<assets path="assets/fonts" embed='true'/>
<!-- _______________________________ Libraries ______________________________ -->

<!-- template node, format stuff like this when adding new libraries to prevent compiler errors for your mods and such -->
<!-- <haxelib name="" version=""/> -->

<lime version="8.1.1"/>

<haxelib name="openfl" version="9.2.2"/>

<haxelib name="flixel" version="5.2.2" />
<haxelib name="flixel" version="5.2.2"/>
<haxelib name="flixel-addons" version="2.10.0"/>
<haxelib name="flixel-ui" version="2.5.0"/>
<haxelib name="flixel-tools" version="1.5.1"/>
<haxelib name="flxanimate" version="3.0.4"/>

<haxedev set='webgl' />
<haxelib name="hscript" />
<haxelib name="linc_luajit" if="LUA_ALLOWED" version="git" />
<haxelib name="discord_rpc" if="DISCORD_ALLOWED" version="git"/>
<haxelib name="hxvlc" if="VIDEOS_ALLOWED" version="1.6.1"/>

<haxelib name="linc_luajit" if="LUA_ALLOWED"/>
<haxelib name="faxe" if='switch'/>
<haxelib name="discord_rpc" if="DISCORD_ALLOWED"/>
<haxelib name="away3d"/>
<haxelib name="hxvlc" if="VIDEOS_ALLOWED"/>
<haxelib name="hscript" version="2.5.0"/>
<haxelib name="away3d" version="5.0.9"/>

<!-- <haxedef name="FLX_NO_PITCH" /> -->
<!-- ______________________________ Haxedefines _____________________________ -->

<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
<!--Enables better error handling / printing at runtime for HScript -->
<define name="hscriptPos" if="hscript"/>

<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" />
<haxedef name="FLX_NO_DEBUG" unless="debug"/>

<!--Enable this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />

<haxedef name="no-deprecation-warnings"/>
<!-- <haxelib name="markdown" /> -->
<!-- <haxelib name="HtmlParser" /> -->
<!--Disable the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN"/>

<!--In case you want to use nape with flixel-->
<!--<haxelib name="nape-haxe4" />-->
<!--Enable this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug"/>

<!-- ______________________________ Haxedefines _____________________________ -->
<!--Disable deprecated keyword / class warnings -->
<haxedef name="no-deprecation-warnings"/>

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->
<!-- <haxedef name="FLX_RECORD"/> -->

<!--Disable the right and middle mouse buttons-->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED"/> -->

<!--Disable the native cursor API on Flash-->
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
<!--<haxedef name="FLX_NO_NATIVE_CURSOR"/>-->

<!--Optimise inputs, be careful you will get null errors if you don't use conditionals in your game-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop" /> -->
<!--<haxedef name="FLX_NO_GAMEPAD" />-->
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile"/> -->
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile"/> -->
<!-- <haxedef name="FLX_NO_TOUCH" if="desktop"/> -->
<!-- <haxedef name="FLX_NO_GAMEPAD"/> -->

<!--Disable the Flixel core sound tray-->
<!--<haxedef name="FLX_NO_SOUND_TRAY" />-->
<!-- <haxedef name="FLX_NO_SOUND_TRAY"/> -->

<!--Disable the Flixel sound management code-->
<!--<haxedef name="FLX_NO_SOUND_SYSTEM" />-->

<!--Disable the Flixel core focus lost screen-->
<!-- <haxedef name="FLX_NO_SOUND_SYSTEM"/> -->

<!--Disable flixel's audio pitching system-->
<!-- <haxedef name="FLX_NO_PITCH"/> -->

<!-- _________________________________ Custom _______________________________ -->

<!--Place custom nodes like icons here (higher priority to override the HaxeFlixel icon)-->

<icon path="projFiles/icon/icon16.png" size='16'/>
<icon path="projFiles/icon/icon32.png" size='32'/>
<icon path="projFiles/icon/icon64.png" size='64'/>
<icon path="projFiles/icon/iconOG.png" />
<icon path="projFiles/icon/iconOG.png"/>
</project>
1 change: 1 addition & 0 deletions assets/songs/songs-go-here.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

20 changes: 20 additions & 0 deletions projFiles/compile-unix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
# literally just compile.bat but for mac and linux.
cd ..
echo INSTALLING LIBRARIES
haxelib set hxcpp 4.3.2
haxelib set lime 8.1.1
haxelib set openfl 9.2.2
haxelib set flixel-addons 2.10.0
haxelib set flixel-tools 1.5.1
haxelib set flixel-ui 2.5.0
haxelib set flixel 5.2.2
haxelib set hscript 2.5.0
haxelib set hxvlc 1.6.1
haxelib set away3d 5.0.9
haxelib set flxanimate 3.0.4
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc.git
echo BUILDING GAME
lime test cpp
echo done.
5 changes: 3 additions & 2 deletions projFiles/compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ haxelib set flixel 5.2.2
haxelib set lime 8.1.1
haxelib set openfl 9.2.2
haxelib set hscript 2.5.0
haxelib set hxvlc 1.2.0
haxelib set hxvlc 1.6.1
haxelib set hxcpp 4.3.2
haxelib set flxanimate 3.0.4
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc.git
echo BUILDING GAME
lime test windows
echo.
echo done.
pause
pause
Loading