Skip to content

Commit

Permalink
MP4 cutscenes, credits, more organized code.
Browse files Browse the repository at this point in the history
MP4 cutscenes, credits, more organized code.
  • Loading branch information
TheGaloXx committed Nov 26, 2022
1 parent de3fe7c commit 34e502a
Show file tree
Hide file tree
Showing 27 changed files with 391 additions and 415 deletions.
9 changes: 7 additions & 2 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ Twitter: https://twitter.com/kindergargame


Original Kindergarten developers:
Con Man Games (https://www.youtube.com/@conmangames1292)
SmashGames
Con Man Games LLC (https://www.youtube.com/@conmangames1292)
SmashGames LLC
Muz Station Productions
Creator - Connor Boyle (https://twitter.com/connorboyle_cmg)
Main Artist - Sean Young (https://twitter.com/seanyoungsg)
Soundtrack - Andrey Sitkov (https://soundcloud.com/andrey-sitkov)
Soundtrack - Bashiboizu (https://twitter.com/bashiboizu)


Expand All @@ -30,6 +32,9 @@ Mod developers:
Pixel note splashes:
Epoli (https://gamebanana.com/mods/360401)

MP4 video handler:
PolybiusProxy (https://twitter.com/polybiusproxy)

Original Engine:
Kade Engine (https://gamebanana.com/mods/44291) by KadeDeveloper (https://gamebanana.com/members/1774971)

Expand Down
8 changes: 8 additions & 0 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@

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

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

<assets path="assets/songs" library="songs" exclude="*.ogg" if="web"/>
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web"/>
<assets path="assets/shared" library="shared" exclude="*.ogg" if="web"/>
<assets path="assets/shared" library="shared" exclude="*.mp3" unless="web"/>

<assets path="assets/preload/videos" exclude="*.mp3" if="web"/>
<assets path="assets/preload/videos" exclude="*.ogg" unless="web"/>


<assets path='CREDITS' rename='CREDITS.txt' />
<assets path='extra/LICENSE' rename='LICENSE.txt' />
<assets path='extra/art' rename='icons' />
Expand All @@ -47,6 +53,8 @@
<haxelib name="flixel-studio"/>
<haxelib name="flixel-ui" />
<haxelib name="linc_luajit" if="windows"/>
<haxelib name="hxCodec" if="desktop" />
<haxelib name="flixel-shadertoy-shader" />

<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
<haxedef name="FLX_NO_DEBUG" unless="debug" />
Expand Down
Binary file added assets/preload/videos/Me llamo sans.mp4
Binary file not shown.
Binary file added assets/preload/videos/bl.mp4
Binary file not shown.
Empty file.
Binary file removed extra/art/Flash files/Sans Nugget.fla
Binary file not shown.
22 changes: 0 additions & 22 deletions source/Apple.hx

This file was deleted.

45 changes: 0 additions & 45 deletions source/GumTrap.hx

This file was deleted.

86 changes: 0 additions & 86 deletions source/KinderButton.hx

This file was deleted.

36 changes: 0 additions & 36 deletions source/LanguageSpr.hx

This file was deleted.

50 changes: 0 additions & 50 deletions source/MenuItem.hx

This file was deleted.

22 changes: 22 additions & 0 deletions source/MusicBeatState.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package;

import flixel.FlxState;
import flixel.tweens.FlxTween;
import flixel.addons.plugin.screengrab.FlxScreenGrab;
import flixel.util.FlxTimer;
import flixel.util.FlxColor;
import flixel.FlxSprite;
import Shaders.ChromaHandler;
import openfl.filters.ShaderFilter;
import flixel.FlxBasic;
Expand Down Expand Up @@ -127,4 +133,20 @@ class MusicBeatState extends FlxUIState

substates.LoadingState.loadAndSwitchState(new PlayState(), true);
}

public function cutscene(videoName:String, stateToSwitchTo:FlxState):Void
{
FlxG.sound.music.stop();
var video:VideoHandler = new VideoHandler();
video.finishCallback = function()
{
substates.LoadingState.loadAndSwitchState(stateToSwitchTo);
}
var screenFade:FlxSprite = new FlxSprite().makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);
screenFade.scrollFactor.set();
screenFade.alpha = 0;
add(screenFade);
FlxTween.tween(screenFade, {alpha: 1}, 0.5);
new FlxTimer().start(0.5, function(_) video.playVideo(Paths.video(videoName + '.mp4')));
}
}
26 changes: 0 additions & 26 deletions source/NoteCombo.hx

This file was deleted.

Loading

0 comments on commit 34e502a

Please sign in to comment.