Skip to content

Commit

Permalink
Pixel Note Splashes in Week 6 (#238)
Browse files Browse the repository at this point in the history
* pixel note splashes

* tyy!!

---------

Co-authored-by: ⍚~Nex <[email protected]>
  • Loading branch information
maplesyruppppppp and NexIsDumb authored Feb 6, 2024
1 parent 79ca805 commit a2ebb51
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/data/scripts/pixel.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import funkin.backend.scripting.events.NoteHitEvent;

public var pixelNotesForBF = true;
public var pixelNotesForDad = true;
public var pixelSplashes = true;
public var enablePixelUI = true;
public var enablePixelGameOver = true;
public var enableCameraHacks = Options.week6PixelPerfect;
Expand Down Expand Up @@ -34,6 +35,12 @@ function onNoteCreation(event) {
note.updateHitbox();
}

function onPostNoteCreation(event) {
var splashes = event.note;
if (pixelSplashes)
splashes.splash = "pixel-default";
}

function onStrumCreation(event) {
if (event.player == 1 && !pixelNotesForBF) return;
if (event.player == 0 && !pixelNotesForDad) return;
Expand Down
20 changes: 20 additions & 0 deletions assets/data/splashes/pixel-default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE codename-engine-splashes>
<!--Pixel Splashes by APurples!!-->
<splashes sprite="stages/school/ui/pixel-splashes" alpha="0.6" antialiasing="false" scale="3.5">
<strum id="0"> <!-- LEFT -->
<anim name="splashleft1" anim="splash purple 1" fps="24" x="-1" y="-2" />
<anim name="splashleft2" anim="splash purple 2" fps="24" x="-1" y="-2" />
</strum>
<strum id="1"> <!-- DOWN -->
<anim name="splashdown1" anim="splash blue 1" fps="24" x="-1" y="-2" />
<anim name="splashdown2" anim="splash blue 2" fps="24" x="-1" y="-2" />
</strum>
<strum id="2"> <!-- UP -->
<anim name="splashup1" anim="splash green 1" fps="24" x="-1" y="-2" />
<anim name="splashup2" anim="splash green 2" fps="24" x="-1" y="-2" />
</strum>
<strum id="3"> <!-- RIGHT -->
<anim name="splashright1" anim="splash red 1" fps="24" x="-1" y="-2" />
<anim name="splashright2" anim="splash red 2" fps="24" x="-1" y="-2" />
</strum>
</splashes>
Binary file added assets/images/stages/school/ui/pixel-splashes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions assets/images/stages/school/ui/pixel-splashes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="pixel-splashes.png">
<!-- Made using Maru Aseprite JSON to XML converter -->
<SubTexture name="splash purple 100000" x="0" y="0" width="64" height="64"/>
<SubTexture name="splash purple 100001" x="64" y="0" width="64" height="64"/>
<SubTexture name="splash purple 100002" x="128" y="0" width="64" height="64"/>
<SubTexture name="splash purple 100003" x="192" y="0" width="64" height="64"/>
<SubTexture name="splash purple 200000" x="256" y="0" width="64" height="64"/>
<SubTexture name="splash purple 200001" x="320" y="0" width="64" height="64"/>
<SubTexture name="splash purple 200002" x="0" y="64" width="64" height="64"/>
<SubTexture name="splash purple 200003" x="64" y="64" width="64" height="64"/>
<SubTexture name="splash blue 100000" x="128" y="64" width="64" height="64"/>
<SubTexture name="splash blue 100001" x="192" y="64" width="64" height="64"/>
<SubTexture name="splash blue 100002" x="256" y="64" width="64" height="64"/>
<SubTexture name="splash blue 100003" x="320" y="64" width="64" height="64"/>
<SubTexture name="splash blue 200000" x="0" y="128" width="64" height="64"/>
<SubTexture name="splash blue 200001" x="64" y="128" width="64" height="64"/>
<SubTexture name="splash blue 200002" x="128" y="128" width="64" height="64"/>
<SubTexture name="splash blue 200003" x="192" y="128" width="64" height="64"/>
<SubTexture name="splash green 100000" x="256" y="128" width="64" height="64"/>
<SubTexture name="splash green 100001" x="320" y="128" width="64" height="64"/>
<SubTexture name="splash green 100002" x="0" y="192" width="64" height="64"/>
<SubTexture name="splash green 100003" x="64" y="192" width="64" height="64"/>
<SubTexture name="splash green 200000" x="128" y="192" width="64" height="64"/>
<SubTexture name="splash green 200001" x="192" y="192" width="64" height="64"/>
<SubTexture name="splash green 200002" x="256" y="192" width="64" height="64"/>
<SubTexture name="splash green 200003" x="320" y="192" width="64" height="64"/>
<SubTexture name="splash red 100000" x="0" y="256" width="64" height="64"/>
<SubTexture name="splash red 100001" x="64" y="256" width="64" height="64"/>
<SubTexture name="splash red 100002" x="128" y="256" width="64" height="64"/>
<SubTexture name="splash red 100003" x="192" y="256" width="64" height="64"/>
<SubTexture name="splash red 200000" x="256" y="256" width="64" height="64"/>
<SubTexture name="splash red 200001" x="320" y="256" width="64" height="64"/>
<SubTexture name="splash red 200002" x="0" y="320" width="64" height="64"/>
<SubTexture name="splash red 200003" x="64" y="320" width="64" height="64"/>
</TextureAtlas>

0 comments on commit a2ebb51

Please sign in to comment.