Skip to content

Commit

Permalink
Fix dep 5.9.0 (#369)
Browse files Browse the repository at this point in the history
* remove FlxAssets refs

* screenX/Y to view

* reformat FlxAsepriteUtil

* add subfolder, just to make sure it works

* ci haxe 4.3.6

* add FLX_NO_HEALTH to all projects
  • Loading branch information
Geokureli authored Dec 11, 2024
1 parent 2ffc93b commit e2ef48d
Show file tree
Hide file tree
Showing 100 changed files with 371 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
haxe-version: ["4.2.5", "4.3.4"]
haxe-version: ["4.2.5", "4.3.6"]
target: [html5, hl, flash, cpp]
fail-fast: false
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions Arcade/Breakout/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Arcade/Flappybalt/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxInvaders/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxLightPuzzle/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
6 changes: 5 additions & 1 deletion Arcade/FlxLightPuzzle/source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class PlayState extends FlxState

// the original file was edited to have a 44100 Hz sampling frequency, since Flash cannot use 48000 Hz
// this is really easy to change using a free program like Audacity
FlxG.sound.playMusic(FlxAssets.getSound("assets/music/Waltzon_edit"), 0.5);
#if flash
FlxG.sound.playMusic("assets/music/Waltzon_edit.mp3", 0.5);
#else
FlxG.sound.playMusic("assets/music/Waltzon_edit.ogg", 0.5);
#end

openMenu();
}
Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxPongApi/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxSnake/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
6 changes: 5 additions & 1 deletion Arcade/FlxSnake/source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ class PlayState extends FlxState

// Our reward - a new segment! :)
addSegment();
FlxG.sound.load(FlxAssets.getSound("flixel/sounds/beep")).play();
#if flash
FlxG.sound.load("flixel/sounds/beep.mp3").play();
#else
FlxG.sound.load("flixel/sounds/beep.ogg").play();
#end

// Become faster each pickup - set a max speed though!
if (_movementInterval >= MIN_INTERVAL)
Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxTeroids/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
2 changes: 1 addition & 1 deletion Arcade/MinimalistTD/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Disable the legacy health system-->
<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
Expand Down
3 changes: 3 additions & 0 deletions Editors/FlxPexParser/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Editors/FlxSpine/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Editors/TexturePackerAtlas/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Editors/TiledEditor/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/BlendModeShaders/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/BlendModes/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/DynamicShadows/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/Filters/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FloodFill/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxBloom/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxBlur/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxClothSprite/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxEffectSprite/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxFloodFill/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxSimplex/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxSkewedSprite/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxSpriteFilters/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxTrailArea/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/FlxTween/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/MosaicEffect/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/Parallax/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Effects/Transitions/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Features/CollisionAndGrouping/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Features/Colors/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable this for nape release builds for a serious peformance improvement-->
<!--<haxedef name="NAPE_RELEASE_BUILD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Features/FlxCamera/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Features/FlxFSM/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
3 changes: 3 additions & 0 deletions Features/FlxNape/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

<!-- ______________________________ Haxedefines _____________________________ -->

<!--Remove the legacy health system-->
<haxedef name="FLX_NO_HEALTH" />

<!--Enable the Flixel core recording system-->
<!--<haxedef name="FLX_RECORD" />-->

Expand Down
2 changes: 1 addition & 1 deletion Features/FlxNape/source/states/Blob.hx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Eye extends FlxGroup
{
super.update(elapsed);

var distance:Vec2 = new Vec2(FlxG.mouse.screenX - x, FlxG.mouse.screenY - y);
var distance:Vec2 = new Vec2(FlxG.mouse.viewX - x, FlxG.mouse.viewY - y);

outerEye.x = x;
outerEye.y = y;
Expand Down
Loading

0 comments on commit e2ef48d

Please # to comment.