v2.5.0: added a little dot progressing vfx to interlevelscene

This commit is contained in:
Evan Debenham
2024-08-15 14:32:55 -04:00
parent 213f7a2f6a
commit ee26c346bd
2 changed files with 28 additions and 10 deletions

View File

@@ -70,13 +70,13 @@ scenes.heroselectscene.custom_seed_duplicate=You already have a regular game in
scenes.heroselectscene.custom_seed_set=Set scenes.heroselectscene.custom_seed_set=Set
scenes.heroselectscene.custom_seed_clear=Clear scenes.heroselectscene.custom_seed_clear=Clear
scenes.interlevelscene$mode.descend=Descending... scenes.interlevelscene$mode.descend=Descending
scenes.interlevelscene$mode.ascend=Ascending... scenes.interlevelscene$mode.ascend=Ascending
scenes.interlevelscene$mode.continue=Loading... scenes.interlevelscene$mode.continue=Loading
scenes.interlevelscene$mode.resurrect=Resurrecting... scenes.interlevelscene$mode.resurrect=Resurrecting
scenes.interlevelscene$mode.return=Returning... scenes.interlevelscene$mode.return=Returning
scenes.interlevelscene$mode.fall=Falling!... scenes.interlevelscene$mode.fall=Falling!
scenes.interlevelscene$mode.reset=Resetting... scenes.interlevelscene$mode.reset=Resetting
scenes.interlevelscene.file_not_found=Save file not found. If this error persists after restarting, it may mean this save game is corrupted. Sorry about that. scenes.interlevelscene.file_not_found=Save file not found. If this error persists after restarting, it may mean this save game is corrupted. Sorry about that.
scenes.interlevelscene.io_error=Cannot read save file. If this error persists after restarting, it may mean this save game is corrupted. Sorry about that. scenes.interlevelscene.io_error=Cannot read save file. If this error persists after restarting, it may mean this save game is corrupted. Sorry about that.
@@ -127,7 +127,7 @@ scenes.titlescene.patreon_body=Shattered Pixel Dungeon is a completely free game
scenes.titlescene.patreon_button=Patreon Page scenes.titlescene.patreon_button=Patreon Page
scenes.welcomescene.update_intro=Shattered Pixel Dungeon has been updated! scenes.welcomescene.update_intro=Shattered Pixel Dungeon has been updated!
scenes.welcomescene.update_msg=v2.4.0 features a new category of item: trinkets! They are more about tweaking gameplay variables than giving direct power or utility.\n\nThere are also a bunch of smaller additions and tweaks, most notably to the Duelist and to Alchemy. Be sure to check the changes screen for full details. scenes.welcomescene.update_msg=v2.5.0 includes a total overhaul to the journal, some new trinkets, and tonnes of smaller tweaks and balance changes.\n\nThere are also new splash arts for each of the dungeons regions, viewable during loading screens! Be sure to check the changes screen for full details.
scenes.welcomescene.patch_intro=Shattered Pixel Dungeon has been patched! scenes.welcomescene.patch_intro=Shattered Pixel Dungeon has been patched!
scenes.welcomescene.patch_bugfixes=This patch contains bugfixes. scenes.welcomescene.patch_bugfixes=This patch contains bugfixes.
scenes.welcomescene.patch_translations=This patch contains translation updates. scenes.welcomescene.patch_translations=This patch contains translation updates.

View File

@@ -306,12 +306,30 @@ public class InterlevelScene extends PixelScene {
} }
waitingTime = 0f; waitingTime = 0f;
} }
private int dots = 0;
@Override @Override
public void update() { public void update() {
super.update(); super.update();
waitingTime += Game.elapsed; waitingTime += Game.elapsed;
if (mode != Mode.FALL && dots != Math.ceil(waitingTime / ((2*fadeTime)/3f))) {
String text = Messages.get(Mode.class, mode.name());
dots = (int)Math.ceil(waitingTime / ((2*fadeTime)/3f))%3;
switch (dots){
case 1: default:
message.text(text + ".");
break;
case 2:
message.text(text + "..");
break;
case 0:
message.text(text + "...");
break;
}
}
switch (phase) { switch (phase) {
@@ -378,7 +396,7 @@ public class InterlevelScene extends PixelScene {
if (mode == Mode.FALL) { if (mode == Mode.FALL) {
message.setPos( message.setPos(
(Camera.main.width - message.width() - 6) + Random.NormalFloat(-1, 1), (Camera.main.width - message.width() - 4) + Random.NormalFloat(-1, 1),
(Camera.main.height - message.height() - 6) + Random.NormalFloat(-1, 1) (Camera.main.height - message.height() - 6) + Random.NormalFloat(-1, 1)
); );
align(message); align(message);