importable scripts through stage.xml + new call

extensions feature
This commit is contained in:
⍚~Nex
2024-09-18 16:10:19 +02:00
parent ff4c1491c1
commit 15a18bb3da
6 changed files with 37 additions and 6 deletions
+1
View File
@@ -1,3 +1,4 @@
//
import funkin.game.HudCamera;
import funkin.backend.scripting.events.NoteHitEvent;
-1
View File
@@ -1,5 +1,4 @@
function create() {
importScript("data/scripts/pixel");
isSpooky = true;
// Make transition work between school types
+1
View File
@@ -1,5 +1,6 @@
<!DOCTYPE codename-engine-stage>
<stage zoom="1" name="school-evil" folder="stages/school/" startCamPosY="550" startCamPosX="600">
<use-extension script="pixel"/>
<sprite name="bg" x="400" y="200" sprite="animatedEvilSchool"
antialiasing="false" scale="6" scrollx="0.8" scrolly="0.9" type="loop"/>
</stage>
+1 -1
View File
@@ -1,5 +1,5 @@
//
function create() {
importScript("data/scripts/pixel");
if (PlayState.SONG.meta.name.toLowerCase() == "roses") {
bgGirls.animation.remove("danceLeft");
bgGirls.animation.remove("danceRight");
+2
View File
@@ -1,5 +1,7 @@
<!DOCTYPE codename-engine-stage>
<stage zoom="1" folder="stages/school/" startCamPosY="550" startCamPosX="600">
<use-extension script="pixel"/>
<sprite name="bgSky" x="-12" y="0" sprite="weebSky"
antialiasing="false" scale="6" scroll="0.1" updateHitbox="true"/>