Skip to content

Commit

Permalink
0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
UmbratheUmbreon committed Mar 26, 2023
1 parent 83d6f59 commit 71a72ff
Show file tree
Hide file tree
Showing 188 changed files with 658 additions and 1,364 deletions.
65 changes: 65 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 0.8.1

## Compiled files altered

- DenpaEngine.exe
- assets/images/alphabet.png
- assets/images/alphabet.xml

## Changelog

### Additions

- The Time Bar now has its own entering animation for normal and pixel stages.

- Alphabet now supports the characters `¿`, `¡`, and `ñ`.

### Improvements

- Windows Builds now utilize DPI Awareness for higher fidelity visuals on resolutions greater than 1280x720.

### Fixes

- Freeplay vocals can no longer persist into PlayState.

- Icon animations now all respect `gfSpeed`.

- Ghost Tapping animations now consider whether the current section is a `gfSection`.

- FlxBars no longer have choppy filling due to a rounding error.

- FlxBars no longer incorrectly floor their percentage `Float` and now have a `roundedPercentage` value for the floored version.

- Strums are now perfectly centered.

- The Bold `(`, `)`, and `.` characters are no longer improperly offset when using the Alphabet class.

- The Duet and Mirror Section buttons in the Charter now work properly on all key amounts.

- Mod Maps now properly refresh where they should be.

- Note splashes are no longer spawned in `popUpScore()` and will spawn if ratings are disabled for the note, but not notesplashes.

- `popUpScore()` is no longer run when a note has its ratings disabled.

### Optimizations

- Note Spawning now `shift()`s instead of `splice()`ing.

- Philly Glow Particles are now `recycle()`ed instead of recreated whenever a new one is needed.

- Modifier indicators are now made with much more compact code that only adds the sprites if needed.

- The majoroity of objects are now properly `remove()`ed and `destroy()`ed instead of `kill()`ed and `destroy()`ed, as `kill()`ing does nothing since it is immediately destroyed.

- Text made using the Alphabet class now loads characters on demand, rather than loading a huge sprite sheet, which saves on RAM usage.

- Crossfades are now `recycle()`ed rather than being made anew whenever one is needed.

- The Discouragement Elevator track, and the bfBeep, scrollMenu, confirmMenu, and cancelMenu sound effects are no longer cleared from the cache, allowing for faster load times on the Manual, as well as not needing to reload the basic menu sounds every time you swap states.

- Icons no longer load their graphic twice when changing icons.

### Removals

- N/A
2 changes: 1 addition & 1 deletion assets/preload/data/dialogue/TEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dialogue": [
{
"expression": "talk",
"text": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLM\\nNOPQRSTUVWXYZ1234567890|~#&$%()*+-:;\\n<=>@[]^_.,'\"!?{}\\/×↑→←↓♥😡",
"text": "abcdefghijklmnñopqrstuvwxyzABCDEFGHIJK\\nLMNÑOPQRSTUVWXYZ1234567890|~#&$%()*\\n+-:;<=>@[]^_.,'\"!¡?¿{}\\/×↑→←↓♥😡",
"boxState": "normal",
"sound": "",
"speed": 0.05,
Expand Down
Binary file removed assets/preload/images/alphabet.png
Binary file not shown.
599 changes: 0 additions & 599 deletions assets/preload/images/alphabet.xml

This file was deleted.

Binary file added assets/preload/images/alphabet/A BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/A LOWERCASE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/AMPERSAND BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/AMPERSAND.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/ANGRY FAIC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/APOSTROPHE BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/APOSTROPHE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/ASTERISK BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/ASTERISK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/AT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/B BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/B LOWERCASE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/BACKSLASH.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/BAR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/C BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/C LOWERCASE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/CARROT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/COLON.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/COMMA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/D BOLD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/D LOWERCASE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/preload/images/alphabet/D.png
Binary file added assets/preload/images/alphabet/DASH BOLD.png
Binary file added assets/preload/images/alphabet/DASH.png
Binary file added assets/preload/images/alphabet/DBL QUOTE END.png
Binary file added assets/preload/images/alphabet/DBL QUOTE START.png
Binary file added assets/preload/images/alphabet/DOLLAR.png
Binary file added assets/preload/images/alphabet/DOWN ARROW.png
Binary file added assets/preload/images/alphabet/E BOLD.png
Binary file added assets/preload/images/alphabet/E LOWERCASE.png
Binary file added assets/preload/images/alphabet/E.png
Binary file added assets/preload/images/alphabet/EIGHT BOLD.png
Binary file added assets/preload/images/alphabet/EIGHT.png
Binary file added assets/preload/images/alphabet/ENE BOLD.png
Binary file added assets/preload/images/alphabet/ENE LOWERCASE.png
Binary file added assets/preload/images/alphabet/ENE.png
Binary file added assets/preload/images/alphabet/EQUAL.png
Binary file added assets/preload/images/alphabet/EXCLAMATION.png
Binary file added assets/preload/images/alphabet/F BOLD.png
Binary file added assets/preload/images/alphabet/F LOWERCASE.png
Binary file added assets/preload/images/alphabet/F.png
Binary file added assets/preload/images/alphabet/FIVE BOLD.png
Binary file added assets/preload/images/alphabet/FIVE.png
Binary file added assets/preload/images/alphabet/FORWARD SLASH.png
Binary file added assets/preload/images/alphabet/FOUR BOLD.png
Binary file added assets/preload/images/alphabet/FOUR.png
Binary file added assets/preload/images/alphabet/G BOLD.png
Binary file added assets/preload/images/alphabet/G LOWERCASE.png
Binary file added assets/preload/images/alphabet/G.png
Binary file added assets/preload/images/alphabet/GREATER BOLD.png
Binary file added assets/preload/images/alphabet/GREATER.png
Binary file added assets/preload/images/alphabet/H BOLD.png
Binary file added assets/preload/images/alphabet/H LOWERCASE.png
Binary file added assets/preload/images/alphabet/H.png
Binary file added assets/preload/images/alphabet/HASHTAG.png
Binary file added assets/preload/images/alphabet/HEART.png
Binary file added assets/preload/images/alphabet/I BOLD.png
Binary file added assets/preload/images/alphabet/I LOWERCASE.png
Binary file added assets/preload/images/alphabet/I.png
Binary file added assets/preload/images/alphabet/J BOLD.png
Binary file added assets/preload/images/alphabet/J LOWERCASE.png
Binary file added assets/preload/images/alphabet/J.png
Binary file added assets/preload/images/alphabet/K BOLD.png
Binary file added assets/preload/images/alphabet/K LOWERCASE.png
Binary file added assets/preload/images/alphabet/K.png
Binary file added assets/preload/images/alphabet/L BOLD.png
Binary file added assets/preload/images/alphabet/L LOWERCASE.png
Binary file added assets/preload/images/alphabet/L PARENTHESIS.png
Binary file added assets/preload/images/alphabet/L SQR BRACKET.png
Binary file added assets/preload/images/alphabet/L.png
Binary file added assets/preload/images/alphabet/LEFT ARROW.png
Binary file added assets/preload/images/alphabet/LESS BOLD.png
Binary file added assets/preload/images/alphabet/LESS.png
Binary file added assets/preload/images/alphabet/M BOLD.png
Binary file added assets/preload/images/alphabet/M LOWERCASE.png
Binary file added assets/preload/images/alphabet/M.png
Binary file added assets/preload/images/alphabet/MULTIPLY.png
Binary file added assets/preload/images/alphabet/N BOLD.png
Binary file added assets/preload/images/alphabet/N LOWERCASE.png
Binary file added assets/preload/images/alphabet/N.png
Binary file added assets/preload/images/alphabet/NINE BOLD.png
Binary file added assets/preload/images/alphabet/NINE.png
Binary file added assets/preload/images/alphabet/O BOLD.png
Binary file added assets/preload/images/alphabet/O LOWERCASE.png
Binary file added assets/preload/images/alphabet/O.png
Binary file added assets/preload/images/alphabet/ONE BOLD.png
Binary file added assets/preload/images/alphabet/ONE.png
Binary file added assets/preload/images/alphabet/P BOLD.png
Binary file added assets/preload/images/alphabet/P LOWERCASE.png
Binary file added assets/preload/images/alphabet/P.png
Binary file added assets/preload/images/alphabet/PERCENTAGE.png
Binary file added assets/preload/images/alphabet/PERIOD BOLD.png
Binary file added assets/preload/images/alphabet/PERIOD.png
Binary file added assets/preload/images/alphabet/PLUS BOLD.png
Binary file added assets/preload/images/alphabet/PLUS.png
Binary file added assets/preload/images/alphabet/Q BOLD.png
Binary file added assets/preload/images/alphabet/Q LOWERCASE.png
Binary file added assets/preload/images/alphabet/Q.png
Binary file added assets/preload/images/alphabet/QUESTION BOLD.png
Binary file added assets/preload/images/alphabet/QUESTION.png
Binary file added assets/preload/images/alphabet/R BOLD.png
Binary file added assets/preload/images/alphabet/R LOWERCASE.png
Binary file added assets/preload/images/alphabet/R PARENTHESIS.png
Binary file added assets/preload/images/alphabet/R SQR BRACKET.png
Binary file added assets/preload/images/alphabet/R.png
Binary file added assets/preload/images/alphabet/RIGHT ARROW.png
Binary file added assets/preload/images/alphabet/S BOLD.png
Binary file added assets/preload/images/alphabet/S LOWERCASE.png
Binary file added assets/preload/images/alphabet/S.png
Binary file added assets/preload/images/alphabet/SEMICOLON.png
Binary file added assets/preload/images/alphabet/SEVEN BOLD.png
Binary file added assets/preload/images/alphabet/SEVEN.png
Binary file added assets/preload/images/alphabet/SIX BOLD.png
Binary file added assets/preload/images/alphabet/SIX.png
Binary file added assets/preload/images/alphabet/T BOLD.png
Binary file added assets/preload/images/alphabet/T LOWERCASE.png
Binary file added assets/preload/images/alphabet/T.png
Binary file added assets/preload/images/alphabet/THREE BOLD.png
Binary file added assets/preload/images/alphabet/THREE.png
Binary file added assets/preload/images/alphabet/TILDA BOLD.png
Binary file added assets/preload/images/alphabet/TILDA.png
Binary file added assets/preload/images/alphabet/TWO BOLD.png
Binary file added assets/preload/images/alphabet/TWO.png
Binary file added assets/preload/images/alphabet/U BOLD.png
Binary file added assets/preload/images/alphabet/U LOWERCASE.png
Binary file added assets/preload/images/alphabet/U.png
Binary file added assets/preload/images/alphabet/UNDERSCORE.png
Binary file added assets/preload/images/alphabet/UP ARROW.png
Binary file added assets/preload/images/alphabet/V BOLD.png
Binary file added assets/preload/images/alphabet/V LOWERCASE.png
Binary file added assets/preload/images/alphabet/V.png
Binary file added assets/preload/images/alphabet/W BOLD.png
Binary file added assets/preload/images/alphabet/W LOWERCASE.png
Binary file added assets/preload/images/alphabet/W.png
Binary file added assets/preload/images/alphabet/X BOLD.png
Binary file added assets/preload/images/alphabet/X LOWERCASE.png
Binary file added assets/preload/images/alphabet/X.png
Binary file added assets/preload/images/alphabet/Y BOLD.png
Binary file added assets/preload/images/alphabet/Y LOWERCASE.png
Binary file added assets/preload/images/alphabet/Y.png
Binary file added assets/preload/images/alphabet/Z BOLD.png
Binary file added assets/preload/images/alphabet/Z LOWERCASE.png
Binary file added assets/preload/images/alphabet/Z.png
Binary file added assets/preload/images/alphabet/ZERO BOLD.png
Binary file added assets/preload/images/alphabet/ZERO.png
Binary file removed assets/preload/images/credits/dany.png
Diff not rendered.
2 changes: 1 addition & 1 deletion assets/preload/update/tracking/GitVer.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0e
0.8.1
64 changes: 33 additions & 31 deletions source/Alphabet.hx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class Alphabet extends FlxSpriteGroup
{
for (i in 0...lettersArray.length) {
var letter = lettersArray[0];
letter.destroy();
remove(letter);
remove(letter, true);
lettersArray.remove(letter);
letter.destroy();
}
lettersArray = [];
splitWords = [];
Expand Down Expand Up @@ -244,6 +244,7 @@ class Alphabet extends FlxSpriteGroup
}

add(letter);
lettersArray.push(letter); //so it can be destroyed later

lastSprite = letter;
}
Expand Down Expand Up @@ -327,6 +328,9 @@ class AlphaCharacter extends FlxSprite
{
//actual xml mapping
private static final characters:Map<String, String> = [
//SPECIAL CHARS -> DIFF NAME
"ñ" => "ENE LOWERCASE",
"Ñ" => "ENE",
//numbers -> proper name
"1" => "ONE",
"2" => "TWO",
Expand Down Expand Up @@ -362,30 +366,32 @@ class AlphaCharacter extends FlxSprite
"_" => "UNDERSCORE",
"." => "PERIOD",
"," => "COMMA",
"'" => "QUOTE",
"'" => "APOSTROPHE",
"\"" => "DBL QUOTE START",
"!" => "EXCLAMATION",
"¡" => "EXCLAMATION",
"?" => "QUESTION",
"¿" => "QUESTION",
"{" => "L CRLY BRACKET",
"}" => "R CRLY BRACKET",
"`" => "BACKTICK",
"\\" => "BACKSLASH",
"/" => "SLASH",
"/" => "FORWARD SLASH",
"×" => "MULTIPLY",
"" => "UP ARROW",
"" => "RIGHT ARROW",
"" => "LEFT ARROW",
"" => "DOWN ARROW",
"" => "HEART",
"😡" => "ANGRY" //ah yes, emoji in code
"😡" => "ANGRY FAIC" //ah yes, emoji in code
];

//for determaining which it is
public static final alphabet:String = "abcdefghijklmnopqrstuvwxyz";

public static final numbers:String = "1234567890";

public static final symbols:String = "|~#&$%()*+-:;<=>@[]^_.,'\"!?\\/×↑→←↓♥😡";
public static final symbols:String = "|~#&$%()*+-:;<=>@[]^_.,'\"!¡?¿\\/×↑→←↓♥😡ñÑ";

public var row:Int = 0;

Expand All @@ -394,44 +400,37 @@ class AlphaCharacter extends FlxSprite
public function new(x:Float, y:Float, textSize:Float)
{
super(x, y);
var tex = Paths.getSparrowAtlas('alphabet');
frames = tex;

setGraphicSize(Std.int(width * textSize));
updateHitbox();
this.textSize = textSize;
moves = false;
}

public function set(character:String, letter:Bool, bold:Bool, ?typed:Bool = false) {
if (letter) {
final prefix:String = ((character.toUpperCase() != character) ? '${character.toUpperCase()} LOWERCASE' : character);
animation.addByPrefix(character, '${bold ? '${character.toUpperCase()} BOLD' : '${prefix}0'}', 24);
} else {
final prefix:String = ((bold && character == '_') ? characters.get('-') : characters.get(character));
animation.addByPrefix(character, '$prefix${bold ? ' BOLD' : '0'}', 24);
}
var path = (letter ? (character.toUpperCase() != character ? '${character.toUpperCase()} LOWERCASE' : character) : '');
if (!letter) path = characters.get((bold && character == '_') ? '-' : character); //??
if (!Paths.fileExists('images/alphabet/' + (bold ? path.replace('LOWERCASE', '').trim() + ' BOLD' : path) + '.png', IMAGE))
path = 'QUESTION';
var gfx = Paths.image('alphabet/' + (bold ? path.replace('LOWERCASE', '').trim() + ' BOLD' : path));
loadGraphic(gfx, true, Math.floor(gfx.width/2), gfx.height);
setGraphicSize(Std.int(width * textSize));
animation.add(character, [0, 0, 1, 1], 24);
animation.play(character);
updateHitbox();

if (bold) {
switch (character)
switch (character.toUpperCase())
{
case "'": y -= 20 * textSize;
case '-': y += 20 * textSize;
case '-': y += 22 * textSize;
case '_': y += 50 * textSize; //totally real underscore
case '(':
x += (typed ? 1 * textSize : -35 * textSize);
y -= 5 * textSize;
offset.x = (typed ? -58 * textSize : -3 * textSize);
case ')':
x -= (typed ? 32 * textSize : 10 / textSize);
y -= 5 * textSize;
offset.x = (typed ? 12 * textSize : 24 * textSize);
case '.':
y += 45 * textSize;
x += (typed ? -3 : 5) * textSize;
offset.x += 3 * textSize;
case '(' | ')': y -= 5 * textSize;
case '.': y += 47 * textSize;
case 'Ñ': y -= 26 * textSize; //ñ (eñe)
case '!': y -= 11 * textSize;
case '?': y -= 7 * textSize;
case '¿' | '¡': flipX = flipY = true;
case '+': y += 13 * textSize;
case '~': y += 16 * textSize;
}
return;
}
Expand All @@ -457,6 +456,9 @@ class AlphaCharacter extends FlxSprite
case 'j': y += 5.7 * textSize;
case 'q': y += 12.8 * textSize;
case 'y': y += 11.4 * textSize;
case '¿' | '¡':
y += 10 * textSize;
flipX = flipY = true;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions source/CharacterSelectSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ class CharacterSelectSubstate extends MusicBeatSubstate
function leEpicTween() {
FlxTween.tween(bg, {alpha: 0}, 0.7, {
onComplete: function(_) {
bg.kill();
remove(bg, true);
bg.destroy();
}
});
final shitToTween:Array<FlxBasic> = [character, selectedText, icon, spotlight, alphabetArrows];
for (shit in shitToTween) {
FlxTween.tween(shit, {alpha: 0}, 0.5, {
onComplete: function(_) {
shit.kill();
remove(shit, true);
shit.destroy();
}
});
Expand Down
Loading

0 comments on commit 71a72ff

Please sign in to comment.