Skip to content

Commit c8d6711

Browse files
committed
im gonna scream
1 parent e1bd8d6 commit c8d6711

File tree

3 files changed

+45
-185
lines changed

3 files changed

+45
-185
lines changed

assets/base_game/shared/characters/Zenetta-cowbell-p.json

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@
1616
"name": "idle alt",
1717
"indices": []
1818
},
19-
{
20-
"loop": false,
21-
"offsets": [-22, 4],
22-
"anim": "singLEFT",
23-
"fps": 24,
24-
"name": "left0",
25-
"indices": []
26-
},
27-
{
28-
"loop": false,
29-
"offsets": [16, -34],
30-
"anim": "singRIGHT",
31-
"fps": 24,
32-
"name": "right0",
33-
"indices": []
34-
},
3519
{
3620
"loop": false,
3721
"offsets": [28, -41],
@@ -50,35 +34,55 @@
5034
},
5135
{
5236
"loop": false,
53-
"offsets": [-22, 29],
54-
"anim": "singLEFT-alt",
37+
"offsets": [27, -22],
38+
"anim": "singDOWN-alt",
5539
"fps": 24,
56-
"name": "left alt",
40+
"name": "down alt",
5741
"indices": []
5842
},
5943
{
6044
"loop": false,
61-
"offsets": [16, -9],
62-
"anim": "singRIGHT-alt",
45+
"offsets": [4, -7],
46+
"anim": "singUP-alt",
6347
"fps": 24,
64-
"name": "right alt",
48+
"name": "up alt",
6549
"indices": []
6650
},
6751
{
52+
"prefix": "right0",
53+
"offsets": [15, -34],
54+
"indices": [],
55+
"fps": 24,
56+
"anim": "singLEFT",
6857
"loop": false,
69-
"offsets": [27, -22],
70-
"anim": "singDOWN-alt",
58+
"name": "right0"
59+
},
60+
{
61+
"prefix": "left0",
62+
"offsets": [-21, 4],
63+
"indices": [],
7164
"fps": 24,
72-
"name": "down alt",
73-
"indices": []
65+
"anim": "singRIGHT",
66+
"loop": false,
67+
"name": "left0"
7468
},
7569
{
70+
"prefix": "right alt",
71+
"offsets": [16, -10],
72+
"indices": [],
73+
"fps": 24,
74+
"anim": "singLEFT-alt",
7675
"loop": false,
77-
"offsets": [4, -7],
78-
"anim": "singUP-alt",
76+
"name": "right alt"
77+
},
78+
{
79+
"prefix": "left alt",
80+
"offsets": [-22, 30],
81+
"indices": [],
7982
"fps": 24,
80-
"name": "up alt",
81-
"indices": []
83+
"anim": "singRIGHT-alt",
84+
"loop": false,
85+
"name": "left alt"
8286
}
8387
],
8488
"vocals_file": "",

assets/base_game/shared/characters/Zenetta-cowbell.json

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

source/archipelago/APPlayState.hx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,11 @@ class APPlayState extends PlayState {
19421942
return;
19431943
}
19441944

1945+
if (zenetta.holdTimer > Conductor.stepCrochet * 0.001 * zenetta.singDuration
1946+
&& zenetta.animation.curAnim.name.startsWith('sing')
1947+
&& !zenetta.animation.curAnim.name.endsWith('miss'))
1948+
zenetta.dance();
1949+
19451950
// if (archipelago.APItem.activeItem is archipelago.APItem.APChartModifier && cast(archipealgo.APItem.activeItem:archipelago.APItem.APChartModifier).chartModifier != chartModifier)
19461951
//
19471952
if ((startedCountdown && !(inCutscene || (function()
@@ -2177,8 +2182,8 @@ class APPlayState extends PlayState {
21772182
if (resistanceAmount <= 0) resistanceAmount = 0;
21782183
if (resistanceAmount == 1) health -= (0.00051 / (60 / ClientPrefs.data.framerate)) * dmgMultiplier;
21792184

2180-
zenetta.alpha = resistanceAmount;
2181-
boyfriend.alpha = (1.0000000001 - resistanceAmount);
2185+
zenetta.alpha = 0.0000000001 + resistanceAmount;
2186+
boyfriend.alpha = (1 - resistanceAmount);
21822187
zenetta.x = boyfriend.x;
21832188
zenetta.y = boyfriend.y - 280;
21842189
bfkilledcheck = true;
@@ -2644,14 +2649,14 @@ class APPlayState extends PlayState {
26442649
case -1:
26452650
terminateMessage.visible = false;
26462651
}
2647-
super.beatHit();
2648-
26492652
if (releasethebeast) {
26502653
if (resistanceAmount < 1) resistanceAmount += 0.005;
2651-
var anim:String = zenetta.getAnimationName();
2652-
if(zenetta.holdTimer > Conductor.stepCrochet * (0.0011 #if FLX_PITCH / FlxG.sound.music.pitch #end) * zenetta.singDuration && anim.startsWith('sing') && !anim.endsWith('miss'))
2654+
2655+
if (curBeat % zenetta.danceEveryNumBeats == 0 && !zenetta.getAnimationName().endsWith('-alt')) {
26532656
zenetta.dance();
2657+
}
26542658
}
2659+
super.beatHit();
26552660
}
26562661

26572662
override function closeSubState()

0 commit comments

Comments
 (0)