week 7 stuff + video cutscenes

This commit is contained in:
Yoshman29
2022-11-06 02:32:35 +01:00
parent b9aafdc3e9
commit 75f7bb378b
42 changed files with 704 additions and 51 deletions
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE codename-engine-character>
<character isPlayer="true" flipX="true" x="0" y="350" icon="bf">
<anim name="idle" anim="BF idle dance" fps="24" loop="false" x="0" y="0"/>
<anim name="singUP" anim="BF NOTE UP0" fps="24" loop="false" x="-29" y="10"/>
<anim name="singLEFT" anim="BF NOTE LEFT0" fps="24" loop="false" x="12" y="7"/>
<anim name="singRIGHT" anim="BF NOTE RIGHT0" fps="24" loop="false" x="-41" y="23"/>
<anim name="singDOWN" anim="BF NOTE DOWN0" fps="24" loop="false" x="-10" y="-10"/>
<anim name="singUPmiss" anim="BF NOTE UP MISS" fps="24" loop="false" x="-29" y="10"/>
<anim name="singLEFTmiss" anim="BF NOTE LEFT MISS" fps="24" loop="false" x="12" y="7"/>
<anim name="singRIGHTmiss" anim="BF NOTE RIGHT MISS" fps="24" loop="false" x="-41" y="23"/>
<anim name="singDOWNmiss" anim="BF NOTE DOWN MISS" fps="24" loop="false" x="-10" y="-10"/>
</character>
+6
View File
@@ -0,0 +1,6 @@
<!DOCTYPE codename-engine-character>
<character isPlayer="false" flipX="false" isGF="true">
<anim name="danceLeft" anim="GF Dancing at Gunpoint" fps="24" loop="false" x="0" y="-9" indices="30,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14" />
<anim name="danceRight" anim="GF Dancing at Gunpoint" fps="24" loop="false" x="0" y="-9" indices="15,16,17,18,19,20,21,22,23,24,25,26,27,28,29" />
<anim name="sad" anim="GF Crying at Gunpoint" fps="24" loop="true" x="-2" y="-17" indices="0,1,2,3,4,5,6,7,8,9,10,11,12"/>
</character>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+27 -24
View File
@@ -82,33 +82,35 @@ function createPost() {
FlxG.camera.antialiasing = false;
FlxG.camera.pixelPerfectRender = true;
FlxG.game.stage.quality = 2;
var newNoteCamera = new FlxCamera();
newNoteCamera.bgColor = 0; // transparent
FlxG.cameras.add(newNoteCamera, false);
var pixelSwagWidth = Note.swagWidth + (daPixelZoom - (Note.swagWidth % daPixelZoom));
// TODO: multikey support??
for(s in 0...4) {
var i = 0;
for(str in [cpuStrums.members[s], playerStrums.members[s]]) {
// TODO: middlescroll???
str.x = (FlxG.width * (0.25 + (0.5 * i))) + (pixelSwagWidth * (s - 2));
str.x -= str.x % daPixelZoom;
str.cameras = [newNoteCamera];
i++;
}
}
iconP1.antialiasing = false;
iconP2.antialiasing = false;
makeCameraPixely(camGame);
makeCameraPixely(newNoteCamera);
defaultCamZoom /= daPixelZoom;
}
}
function onStartCountdown() {
var newNoteCamera = new FlxCamera();
newNoteCamera.bgColor = 0; // transparent
FlxG.cameras.add(newNoteCamera, false);
var pixelSwagWidth = Note.swagWidth + (daPixelZoom - (Note.swagWidth % daPixelZoom));
// TODO: multikey support??
for(s in 0...4) {
var i = 0;
for(str in [cpuStrums.members[s], playerStrums.members[s]]) {
// TODO: middlescroll???
str.x = (FlxG.width * (0.25 + (0.5 * i))) + (pixelSwagWidth * (s - 2));
str.x -= str.x % daPixelZoom;
str.cameras = [newNoteCamera];
i++;
}
}
makeCameraPixely(newNoteCamera);
}
/**
* Use this to make any camera pixelly (you wont be able to zoom with it anymore!)
*/
@@ -131,6 +133,13 @@ var pixellyCameras = [];
var pixellyShaders = [];
function updatePost(elapsed) {
if (enableCameraHacks) {
notes.forEach(function(n) {
n.y -= n.y % daPixelZoom;
});
}
for(e in pixellyCameras) {
if (!e.exists) continue;
e.zoom = 1 / daPixelZoom / Math.min(FlxG.scaleMode.scale.x, FlxG.scaleMode.scale.y);
@@ -138,10 +147,4 @@ function updatePost(elapsed) {
for(e in pixellyShaders) {
e.pixelZoom = 1 / daPixelZoom / Math.min(FlxG.scaleMode.scale.x, FlxG.scaleMode.scale.y);
}
if (enableCameraHacks) {
notes.forEach(function(n) {
n.y -= n.y % daPixelZoom;
});
}
}
+1 -1
View File
@@ -110,7 +110,7 @@ function update(elapsed) {
if (option == "Resume" || option == "Exit to menu") {
canDoShit = false;
for(t in texts) t.visible = false;
songText.visible = false;
hand.visible = songText.visible = false;
FlxTween.tween(bg, {"scale.y": 0}, 0.125, {ease: FlxEase.cubeOut, onComplete: function() {
selectOption();
}});
+1 -1
View File
@@ -16,7 +16,7 @@
<sprite name="tankGround" x="-420" y="-150" sprite="tankGround" scale="1.15" updateHitbox="true"/>
<!-- CHARACTERS -->
<girlfriend x="370" y="-70"/>
<girlfriend x="230" y="55"/>
<dad x="20" y="160"/>
<boyfriend x="810"/>