Skip to content

Commit 4706723

Browse files
improves 398
1 parent 598163f commit 4706723

10 files changed

Lines changed: 52 additions & 136 deletions

File tree

‎.github/ISSUE_TEMPLATE/feature-request.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Feature Request
2-
description: Ask for a feature request here.
2+
description: No, i won't add 6K/etc to the engine, stop asking for it.
33
labels: [enhancement]
44
body:
55
- type: textarea
@@ -17,5 +17,7 @@ body:
1717
- Useful feature
1818
- Actual feedback
1919
- A good idea
20+
- Multikey support
21+
- Code optimization that would make the game faster. (You should make a PR if this is your request, by the way.)
2022
validations:
21-
required: true
23+
required: true

‎.github/ISSUE_TEMPLATE/help.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ body:
2525
label: "What is your build target?"
2626
options:
2727
- "Windows x64"
28-
- "Windows x86/x32"
2928
- "Linux"
3029
- "Mac"
3130
- "HashLink, or other build system"

‎.github/ISSUE_TEMPLATE/missing-docs.yml‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎.github/workflows/linux.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
workflow_dispatch:
88

99
workflow_call:
10-
inputs:
11-
buildFlags:
12-
required: false
13-
type: string
10+
inputs:
11+
buildFlags:
12+
required: false
13+
type: string
1414

1515
jobs:
1616
build:
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@main
24+
with:
25+
fetch-depth: 0
2426

2527
- name: Setup Haxe
2628
uses: krdlab/setup-haxe@master

‎.github/workflows/macos-intel.yml‎

Lines changed: 0 additions & 93 deletions
This file was deleted.
Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: MacOS Build (ARM64)
1+
name: MacOS Build
22
on:
33
push:
44
branches: [ main ]
@@ -8,31 +8,42 @@ on:
88
workflow_dispatch:
99

1010
workflow_call:
11-
inputs:
12-
buildFlags:
13-
required: false
14-
type: string
11+
inputs:
12+
buildFlags:
13+
required: false
14+
type: string
1515

1616
jobs:
1717
build:
18-
name: MacOS Build (ARM64)
18+
name: MacOS Build (${{ matrix.arch.name }})
1919
permissions: write-all
2020
runs-on: macos-latest
2121

22+
strategy:
23+
matrix:
24+
arch:
25+
- name: ARM64
26+
cacheKey: cache-build-macosarm
27+
compileFlag: -D HXCPP_ARM64
28+
- name: Intel
29+
cacheKey: cache-build-macosintel
30+
compileFlag: -D HXCPP_M64
31+
2232
steps:
2333
- name: Checkout
2434
uses: actions/checkout@main
35+
with:
36+
fetch-depth: 0
2537

2638
- name: Setup Haxe
27-
uses: krdlab/setup-haxe@v2
39+
uses: krdlab/setup-haxe@master
2840
with:
2941
haxe-version: 4.3.7
3042

3143
- name: Restore action cache
32-
id: cache-build-macosarm-restore
3344
uses: actions/cache/restore@main
3445
with:
35-
key: cache-build-macosarm
46+
key: ${{ matrix.arch.cacheKey }}
3647
path: |
3748
.haxelib/
3849
export/release/macos/haxe/
@@ -44,15 +55,15 @@ jobs:
4455
haxelib run hxpkg install --force
4556
4657
- name: Compile
47-
run: arch -x86_64 haxelib run lime build macos -64 -D HXCPP_ARM64
58+
run: arch -x86_64 haxelib run lime build macos -64 ${{ matrix.arch.compileFlag }}
4859

4960
- name: Tar files
5061
run: tar -zcvf AlterEngine.tar.gz -C export/release/macos/bin .
5162

5263
- name: Uploading artifact
5364
uses: actions/upload-artifact@main
5465
with:
55-
name: Alter Engine
66+
name: Alter Engine (${{ matrix.arch.name }})
5667
path: AlterEngine.tar.gz
5768
if-no-files-found: error
5869

@@ -67,7 +78,7 @@ jobs:
6778
})
6879
if (typeof caches.data.actions_caches != null && caches.data.actions_caches.length > 0) {
6980
for (const cache of caches.data.actions_caches) {
70-
if (cache.key == "cache-build-macosarm") {
81+
if (cache.key == "${{ matrix.arch.cacheKey }}") {
7182
console.log('Clearing ' + cache.key + '...')
7283
await github.rest.actions.deleteActionsCacheById({
7384
owner: context.repo.owner,
@@ -83,10 +94,9 @@ jobs:
8394
}
8495
8596
- name: Uploading new cache
86-
id: cache-build-macosarm-save
8797
uses: actions/cache/save@main
8898
with:
89-
key: cache-build-macosarm
99+
key: ${{ matrix.arch.cacheKey }}
90100
path: |
91101
.haxelib/
92102
export/release/macos/haxe/

‎.github/workflows/windows.yaml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
workflow_dispatch:
99

1010
workflow_call:
11-
inputs:
12-
buildFlags:
13-
required: false
14-
type: string
11+
inputs:
12+
buildFlags:
13+
required: false
14+
type: string
1515

1616
jobs:
1717
build:
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@main
25+
with:
26+
fetch-depth: 0
2527

2628
- name: Setup Haxe
2729
uses: krdlab/setup-haxe@master

‎source/effects/AfterImage.hx‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package effects;
22

3-
class AfterImage extends FlxTypedGroup<FlxSprite> {
3+
class AfterImage extends #if (flixel < version("5.7.0")) FlxTypedGroup<FlxSprite> #else flixel.group.FlxSpriteContainer #end {
44
public var target:FlxSprite;
55

66
public var delay:Float;
77
public var enabled:Bool = true;
88

99
public var lifetime:Float;
1010
public var startAlpha:Float;
11-
public var color:FlxColor = FlxColor.WHITE;
1211

13-
public var velocity:FlxPoint = FlxPoint.get();
12+
public var _vel:FlxPoint = FlxPoint.get();
13+
public var _accel:FlxPoint = FlxPoint.get();
14+
public var _drag:FlxPoint = FlxPoint.get();
1415

1516
var _timer:Float = 0;
1617

@@ -56,7 +57,7 @@ class AfterImage extends FlxTypedGroup<FlxSprite> {
5657
* Creates and initializes a new afterimage sprite.
5758
* Copies visual properties from the target and assigns velocity.
5859
*/
59-
function spawnAfterimage() {
60+
public function spawnAfterimage():Void {
6061
var spr:FlxSprite = recycle(FlxSprite);
6162
spr.revive();
6263

@@ -69,6 +70,7 @@ class AfterImage extends FlxTypedGroup<FlxSprite> {
6970

7071
// copy transforms
7172
spr.angle = target.angle;
73+
spr.origin.copyFrom(target.origin);
7274
spr.scale.copyFrom(target.scale);
7375
spr.offset.copyFrom(target.offset);
7476
spr.flipX = target.flipX;
@@ -79,6 +81,8 @@ class AfterImage extends FlxTypedGroup<FlxSprite> {
7981
spr.color = color;
8082

8183
// velocity
82-
spr.velocity.copyFrom(velocity);
84+
spr.velocity.copyFrom(_vel);
85+
spr.acceleration.copyFrom(_accel);
86+
spr.drag.copyFrom(_drag);
8387
}
8488
}

‎source/objects/Bar.hx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Bar extends FlxSpriteGroup {
3636

3737
/**
3838
* additive offset for the bg position
39-
**/
39+
*/
4040
public var bgOffset:FlxPoint = FlxPoint.get(0, 0);
4141

4242
public function new(x:Float, y:Float, image:String = 'healthBar', ?valueFunction:Void->Float, boundX:Float = 0, boundY:Float = 1) {

‎source/states/PlayState.hx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class PlayState extends MusicBeatState {
241241
endCallback = endSong;
242242

243243
instance = this;
244-
PauseSubState.songName = null; //Reset to default
244+
PauseSubState.songName = null; // Reset to default
245245
processor = new NoteProcessor();
246246

247247
FlxG.sound.music?.stop();
@@ -431,7 +431,7 @@ class PlayState extends MusicBeatState {
431431
iconP1 = new HealthIcon(boyfriend.healthIcon, true);
432432
iconP2 = new HealthIcon(dad.healthIcon);
433433
for (icon in [iconP1, iconP2]) {
434-
icon.y = healthBar.y - (icon.height / 2);
434+
icon.y = healthBar.y - (icon.frameHeight * .5);
435435
icon.visible = !hideHud;
436436
icon.alpha = Settings.data.healthBarAlpha;
437437
if (Settings.data.healthTypes == 'Psych') icon.iconType = 'psych';

0 commit comments

Comments
 (0)