1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-11 07:55:01 +00:00
Funkin/README.md

95 lines
4.4 KiB
Markdown
Raw Normal View History

2021-02-17 23:43:50 +00:00
# Friday Night Funkin
This is the repository for Friday Night Funkin, a game originally made for Ludum Dare 47 "Stuck In a Loop".
Play free in your browser on Newgrounds: https://www.newgrounds.com/portal/view/770371
Download the game for desktop on Itch.io: https://ninja-muffin24.itch.io/funkin
2021-02-17 23:43:50 +00:00
# Credits
2021-02-17 23:43:50 +00:00
- [ninjamuffin99](https://twitter.com/ninja_muffin99) - Programmer
2021-02-17 23:43:50 +00:00
- [PhantomArcade3K](https://twitter.com/phantomarcade3k) and [Evilsk8r](https://twitter.com/evilsk8r) - Art
- [Kawaisprite](https://twitter.com/kawaisprite) - Musician
This game was made with love to Newgrounds and it's community. Extra love to Tom Fulp.
IF YOU MAKE A MOD AND DISTRIBUTE A MODIFIED / RECOMIPLED VERSION, YOU MUST OPEN SOURCE YOUR MOD AS WELL
## Credits / shoutouts
2021-02-17 23:43:50 +00:00
## Build instructions
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!!
https://ninja-muffin24.itch.io/funkin
2021-02-17 23:43:50 +00:00
IF YOU WANT TO COMPILE THE GAME YOURSELF, CONTINUE READING!!!
2021-02-18 00:32:49 +00:00
### Installing the Required Programs
2021-02-17 23:43:50 +00:00
First you need to install Haxe and HaxeFlixel. I'm too lazy to write and keep updated with that setup (which is pretty simple).
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
2022-05-13 17:03:52 +00:00
Other installations you'd need is the additional libraries, a fully updated list will be in `hmm.json` in the project root. Currently, these are all of the things you need to install:
2021-02-17 23:43:50 +00:00
```
2022-05-13 17:03:52 +00:00
haxelib --global install hmm
haxelib --global run hmm setup
hmm install
2021-02-17 23:43:50 +00:00
```
2022-05-13 17:03:52 +00:00
<!-- You'll also need to install a couple things that involve Gits. To do this, you need to do a few things first.
2021-02-18 00:32:49 +00:00
1. Download [git-scm](https://git-scm.com/downloads). Works for Windows, Mac, and Linux, just select your build.
2. Follow instructions to install the application properly.
2021-03-19 02:26:23 +00:00
3. Run `haxelib git polymod https://github.com/larsiusprime/polymod.git` to install Polymod.
2022-05-13 17:03:52 +00:00
4. Run `haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc` to install Discord RPC. -->
2021-02-18 00:32:49 +00:00
You should have everything ready for compiling the game! Follow the guide below to continue!
2021-02-17 23:43:50 +00:00
### Ignored files
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
doesn't compile without it.
Just make a file in `/source` and call it `APIStuff.hx`, and copy paste this into it
```haxe
package;
class APIStuff
{
2021-03-14 02:24:57 +00:00
inline public static var API:String = "51348:TtzK0rZ8";
inline public static var EncKey:String = "5NqKsSVSNKHbF9fPgZPqPg==";
inline public static var SESSION:String = null;
2021-02-17 23:43:50 +00:00
}
```
and you should be good to go there.
### Compiling game
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))
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 executable 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:
2021-02-17 23:43:50 +00:00
* MSVC v142 - VS 2019 C++ x64/x86 build tools
* Windows SDK (10.0.17763.0)
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
2021-02-17 23:43:50 +00: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.
### Additional guides
2021-02-18 00:32:49 +00:00
- [Command line basics](https://ninjamuffin99.newgrounds.com/news/post/1090480)
2021-09-08 04:22:38 +00:00
2021-09-08 04:25:04 +00:00
Commits are generally signed and verified, as of September 8th, 2021! Using GPG!