guns cutscene done

This commit is contained in:
Yoshman29
2023-02-02 17:42:36 +01:00
parent 1532c7361b
commit 858aa39647
7 changed files with 48842 additions and 9 deletions
+3
View File
@@ -0,0 +1,3 @@
function update(elapsed)
if (FlxG.keys.justPressed.ONE)
FlxG.state.endSong();
@@ -44,7 +44,7 @@
},
{
"SI": {
"SN": "GF Crying at Gunpoint ",
"SN": "GF Crying at Gunpoint",
"IN": "",
"ST": "G",
"FF": 0,
@@ -19684,7 +19684,7 @@
}
},
{
"SN": "GF Crying at Gunpoint ",
"SN": "GF Crying at Gunpoint",
"TL": {
"L": [
{
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
{"ATLAS": {"SPRITES":[
{"SPRITE" : {"name": "0000","x":929,"y":239,"w":88,"h":116,"rotated": false}},
{"SPRITE" : {"name": "0001","x":650,"y":476,"w":121,"h":131,"rotated": false}},
{"SPRITE" : {"name": "0002","x":2,"y":2,"w":377,"h":426,"rotated": false}},
{"SPRITE" : {"name": "0003","x":484,"y":476,"w":164,"h":163,"rotated": false}},
{"SPRITE" : {"name": "0004","x":929,"y":357,"w":88,"h":116,"rotated": false}},
{"SPRITE" : {"name": "0005","x":202,"y":430,"w":136,"h":200,"rotated": false}},
{"SPRITE" : {"name": "0006","x":340,"y":476,"w":142,"h":190,"rotated": false}},
{"SPRITE" : {"name": "0007","x":945,"y":104,"w":72,"h":43,"rotated": false}},
{"SPRITE" : {"name": "0008","x":656,"y":239,"w":271,"h":235,"rotated": false}},
{"SPRITE" : {"name": "0009","x":670,"y":2,"w":273,"h":235,"rotated": false}},
{"SPRITE" : {"name": "0010","x":381,"y":2,"w":287,"h":235,"rotated": false}},
{"SPRITE" : {"name": "0011","x":2,"y":577,"w":94,"h":42,"rotated": false}},
{"SPRITE" : {"name": "0012","x":773,"y":576,"w":94,"h":44,"rotated": false}},
{"SPRITE" : {"name": "0013","x":878,"y":532,"w":91,"h":46,"rotated": false}},
{"SPRITE" : {"name": "0014","x":945,"y":2,"w":61,"h":54,"rotated": false}},
{"SPRITE" : {"name": "0015","x":945,"y":149,"w":48,"h":46,"rotated": false}},
{"SPRITE" : {"name": "0016","x":98,"y":577,"w":88,"h":42,"rotated": false}},
{"SPRITE" : {"name": "0017","x":773,"y":532,"w":103,"h":42,"rotated": false}},
{"SPRITE" : {"name": "0018","x":650,"y":609,"w":94,"h":32,"rotated": false}},
{"SPRITE" : {"name": "0019","x":929,"y":475,"w":79,"h":55,"rotated": false}},
{"SPRITE" : {"name": "0020","x":869,"y":580,"w":88,"h":40,"rotated": false}},
{"SPRITE" : {"name": "0021","x":945,"y":58,"w":71,"h":44,"rotated": false}},
{"SPRITE" : {"name": "0022","x":773,"y":476,"w":107,"h":54,"rotated": false}},
{"SPRITE" : {"name": "0023","x":381,"y":239,"w":273,"h":235,"rotated": false}},
{"SPRITE" : {"name": "0024","x":2,"y":430,"w":198,"h":145,"rotated": false}}
]},
"meta": {
"app": "Adobe Animate",
"version": "21.0.1.37179",
"image": "spritemap1.png",
"format": "RGBA8888",
"size": {"w":1019,"h":668},
"resolution": "1"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

+67
View File
@@ -0,0 +1,67 @@
import funkin.system.FunkinSprite;
var tankman:FunkinSprite;
var tankTalk1, distorto:FlxSound;
function create() {
FlxG.camera.zoom = 1;
game.camHUD.visible = false;
tankman = new FunkinSprite(game.dad.x + game.dad.globalOffset.x + 520, game.dad.y + game.dad.globalOffset.y + 225);
tankman.antialiasing = true;
tankman.loadSprite(Paths.image('game/cutscenes/tank/guns-tankman'));
tankman.animateAtlas.anim.addBySymbol('tank', 'TANK TALK 2', 24, false);
game.insert(game.members.indexOf(game.dad), tankman);
game.dad.visible = false;
focusOn(game.dad);
game.persistentUpdate = true;
tankTalk = FlxG.sound.load(Paths.sound('cutscenes/tank/guns'));
distorto = FlxG.sound.load(Paths.music('DISTORTO'));
distorto.volume = 0;
distorto.play();
distorto.fadeIn(5, 0, 0.5);
tankman.playAnim('tank');
tankTalk.play();
new FlxTimer().start(4.1, function(ugly:FlxTimer)
{
FlxTween.tween(FlxG.camera, {zoom: game.defaultCamZoom * 1.4}, 0.4, {ease: FlxEase.quadOut});
FlxTween.tween(FlxG.camera, {zoom: game.defaultCamZoom * 1.3}, 0.7, {ease: FlxEase.quadInOut, startDelay: 0.45});
game.gf.playAnim('sad');
});
new FlxTimer().start(11, function(tmr:FlxTimer)
{
game.remove(tankman);
tankman.destroy();
game.camHUD.visible = true;
game.dad.visible = true;
distorto.fadeOut((Conductor.crochet / 1000) * 5, 0);
FlxTween.tween(FlxG.camera, {zoom: game.defaultCamZoom}, 0.7, {ease: FlxEase.quadInOut, startDelay: 0});
close();
});
}
function focusOn(char) {
var camPos = char.getCameraPosition();
game.camFollow.setPosition(camPos.x, camPos.y);
camPos.put();
}
function update(elapsed:Float) {
if (FlxG.keys.justPressed.F5)
FlxG.resetState();
lipSync(tankTalk);
}
function lipSync(sound:FlxSound) {
tankman.animateAtlas.anim.curFrame = Std.int(tankman.animateAtlas.anim.length / (sound.length-1) * sound.time);
}
+4 -7
View File
@@ -10,8 +10,8 @@ function create() {
tankman = new FunkinSprite(game.dad.x + game.dad.globalOffset.x + 520, game.dad.y + game.dad.globalOffset.y + 225);
tankman.antialiasing = true;
tankman.loadSprite(Paths.image('game/cutscenes/tank/ugh-tankman'));
tankman.animateAtlas.anim.addBySymbol('1', 'TANK TALK 1 P1', 24, false);
tankman.animateAtlas.anim.addBySymbol('2', 'TANK TALK 1 P2', 24, false);
tankman.animateAtlas.anim.addBySymbol('1', 'TANK TALK 1 P1', 0, false);
tankman.animateAtlas.anim.addBySymbol('2', 'TANK TALK 1 P2', 0, false);
game.insert(game.members.indexOf(game.dad), tankman);
game.dad.visible = false;
@@ -52,7 +52,7 @@ function create() {
game.camHUD.visible = true;
game.dad.visible = true;
distorto.fadeOut((Conductor.crochet / 1000) * 5, 0);
close();
}, 1);
}, 1);
@@ -67,13 +67,10 @@ function focusOn(char) {
}
function update(elapsed:Float) {
if (FlxG.keys.justPressed.F5)
FlxG.resetState();
if (tankTalk1.playing) lipSync(tankTalk1);
if (tankTalk2.playing) lipSync(tankTalk2);
}
function lipSync(sound:FlxSound) {
tankman.animateAtlas.anim.curFrame = Std.int(tankman.animateAtlas.anim.length / sound.length * sound.time);
tankman.animateAtlas.anim.curFrame = Std.int(tankman.animateAtlas.anim.length / (sound.length-1) * sound.time);
}