1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-19 16:41:39 +00:00

Merge pull request #464 from TentaRJ/master

Edited README to fix compiling issue
This commit is contained in:
Cameron Taylor 2021-02-23 23:21:54 -05:00 committed by GitHub
commit 1fcbeed1e3

186
README.md
View file

@ -1,92 +1,94 @@
# Friday Night Funkin # Friday Night Funkin
This is the repository for Friday Night Funkin, a game originally made for Ludum Dare 47 "Stuck In a Loop". This is the repository for Friday Night Funkin, a game originally made for Ludum Dare 47 "Stuck In a Loop".
Play the Ludum Dare prototype here: https://ninja-muffin24.itch.io/friday-night-funkin Play the Ludum Dare prototype here: https://ninja-muffin24.itch.io/friday-night-funkin
Play the Newgrounds one here: https://www.newgrounds.com/portal/view/770371 Play the Newgrounds one here: https://www.newgrounds.com/portal/view/770371
Support the project on the itch.io page: https://ninja-muffin24.itch.io/funkin Support the project on the itch.io page: https://ninja-muffin24.itch.io/funkin
## Credits / shoutouts ## Credits / shoutouts
- [ninjamuffin99 (me!)](https://twitter.com/ninja_muffin99) - Programmer - [ninjamuffin99 (me!)](https://twitter.com/ninja_muffin99) - Programmer
- [PhantomArcade3K](https://twitter.com/phantomarcade3k) and [Evilsk8r](https://twitter.com/evilsk8r) - Art - [PhantomArcade3K](https://twitter.com/phantomarcade3k) and [Evilsk8r](https://twitter.com/evilsk8r) - Art
- [Kawaisprite](https://twitter.com/kawaisprite) - Musician - [Kawaisprite](https://twitter.com/kawaisprite) - Musician
This game was made with love to Newgrounds and it's community. Extra love to Tom Fulp. This game was made with love to Newgrounds and it's community. Extra love to Tom Fulp.
## Build instructions ## Build instructions
THESE INSTRUCTIONS ARE FOR COMPILING THE GAME'S SOURCE CODE!!! THESE INSTRUCTIONS ARE FOR COMPILING THE GAME'S SOURCE CODE!!!
IF YOU WANT TO JUST DOWNLOAD AND INSTALL AND PLAY THE GAME NORMALLY, GO TO ITCH.IO TO DOWNLOAD THE GAME FOR PC, MAC, AND LINUX!! IF YOU WANT TO JUST DOWNLOAD AND INSTALL AND PLAY THE GAME NORMALLY, GO TO ITCH.IO TO DOWNLOAD THE GAME FOR PC, MAC, AND LINUX!!
https://ninja-muffin24.itch.io/friday-night-funkin https://ninja-muffin24.itch.io/friday-night-funkin
IF YOU WANT TO COMPILE THE GAME YOURSELF, CONTINUE READING!!! IF YOU WANT TO COMPILE THE GAME YOURSELF, CONTINUE READING!!!
### Installing shit ### Installing the Required Programs
First you need to install Haxe and HaxeFlixel. I'm too lazy to write and keep updated with that setup (which is pretty simple). First you need to install Haxe and HaxeFlixel. I'm too lazy to write and keep updated with that setup (which is pretty simple).
The link to that is on the [HaxeFlixel website](https://haxeflixel.com/documentation/getting-started/) 1. [Install Haxe 4.1.5](https://haxe.org/download/version/4.1.5/) (Download 4.1.5 instead of 4.2.0 because 4.2.0 is broken and is not working with gits properly...)
2. [Install HaxeFlixel](https://haxeflixel.com/documentation/install-haxeflixel/) after downloading Haxe
Other installations you'd need is the additional libraries, a fully updated list will be in `Project.xml` in the project root, but here are the one's I'm using as of writing.
Other installations you'd need is the additional libraries, a fully updated list will be in `Project.xml` in the project root. Currently, these are all of the things you need to install:
``` ```
hscript flixel
flixel-ui flixel-addons
newgrounds flixel-ui
``` hscript
newgrounds
So for each of those type `haxelib install [library]` so shit like `haxelib install newgrounds` ```
So for each of those type `haxelib install [library]` so shit like `haxelib install newgrounds`
You'll also need to install polymod. Do this with
You'll also need to install polymod. To do this, you need to do a few things first.
``` 1. Download [git-scm](https://git-scm.com/downloads). Works for Windows, Mac, and Linux, just select your build.
haxelib git polymod https://github.com/larsiusprime/polymod.git 2. Follow instructions to install the application properly.
``` 3. Run `haxelib git polymod https://github.com/larsiusprime/polymod.git` in terminal/command-prompt after your git program is installed.
### Ignored files You should have everything ready for compiling the game! Follow the guide below to continue!
I gitignore the API keys for the game, so that no one can nab them and post fake highscores on the leaderboards. But because of that the game ### Ignored files
doesn't compile without it.
I gitignore the API keys for the game, so that no one can nab them and post fake highscores on the leaderboards. But because of that the game
Just make a file in `/source` and call it `APIStuff.hx`, and copy paste this into it doesn't compile without it.
```haxe Just make a file in `/source` and call it `APIStuff.hx`, and copy paste this into it
package;
```haxe
class APIStuff package;
{
public static var API:String = ""; class APIStuff
public static var EncKey:String = ""; {
} public static var API:String = "";
public static var EncKey:String = "";
``` }
and you should be good to go there. ```
### Compiling game and you should be good to go there.
Once you have all those installed, it's pretty easy to compile the game. You just need to run 'lime test html5 -debug' in the root of the project to build and run the HTML5 version. (command prompt navigation guide can be found here: [https://ninjamuffin99.newgrounds.com/news/post/1090480](https://ninjamuffin99.newgrounds.com/news/post/1090480)) ### Compiling game
To run it from your desktop (Windows, Mac, Linux) it can be a bit more involved. For Linux, you only need to open a terminal in the project directory and run 'lime test linux -debug' and then run the executible file in export/release/linux/bin. For Windows, you need to install Visual Studio Community 2019. While installing VSC, don't click on any of the options to install workloads. Instead, go to the individual components tab and choose the following: Once you have all those installed, it's pretty easy to compile the game. You just need to run 'lime test html5 -debug' in the root of the project to build and run the HTML5 version. (command prompt navigation guide can be found here: [https://ninjamuffin99.newgrounds.com/news/post/1090480](https://ninjamuffin99.newgrounds.com/news/post/1090480))
* MSVC v142 - VS 2019 C++ x64/x86 build tools
* Windows SDK (10.0.17763.0) To run it from your desktop (Windows, Mac, Linux) it can be a bit more involved. For Linux, you only need to open a terminal in the project directory and run 'lime test linux -debug' and then run the executible file in export/release/linux/bin. For Windows, you need to install Visual Studio Community 2019. While installing VSC, don't click on any of the options to install workloads. Instead, go to the individual components tab and choose the following:
* C++ Profiling tools * MSVC v142 - VS 2019 C++ x64/x86 build tools
* C++ CMake tools for windows * Windows SDK (10.0.17763.0)
* C++ ATL for v142 build tools (x86 & x64) * C++ Profiling tools
* C++ MFC for v142 build tools (x86 & x64) * C++ CMake tools for windows
* C++/CLI support for v142 build tools (14.21) * C++ ATL for v142 build tools (x86 & x64)
* C++ Modules for v142 build tools (x64/x86) * C++ MFC for v142 build tools (x86 & x64)
* Clang Compiler for Windows * C++/CLI support for v142 build tools (14.21)
* Windows 10 SDK (10.0.17134.0) * C++ Modules for v142 build tools (x64/x86)
* Windows 10 SDK (10.0.16299.0) * Clang Compiler for Windows
* MSVC v141 - VS 2017 C++ x64/x86 build tools * Windows 10 SDK (10.0.17134.0)
* MSVC v140 - VS 2015 C++ build tools (v14.00) * Windows 10 SDK (10.0.16299.0)
* MSVC v141 - VS 2017 C++ x64/x86 build tools
This will install about 22GB of crap, but once that is done you can open up a command line in the project's directory and run `lime test windows -debug`. Once that command finishes (it takes forever even on a higher end PC), you can run FNF from the .exe file under export\release\windows\bin * MSVC v140 - VS 2015 C++ build tools (v14.00)
As for Mac, 'lime test mac -debug' should work, if not the internet surely has a guide on how to compile Haxe stuff for Mac.
This will install about 22GB of crap, but once that is done you can open up a command line in the project's directory and run `lime test windows -debug`. Once that command finishes (it takes forever even on a higher end PC), you can run FNF from the .exe file under export\release\windows\bin
### Additional guides As for Mac, 'lime test mac -debug' should work, if not the internet surely has a guide on how to compile Haxe stuff for Mac.
- [Command line basics](https://ninjamuffin99.newgrounds.com/news/post/1090480) ### Additional guides
- [Command line basics](https://ninjamuffin99.newgrounds.com/news/post/1090480)