mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-29 00:08:11 +00:00
sounds in progress
This commit is contained in:
parent
66f77a985f
commit
ab5d6d2f48
2
art
2
art
|
@ -1 +1 @@
|
||||||
Subproject commit 769b84ffd7550b18fb3719cf4cb6b48296bdd097
|
Subproject commit 61f8e43cf782ad480cd9ed29cd982562becb59a5
|
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit 2d4cd85129db9aea8cdba62ef43313f99f13c857
|
Subproject commit 096b42fb7d263752cd39ab76ef0cc1bcb391ea51
|
2
hmm.json
2
hmm.json
|
@ -32,7 +32,7 @@
|
||||||
"name": "flxanimate",
|
"name": "flxanimate",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "37fd4ed45011063a38fdfe9bb6091671b3ac6c17",
|
"ref": "dd2903f",
|
||||||
"url": "https://github.com/ninjamuffin99/flxanimate"
|
"url": "https://github.com/ninjamuffin99/flxanimate"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@ import flixel.FlxSprite;
|
||||||
import flixel.util.FlxSignal;
|
import flixel.util.FlxSignal;
|
||||||
import funkin.util.assets.FlxAnimationUtil;
|
import funkin.util.assets.FlxAnimationUtil;
|
||||||
import funkin.graphics.adobeanimate.FlxAtlasSprite;
|
import funkin.graphics.adobeanimate.FlxAtlasSprite;
|
||||||
|
import flixel.system.FlxSound;
|
||||||
|
|
||||||
class DJBoyfriend extends FlxAtlasSprite
|
class DJBoyfriend extends FlxAtlasSprite
|
||||||
{
|
{
|
||||||
|
@ -35,6 +36,15 @@ class DJBoyfriend extends FlxAtlasSprite
|
||||||
|
|
||||||
animOffsets = new Map<String, Array<Dynamic>>();
|
animOffsets = new Map<String, Array<Dynamic>>();
|
||||||
|
|
||||||
|
anim.callback = function(name, number) {
|
||||||
|
switch (name)
|
||||||
|
{
|
||||||
|
case "Boyfriend DJ watchin tv OG":
|
||||||
|
if (number == 85) runTvLogic();
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
setupAnimations();
|
setupAnimations();
|
||||||
trace(listAnimations());
|
trace(listAnimations());
|
||||||
|
|
||||||
|
@ -127,6 +137,11 @@ class DJBoyfriend extends FlxAtlasSprite
|
||||||
|
|
||||||
case "Boyfriend DJ watchin tv OG":
|
case "Boyfriend DJ watchin tv OG":
|
||||||
var frame:Int = FlxG.random.bool(33) ? 112 : 166;
|
var frame:Int = FlxG.random.bool(33) ? 112 : 166;
|
||||||
|
if (FlxG.random.bool(10))
|
||||||
|
{
|
||||||
|
frame = 60;
|
||||||
|
// boyfriend switches channel code?
|
||||||
|
}
|
||||||
anim.play("Boyfriend DJ watchin tv OG", true, false, frame);
|
anim.play("Boyfriend DJ watchin tv OG", true, false, frame);
|
||||||
// trace('Finished confirm');
|
// trace('Finished confirm');
|
||||||
}
|
}
|
||||||
|
@ -154,6 +169,22 @@ class DJBoyfriend extends FlxAtlasSprite
|
||||||
addOffset('bf dj afk', 0, 0);
|
addOffset('bf dj afk', 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var cartoonSnd:FlxSound;
|
||||||
|
|
||||||
|
public function runTvLogic()
|
||||||
|
{
|
||||||
|
if (cartoonSnd == null)
|
||||||
|
{
|
||||||
|
// cartoonSnd = new FlxSound();
|
||||||
|
// cartoonSnd.loadEmbedded(Paths.sound("cartoons/peck"));
|
||||||
|
// FlxG.sound.defaultSoundGroup.add(cartoonSnd);
|
||||||
|
// cartoonSnd.play();
|
||||||
|
}
|
||||||
|
|
||||||
|
// play sound of random flash toon
|
||||||
|
// if tv is already playing, play a new one
|
||||||
|
}
|
||||||
|
|
||||||
public function confirm():Void
|
public function confirm():Void
|
||||||
{
|
{
|
||||||
currentState = Confirm;
|
currentState = Confirm;
|
||||||
|
|
Loading…
Reference in a new issue