YO ITS ME THORNS!!!

This commit is contained in:
Yoshman29
2022-11-05 23:37:36 +01:00
parent 5e01430006
commit b9aafdc3e9
24 changed files with 192 additions and 23 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
<!DOCTYPE codename-engine-character>
<character isPlayer="false" flipX="false" x="150" y="360" antialiasing="false" scale="6" camx="100">
<anim name="idle" anim="Senpai Idle" fps="24" loop="false" x="0" y="0" />
<anim name="idle" anim="Senpai Idle" fps="12" loop="false" x="0" y="0" />
<!-- Offsets are actually multiplied by scale -->
<anim name="singLEFT" anim="SENPAI LEFT NOTE" fps="24" loop="false" x="7" y="0" />
<anim name="singDOWN" anim="SENPAI DOWN NOTE" fps="24" loop="false" x="2" y="0" />
<anim name="singUP" anim="SENPAI UP NOTE" fps="24" loop="false" x="1" y="6" />
<anim name="singRIGHT" anim="SENPAI RIGHT NOTE" fps="24" loop="false" x="0" y="0" />
<anim name="singLEFT" anim="SENPAI LEFT NOTE" fps="12" loop="false" x="7" y="0" />
<anim name="singDOWN" anim="SENPAI DOWN NOTE" fps="12" loop="false" x="2" y="0" />
<anim name="singUP" anim="SENPAI UP NOTE" fps="12" loop="false" x="1" y="6" />
<anim name="singRIGHT" anim="SENPAI RIGHT NOTE" fps="12" loop="false" x="0" y="0" />
</character>
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE codename-engine-character>
<character isPlayer="false" flipX="false" x="70" y="380" antialiasing="false" scale="6" camx="100">
<anim name="idle" anim="idle spirit_" fps="24" loop="false" x="0" y="0" />
<!-- Offsets are actually multiplied by scale -->
<anim name="singLEFT" anim="left_" fps="24" loop="false" x="3" y="0" />
<anim name="singDOWN" anim="spirit down_" fps="24" loop="false" x="65" y="65" />
<anim name="singUP" anim="up_" fps="24" loop="false" x="0" y="7" />
<anim name="singRIGHT" anim="right_" fps="24" loop="false" x="0" y="0" />
</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
+1
View File
@@ -5,6 +5,7 @@ public var pixelNotesForDad = true;
public var enablePixelUI = true;
public var enableCameraHacks = true;
public var enablePauseMenu = true;
public var isSpooky = false;
static var daPixelZoom = 6;
+13 -7
View File
@@ -11,10 +11,13 @@ var hand:FlxSprite;
var texts:Array<FlxText> = [];
var isThorns = PlayState.SONG.song.toLowerCase() == "thorns";
function create(event) {
// cancel default pause menu!!
event.cancel();
event.music = "pixel/Lunchbox";
event.music = isThorns ? "pixel/LunchboxScary" : "pixel/Lunchbox";
cameras = [];
@@ -23,10 +26,13 @@ function create(event) {
FlxG.cameras.add(pauseCam, false);
pauseCam.bgColor = 0x88FF99CC;
pauseCam.bgColor = isThorns ? 0x88000000 : 0x88FF99CC;
pauseCam.alpha = 0;
bg = new FlxSprite(44 * 6, 14 * 6).loadGraphic(Paths.image('stages/school/pause/bg'));
bg = new FlxSprite(44 * 6, 14 * 6);
bg.loadGraphic(Paths.image('stages/school/pause/bg'));
if (isThorns)
bg.color = 0xFF000000;
bg.scale.set(6, 6);
bg.updateHitbox();
bg.scale.y = 4;
@@ -55,7 +61,7 @@ function create(event) {
cameras = [pauseCam];
FlxG.sound.play(Paths.sound('pixel/clickText'));
FlxG.sound.play(Paths.sound(isThorns ? 'pixel/ANGRY' : 'pixel/clickText'));
}
function confText(text) {
@@ -63,7 +69,7 @@ function confText(text) {
text.updateHitbox();
text.screenCenter(FlxAxes.X);
text.borderStyle = FlxTextBorderStyle.OUTLINE;
text.borderColor = 0xFF953E3E;
if (!isThorns) text.borderColor = 0xFF953E3E;
}
function createPost() {
@@ -94,12 +100,12 @@ function update(elapsed) {
changeSelection(-1);
if (oldSec != curSelected) {
FlxG.sound.play(Paths.sound('pixel/pixelText'));
FlxG.sound.play(Paths.sound(isThorns ? 'pixel/type' : 'pixel/pixelText'));
}
if (controls.ACCEPT) {
FlxG.sound.play(Paths.sound('pixel/clickText'));
FlxG.sound.play(Paths.sound(isThorns ? 'pixel/ANGRY' : 'pixel/clickText'));
var option = menuItems[curSelected];
if (option == "Resume" || option == "Exit to menu") {
canDoShit = false;
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE codename-engine-stage>
<stage zoom="1.05" name="spooky" folder="stages/philly/">
<stage zoom="1.05" name="philly" folder="stages/philly/">
<sprite name="bg" x="-100" y="0" sprite="sky" scroll="0.1"/>
<sprite name="city" x="-10" y="0" sprite="city" scroll="0.3" scale="0.85" updateHitbox="true"/>
<sprite name="light" x="-10" y="0" sprite="win" scroll="0.3" scale="0.85" updateHitbox="true"/>
+4
View File
@@ -0,0 +1,4 @@
function create() {
importScript("data/scripts/pixel");
isSpooky = true;
}
+5
View File
@@ -0,0 +1,5 @@
<!DOCTYPE codename-engine-stage>
<stage zoom="0.5" name="school-evil" folder="stages/school/" >
<sprite name="bg" x="400" y="200" sprite="animatedEvilSchool"
antialiasing="false" scale="6" scrollx="0.8" scrolly="0.9"/>
</stage>
-2
View File
@@ -1,5 +1,3 @@
function create() {
importScript("data/scripts/pixel");
trace(treeLeaves.width);
trace(bgSky.width);
}
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE codename-engine-stage>
<stage zoom="1" name="spooky" folder="stages/school/" >
<stage zoom="1" folder="stages/school/" >
<sprite name="bgSky" x="0" y="0" sprite="weebSky"
antialiasing="false" scale="6" scroll="0.1" updateHitbox="true"/>