Исходный код fnf

Обновлено: 02.07.2024

Friday Night Funkin

This is the repository for Friday Night Funkin, a game originally made for Ludum Dare 47 "Stuck In a Loop".

    - Programmer and Evilsk8r - Art - Musician

This game was made with love to Newgrounds and it's community. Extra love to Tom Fulp.

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 COMPILE THE GAME YOURSELF, CONTINUE READING.

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).

    (Download 4.1.5 instead of 4.2.0 because 4.2.0 is broken and is not working with gits properly. ) 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. Currently, these are all of the things you need to install:

So for each of those type haxelib install [library] so shit like haxelib install newgrounds

You'll also need to install a couple things that involve Gits. To do this, you need to do a few things first.

You should have everything ready for compiling the game! Follow the guide below to continue!

At the moment, you can optionally fix the transition bug in songs with zoomed out cameras.

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

and you should be good to go there.

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:

  • MSVC v142 - VS 2019 C++ x64/x86 build tools
  • Windows SDK (10.0.17763.0)
  • C++ Profiling tools
  • C++ CMake tools for windows
  • C++ ATL for v142 build tools (x86 & x64)
  • C++ MFC for v142 build tools (x86 & x64)
  • C++/CLI support for v142 build tools (14.21)
  • C++ Modules for v142 build tools (x64/x86)
  • Clang Compiler for Windows
  • Windows 10 SDK (10.0.17134.0)
  • Windows 10 SDK (10.0.16299.0)
  • MSVC v141 - VS 2017 C++ x64/x86 build tools
  • MSVC v140 - VS 2015 C++ build tools (v14.00)

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 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.

Friday Night Funkin

This is the repository for Friday Night Funkin, a game originally made for Ludum Dare 47 "Stuck In a Loop".

IF YOU MAKE A MOD AND DISTRIBUTE A MODIFIED / RECOMPILED VERSION, YOU MUST OPEN SOURCE YOUR MOD AS WELL

    - Programmer and Evilsk8r - Art - Musician

This game was made with love to Newgrounds and its community. Extra love to Tom Fulp.

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 COMPILE THE GAME YOURSELF, CONTINUE READING.

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).

    (Download 4.1.5 instead of 4.2.0 because 4.2.0 is broken and is not working with gits properly. ) after downloading Haxe

Other installations you'd need are 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:

So for each of those type haxelib install [library] so shit like haxelib install newgrounds

You'll also need to install a couple things that involve Gits. To do this, you need to do a few things first.

You should have everything ready for compiling the game! Follow the guide below to continue!

At the moment, you can optionally fix the transition bug in songs with zoomed-out cameras.

I gitignore the API keys for the game so that no one can nab them and post fake high scores 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

and you should be good to go there.

NOTE: If you see any messages relating to deprecated packages, ignore them. They're just warnings that don't affect compiling

  • 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 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.


(I was debating where to post this, but I figured the coding community on r/CodingHelp is versatile enough to help me out here).

r/CodingHelp - Compiling the source code of FNF is. uh. troublesome. Any ideas and/or fixes?

I keep getting this message when trying to test run the Friday Night Funkin source code

Do any experienced coders or tech folks have a fix for this? (As I said, I am practically a novice at coding and modding in general, and I am beyond lost here).

I tried opening each of the provided apps as any sensible person would do. However, all that did was open a new visual studio window saying:

r/CodingHelp - Compiling the source code of FNF is. uh. troublesome. Any ideas and/or fixes?

Dunno if anyone has a fix, or if this is the right subreddit to post it to, but here I am.

Читайте также: