Skip to content

Commit

Permalink
Merge pull request #11 from BrandyBuizel/master
Browse files Browse the repository at this point in the history
Switch works Pre-Faxe
YOLO COMMIT LETS GOOOO
  • Loading branch information
ninjamuffin99 committed Nov 25, 2020
2 parents 4e3297c + 2c49696 commit c70ed68
Show file tree
Hide file tree
Showing 70 changed files with 1,937 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Story mode scores not properly resetting, leading to VERY inflated highscores on the leaderboards. This also requires me to clear the scores that are on the leaderboard right now, sorry!
- Difficulty on storymode and in freeplay scores
- Hard mode difficulty on campaign levels have been fixed

## [0.2.1.1] - 2020-11-06
### Fixed
- Week 2 not unlocking properly
Expand Down
57 changes: 57 additions & 0 deletions Preloader.hx
@@ -0,0 +1,57 @@
package ;

import flixel.system.FlxBasePreloader;
import openfl.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BlendMode;
import flash.display.Sprite;
import flash.Lib;
import flixel.FlxG;

@:bitmap("art/preloaderArt.png") class LogoImage extends BitmapData { }

class Preloader extends FlxBasePreloader
{
public function new(MinDisplayTime:Float=3, ?AllowedURLs:Array<String>)
{
super(MinDisplayTime, AllowedURLs);
}

var logo:Sprite;

override function create():Void
{
this._width = Lib.current.stage.stageWidth;
this._height = Lib.current.stage.stageHeight;

var ratio:Float = this._width / 2560; //This allows us to scale assets depending on the size of the screen.

logo = new Sprite();
logo.addChild(new Bitmap(new LogoImage(0,0))); //Sets the graphic of the sprite to a Bitmap object, which uses our embedded BitmapData class.
logo.scaleX = logo.scaleY = ratio;
logo.x = ((this._width) / 2) - ((logo.width) / 2);
logo.y = (this._height / 2) - ((logo.height) / 2);
addChild(logo); //Adds the graphic to the NMEPreloader's buffer.

super.create();
}

override function update(Percent:Float):Void
{
if(Percent < 69)
{
logo.scaleX += Percent / 1920;
logo.scaleY += Percent / 1920;
logo.x -= Percent * 0.6;
logo.y -= Percent / 2;
}else{
logo.scaleX = this._width / 1280;
logo.scaleY = this._width / 1280;
logo.x = ((this._width) / 2) - ((logo.width) / 2);
logo.y = (this._height / 2) - ((logo.height) / 2);
}

super.update(Percent);
}
}
19 changes: 12 additions & 7 deletions Project.xml
Expand Up @@ -4,9 +4,12 @@

<app title="Friday Night Funkin" file="Funkin" packageName="com.ninjamuffin99.funkin" main="Main" version="0.2.2" company="ninjamuffin99" />

<!--Switch Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />

<!--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="flixel.system.FlxPreloader" />
<app preloader="Preloader" resizable="true" />

<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
<set name="SWF_VERSION" value="11.8" />
Expand Down Expand Up @@ -36,8 +39,8 @@

<classpath name="source" />

<assets path="assets/images"/>
<assets path="assets/data"/>
<assets path="assets/images" />
<assets path="assets/data" />

<!-- <library name="noPreload" preload='false'/> -->
<!-- <library name="noPreload"/> -->
Expand All @@ -48,8 +51,8 @@

<assets path="CHANGELOG.md"/>

<assets path="assets/fonts/vcr.ttf" embed="true" />

<assets path="assets/fonts/vcr.ttf" embed="true" />

<!-- _______________________________ Libraries ______________________________ -->

Expand All @@ -62,6 +65,8 @@
<!--In case you want to use the ui package-->
<haxelib name="flixel-ui" />
<haxelib name="newgrounds" />
<haxelib name="faxe" if='switch'/>

<!-- <haxelib name="markdown" /> -->
<!-- <haxelib name="HtmlParser" /> -->

Expand Down Expand Up @@ -103,10 +108,10 @@
<!-- _________________________________ Custom _______________________________ -->

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

<icon path="art/icon.png" />
<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
<haxedef name="NG_LOGIN" if="newgrounds" />


<!-- <haxedef name="SKIP_TO_PLAYSTATE" if="debug" /> -->
<haxedef name="NG_LOGIN" if="newgrounds" />

</project>
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -4,3 +4,5 @@ This is the repository for Friday Night Funkin, a game originally made for Ludum

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

## BrandyBuizel porting this shit like a G to Nintendo Switch
Binary file added art/FMOD Logo Black - White Background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/FMOD Logo White - Black Background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/Funkin.bmp
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion art/build-lime-SWITCH.bat
Expand Up @@ -19,7 +19,7 @@ echo HOPE AND PRAY...
color 0a
@echo on
echo BUILDING GAME
lime build switch -final -v
lime build switch -final -clean -v
@echo off
color 0b
@echo on
Expand Down
Binary file removed art/iconSwitch.png
Binary file not shown.
Binary file added art/lucky_guitar_assets.fla
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/lucky_plays_guitar/lucky_tumble_10.png
Binary file added art/lucky_plays_guitar/lucky_tumble_11.png
Binary file added art/lucky_plays_guitar/lucky_tumble_13.png
Binary file added art/lucky_plays_guitar/lucky_tumble_14.png
Binary file added art/lucky_plays_guitar/lucky_tumble_15.png
Binary file added art/lucky_plays_guitar/lucky_tumble_16.png
Binary file added art/lucky_plays_guitar/lucky_tumble_17.png
Binary file added art/lucky_plays_guitar/lucky_tumble_18.png
Binary file added art/preloaderArt.png
3 changes: 2 additions & 1 deletion assets/data/introText.txt
Expand Up @@ -21,4 +21,5 @@ kiddbrute for president--vote now
play dead estate--on newgrounds
this is a god damn prototype--we workin on it okay
women are real--this is official
too over exposed--newgrounds cant handle us
too over exposed--newgrounds cant handle us
Nintendo Switch--pre-orders now available
File renamed without changes.
Empty file added assets/fonts/fonts-go-here.txt
Empty file.
Binary file added assets/images/lucky_guitar_assets.png

0 comments on commit c70ed68

Please sign in to comment.