Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Clash Royale: screenshots, thumbnail and gallery clip

Mason3631fa4c17dc445
diff --git a/docs/media/gallery/clashroyale.gif b/docs/media/gallery/clashroyale.gif
new file mode 100644
index 00000000..f1db571b
Binary files /dev/null and b/docs/media/gallery/clashroyale.gif differ
diff --git a/docs/media/thumb_clashroyale.png b/docs/media/thumb_clashroyale.png
new file mode 100644
index 00000000..ed763448
Binary files /dev/null and b/docs/media/thumb_clashroyale.png differ
diff --git a/games/clashroyale/docs/deck.png b/games/clashroyale/docs/deck.png
new file mode 100644
index 00000000..58dd2ab0
Binary files /dev/null and b/games/clashroyale/docs/deck.png differ
diff --git a/games/clashroyale/docs/place.png b/games/clashroyale/docs/place.png
new file mode 100644
index 00000000..ad1eadb8
Binary files /dev/null and b/games/clashroyale/docs/place.png differ
diff --git a/games/clashroyale/docs/shot.png b/games/clashroyale/docs/shot.png
new file mode 100644
index 00000000..b6b4ae15
Binary files /dev/null and b/games/clashroyale/docs/shot.png differ
diff --git a/games/clashroyale/docs/title.png b/games/clashroyale/docs/title.png
new file mode 100644
index 00000000..5cdf3cfe
Binary files /dev/null and b/games/clashroyale/docs/title.png differ
diff --git a/games/clashroyale/src/main.c b/games/clashroyale/src/main.c
index b2c3e136..d5abdff6 100644
--- a/games/clashroyale/src/main.c
+++ b/games/clashroyale/src/main.c
@@ -15,6 +15,8 @@ const uint8_t *cr_bin;
uint32_t perf_frames __attribute__((used)); /* read by tools/emu.py */
uint32_t perf_updates __attribute__((used));
+uint32_t perf_max __attribute__((used)); /* the slowest frame's steps and drawing, ms */
+uint32_t perf_slow __attribute__((used)); /* frames over 33 ms */
#ifdef CR_DEMO
extern bool bot_plays_both; /* (make EXTRA=-DCR_DEMO: a bot plays your side too, for timing many units) */
@@ -33,7 +35,8 @@ int main(void) {
while (g.running) {
/* the game's steps: drawn when caught up (at most 6 steps, two battle steps, for a drawing) */
int n = 0;
- uint32_t now = plat_millis() * 3;
+ uint32_t t0 = plat_millis();
+ uint32_t now = t0 * 3;
while ((int32_t)(now - next) >= 0 && n < 6 && g.running) {
game_step(plat_keys());
perf_updates++;
@@ -45,6 +48,9 @@ int main(void) {
if (n) {
game_draw();
perf_frames++;
+ uint32_t dt = plat_millis() - t0;
+ if (dt > perf_max) perf_max = dt;
+ if (dt > 33) perf_slow++;
} else
plat_sleep(1);
}
diff --git a/tools/release.py b/tools/release.py
index 78565114..25fad811 100644
--- a/tools/release.py
+++ b/tools/release.py
@@ -64,7 +64,7 @@ ALONE = {
"fnaf3": ("Five Nights at Freddy's 3", "Fazbear's Fright's six nights with Springtrap and the phantoms: the lure, the vents, the maintenance panel"),
"fnaf4": ("Five Nights at Freddy's 4", "the bedroom's nights with the Nightmares: listen at the doors, the closet, the bed, Fun with Plushtrap"),
"famidash": ("Famidash", "TFDSoft's Geometry Dash for the NES, made for the calculator: the 173 levels of Famidash HUGE, every mode, practice mode"),
- "clashroyale": ("Clash Royale", "battles against a bot: the 2016 game's 41 cards, its seven arenas, elixir, crowns and trophies"),
+ "clashroyale": ("Clash Royale", "battles against a bot: 41 cards of the 2016 game, its seven arenas, elixir, crowns and trophies"),
}
VARIANTS = [
("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),