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.

Among Us: README, screenshots, the game's icon and How to Play with pictures

Mason36302c8261a444f
diff --git a/games/amongus/LICENSES/OFL-1.1-LiberationSans.txt b/games/amongus/LICENSES/OFL-1.1-LiberationSans.txt
new file mode 100644
index 00000000..aba73e8a
--- /dev/null
+++ b/games/amongus/LICENSES/OFL-1.1-LiberationSans.txt
@@ -0,0 +1,102 @@
+Digitized data copyright (c) 2010 Google Corporation
+ with Reserved Font Arimo, Tinos and Cousine.
+Copyright (c) 2012 Red Hat, Inc.
+ with Reserved Font Name Liberation.
+
+This Font Software is licensed under the SIL Open Font License,
+Version 1.1.
+
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+
+PREAMBLE The goals of the Open Font License (OFL) are to stimulate
+worldwide development of collaborative font projects, to support the font
+creation efforts of academic and linguistic communities, and to provide
+a free and open framework in which fonts may be shared and improved in
+partnership with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves.
+The fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply to
+any document created using the fonts or their derivatives.
+
+
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such.
+This may include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components
+as distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting ? in part or in whole ?
+any of the components of the Original Version, by changing formats or
+by porting the Font Software to a new environment.
+
+"Author" refers to any designer, engineer, programmer, technical writer
+or other person who contributed to the Font Software.
+
+
+PERMISSION & CONDITIONS
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,in
+ Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or
+ in the appropriate machine-readable metadata fields within text or
+ binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the
+ corresponding Copyright Holder. This restriction only applies to the
+ primary font name as presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+
+5) The Font Software, modified or unmodified, in part or in whole, must
+ be distributed entirely under this license, and must not be distributed
+ under any other license. The requirement for fonts to remain under
+ this license does not apply to any document created using the Font
+ Software.
+
+
+
+TERMINATION
+This license becomes null and void if any of the above conditions are not met.
+
+
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
+DEALINGS IN THE FONT SOFTWARE.
+
diff --git a/games/amongus/README.md b/games/amongus/README.md
new file mode 100644
index 00000000..d7ab322d
--- /dev/null
+++ b/games/amongus/README.md
@@ -0,0 +1,88 @@
+> **Among Us is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `AmongUs.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).
+
+<p align="center">
+ <img src="src/icon.png" width="84" alt="Among Us icon">
+</p>
+
+<h1 align="center">Among Us</h1>
+
+<p align="center">
+ <b>Do your tasks on the Skeld, or be the Impostor, against up to 9 bots on the NumWorks calculator.</b><br>
+ Find the Impostor and vote them out before it's too late.
+</p>
+
+<p align="center">
+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/AmongUs.nwa"><b>Download AmongUs.nwa</b></a>
+ &nbsp;·&nbsp; <a href="#controls">Controls</a>
+</p>
+
+<p align="center">
+ <img src="docs/shot.png" width="640" alt="The crew around the emergency button in the Cafeteria at the start of a round">
+</p>
+
+## Highlights
+
+* **The Skeld:** the whole ship from the game's own pictures, with its walls casting shadows on your light, its doors, vents, cameras and admin map.
+* **Every Skeld task:** wires, the card swipe, asteroids, the scan, the sample, fuel, the reactor, garbage, data, the distributor, the course, the O2 filter, manifolds, steering, shields and power, each one made for the keypad.
+* **Bots:** crewmates do their tasks, report bodies and remember who they saw where. Impostors fake tasks, kill when nobody's looking, vent and sabotage. Nobody knows more than they saw.
+* **Sabotage:** reactor meltdown, oxygen, lights, comms and doors, from the Impostor's sabotage map.
+* **Meetings:** report a body or press the emergency button, hear the bots out, vote or skip, then the ejection.
+* **Kills and ghosts:** the kill animation, and dead crewmates finish their tasks as ghosts.
+* **The lobby's settings** with the original's defaults: impostors, kill cooldown and distance, vision, speed, tasks, meetings, votes and more.
+* **Saves:** Home saves and quits mid-round. Your game and settings are also copied into `amongus_saves.py`, so installing the app again doesn't erase them.
+
+<table>
+ <tr>
+ <td align="center"><img src="docs/skeld.png" width="390" alt="A crewmate in the hallway by MedBay, the walls casting shadows"><br><sub>Walls cast shadows</sub></td>
+ <td align="center"><img src="docs/task.png" width="390" alt="Fix Wiring with two wires plugged in"><br><sub>Fix Wiring</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/meeting.png" width="390" alt="The meeting's tablet during the vote"><br><sub>Who is the Impostor?</sub></td>
+ <td align="center"><img src="docs/eject.png" width="390" alt="Pink was The Impostor"><br><sub>The ejection</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/map.png" width="390" alt="The map with the player's tasks marked"><br><sub>The map</sub></td>
+ <td align="center"><img src="docs/sabotage.png" width="390" alt="The Impostor's sabotage map"><br><sub>The sabotage map</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/kill.png" width="390" alt="An impostor's tongue kill"><br><sub>A kill</sub></td>
+ <td align="center"><img src="docs/title.png" width="390" alt="The title screen"><br><sub>The title</sub></td>
+ </tr>
+</table>
+
+## How to play
+
+**As a crewmate,** walk to your tasks (the list at the top left, or the yellow marks on the map) and press OK at each one. The crew wins when every task is done or every Impostor is voted out. Find a body? Report it. Suspect someone? Call a meeting with the button in the Cafeteria. In the meeting, the bots say what they saw: vote for the Impostor or skip. If you die, finish your tasks as a ghost.
+
+**As the Impostor,** kill the crewmates one by one without being seen, then hide in the vents. Sabotage the ship to split the crew: if nobody fixes the reactor or the oxygen in time, you win. Fake tasks and blend in. You win when there are as many Impostors as crewmates.
+
+## Controls
+
+| Key | What it does |
+| --- | --- |
+| Arrows | Walk (in a vent, go to the vent the arrow points at) |
+| OK | Use, report, vent, and the tasks' main key |
+| EXE | Kill (Impostors) |
+| Toolbox | Map (the sabotage map for Impostors), the chat in meetings |
+| Back | Close, or pause (Resume, How to Play, Quit game) |
+| Home | Save and quit |
+
+A few tasks also take the digit keys: the reactor's buttons, the oxygen code, the light switches and the shields.
+
+## Good to know
+
+* **On its own:** Among Us is too big to fit next to NumPlay. Installing it from the NumWorks website swaps out NumPlay and the other apps, and installing NumPlay again swaps it back out. Your progress in each one is kept.
+* **What's in:** the Skeld from the 2021.3.31 version, against bots made for this version (the original has none). There is no online play, chat, cosmetics, other maps or sound (the calculator has no speaker).
+
+## Credits
+
+Inspired by Among Us by Innersloth, not affiliated with them. Go play the original.
+
+* The ship, the players, the tasks, the meetings, the buttons and the kill come from the game's Android release, read by [tools/pack.py](tools/pack.py) into `src/data.bin`. Its rules and numbers follow the game's own code.
+* The text is in **Liberation Sans**, the game's font (SIL Open Font License 1.1, see [LICENSES/OFL-1.1-LiberationSans.txt](LICENSES/OFL-1.1-LiberationSans.txt)).
+
+Made by Mason Chen as part of NumPlay.
+
+## License
+
+The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. The game's pictures and font keep their own terms (see Credits). Among Us is a trademark of Innersloth.
diff --git a/games/amongus/docs/eject.png b/games/amongus/docs/eject.png
new file mode 100644
index 00000000..a23bbab0
Binary files /dev/null and b/games/amongus/docs/eject.png differ
diff --git a/games/amongus/docs/kill.png b/games/amongus/docs/kill.png
new file mode 100644
index 00000000..69a96155
Binary files /dev/null and b/games/amongus/docs/kill.png differ
diff --git a/games/amongus/docs/map.png b/games/amongus/docs/map.png
new file mode 100644
index 00000000..e4ad1dfd
Binary files /dev/null and b/games/amongus/docs/map.png differ
diff --git a/games/amongus/docs/meeting.png b/games/amongus/docs/meeting.png
new file mode 100644
index 00000000..4d0b57d7
Binary files /dev/null and b/games/amongus/docs/meeting.png differ
diff --git a/games/amongus/docs/sabotage.png b/games/amongus/docs/sabotage.png
new file mode 100644
index 00000000..7a6ca427
Binary files /dev/null and b/games/amongus/docs/sabotage.png differ
diff --git a/games/amongus/docs/shot.png b/games/amongus/docs/shot.png
new file mode 100644
index 00000000..a475eada
Binary files /dev/null and b/games/amongus/docs/shot.png differ
diff --git a/games/amongus/docs/skeld.png b/games/amongus/docs/skeld.png
new file mode 100644
index 00000000..a164078e
Binary files /dev/null and b/games/amongus/docs/skeld.png differ
diff --git a/games/amongus/docs/task.png b/games/amongus/docs/task.png
new file mode 100644
index 00000000..97f4a472
Binary files /dev/null and b/games/amongus/docs/task.png differ
diff --git a/games/amongus/docs/title.png b/games/amongus/docs/title.png
new file mode 100644
index 00000000..439ca208
Binary files /dev/null and b/games/amongus/docs/title.png differ
diff --git a/games/amongus/src/art.c b/games/amongus/src/art.c
index f0697383..bb4ec102 100644
--- a/games/amongus/src/art.c
+++ b/games/amongus/src/art.c
@@ -36,7 +36,7 @@ void art_title(void) {
art_stars(g.screen_t, 1);
float t = g.screen_t;
for (int k = 0; k < 3; k++) {
- float x = fmodf(t * (9 + 4 * k) + k * 140, 420) - 50, y = 126 + 6 * sinf(t * 0.5f + k * 2.1f) + (k - 1) * 3;
+ float x = fmodf(t * 12 + k * 140 + 60, 420) - 50, y = 126 + 6 * sinf(t * 0.5f + k * 2.1f) + (k - 1) * 3;
gfx_pic(pic(PIC_IDLE), x, y, 0.9f - 0.12f * k, 0.9f - 0.12f * k, t * (0.6f + 0.25f * k) + k, color_pal[(k * 5 + 1) % N_COLORS],
256);
}
diff --git a/games/amongus/src/icon.png b/games/amongus/src/icon.png
index 0b9c9c33..b2bbbebe 100644
Binary files a/games/amongus/src/icon.png and b/games/amongus/src/icon.png differ
diff --git a/games/amongus/src/screens.c b/games/amongus/src/screens.c
index b995f9f9..7ebf91e5 100644
--- a/games/amongus/src/screens.c
+++ b/games/amongus/src/screens.c
@@ -183,14 +183,14 @@ static void title_draw(void) {
/* ---- How to Play ---- */
-static const char *const HOWTO[][6] = {
+static const char *const HOWTO[2][5] = {
{"Crewmates", "Do your tasks around the ship.", "Find the Impostor and vote them out.",
- "The task bar fills as tasks get done.", "Report a body or press the button to meet.", NULL},
+ "The task bar fills as tasks get done.", "Report a body or press the button to meet."},
{"Impostors", "Kill the crewmates, one at a time.", "Sabotage the ship and use the vents.",
- "Fake tasks and don't get caught.", "Win when the crew is as few as you.", NULL},
- {"Keys", "Arrows: walk", "OK: use, report, vent", "EXE: kill", "Toolbox: map or sabotage", "Back: pause Home: save and quit"},
+ "Fake tasks and don't get caught.", "Win when the crew is as few as you."},
};
-
+static const char *const KEYS[][2] = {{"Arrows", "walk"}, {"OK", "use, report, vent"}, {"EXE", "kill"},
+ {"Toolbox", "map, sabotage"}, {"Back", "pause"}, {"Home", "save and quit"}};
static void howto_tick(uint32_t pressed) {
bool out = false;
if (pressed & (K_RIGHT | K_OK | K_EXE)) {
@@ -207,15 +207,28 @@ static void howto_tick(uint32_t pressed) {
static void howto_draw(void) {
art_stars(g.t + g.screen_t, 0.3f);
- gfx_fill(20, 20, 280, 190, rgb565(0x0E1A2B), 230);
- gfx_rect(20, 20, 280, 190, 2, rgb565(0x9AB3C9));
- const char *const *p = HOWTO[g.sel];
- gfx_text(FONT_HUGE, 160, 56, p[0], g.sel == 1 ? IMP_RED : CREW_BLUE, 0, 0, 1);
- for (int k = 1; k < 6 && p[k]; k++) gfx_text(FONT_MID, 160, 74 + 22 * k, p[k], WHITE, 0, 0, 1);
+ gfx_fill(20, 14, 280, 202, rgb565(0x0E1A2B), 230);
+ gfx_rect(20, 14, 280, 202, 2, rgb565(0x9AB3C9));
+ if (g.sel < 2) {
+ const char *const *p = HOWTO[g.sel];
+ gfx_text(FONT_HUGE, 160, 46, p[0], g.sel == 1 ? IMP_RED : CREW_BLUE, 0, 0, 1);
+ /* the player, then the buttons that matter */
+ art_player(g.sel ? 0 : 1, 82, 82, 1.2f, false, 256);
+ static const int B[2][3] = {{PIC_UI_USEBUTTON, PIC_UI_REPORTBUTTON, PIC_UI_MAPADMIN},
+ {PIC_UI_KILLBUTTON, PIC_UI_VENT, PIC_UI_SABOTAGE}};
+ for (int k = 0; k < 3; k++) gfx_spr(pic(B[g.sel][k]), 140 + 44 * k, 82, false, NULL, 256);
+ for (int k = 1; k < 5; k++) gfx_text(FONT_MID, 160, 104 + 21 * k, p[k], WHITE, 0, 0, 1);
+ } else {
+ gfx_text(FONT_HUGE, 160, 46, "Keys", WHITE, 0, 0, 1);
+ for (int k = 0; k < 6; k++) {
+ gfx_text(FONT_MID, 150, 76 + 20 * k, KEYS[k][0], 0xFFE0, 0, 0, 2);
+ gfx_text(FONT_MID, 162, 76 + 20 * k, KEYS[k][1], WHITE, 0, 0, 0);
+ }
+ }
char b[16];
snprintf(b, sizeof b, "%d/3", g.sel + 1);
- gfx_text(FONT_SMALL, 160, 202, b, rgb565(0x9AB3C9), 0, 0, 1);
- hud_keys("OK next left back a page Back close");
+ gfx_text(FONT_SMALL, 160, 208, b, rgb565(0x9AB3C9), 0, 0, 1);
+ hud_keys(g.sel < 2 ? "OK next left back a page Back close" : "OK done left back a page Back close");
}
/* ---- pause ---- */
diff --git a/games/amongus/tests/play.c b/games/amongus/tests/play.c
index 48ffeb90..5bf83788 100644
--- a/games/amongus/tests/play.c
+++ b/games/amongus/tests/play.c
@@ -312,7 +312,12 @@ int main(int argc, char **argv) {
game_new();
g.screen = S_PLAY;
/* (the round a little under way: the bots spread out) */
- for (int f = 0; f < walk_frames; f++) game_tick(0), host_time += 33;
+ for (int f = 0; f < walk_frames; f++) {
+ for (int i = 0; i < g.nplayers; i++) g.p[i].kill_cd = 30, g.p[i].emergencies = 0;
+ g.sab_cd = 30;
+ game_tick(0), host_time += 33;
+ }
+ for (int i = 0; i < g.nplayers; i++) g.p[i].emergencies = g.opt.meetings;
if (at_x < 1e8f) g.p[g.me].pos = (V2){at_x, at_y}, g.cam = (V2){at_x, at_y + FEET_Y};
if (mgkind >= 0) open_minigame(mgkind);
if (scene_name) scene(scene_name);
diff --git a/games/amongus/tests/rules.c b/games/amongus/tests/rules.c
index 03b4f070..288a01ac 100644
--- a/games/amongus/tests/rules.c
+++ b/games/amongus/tests/rules.c
@@ -261,6 +261,19 @@ int rules(void) {
Task t = {(uint8_t)d2, 0, {0, 2, 4}, 0, 0};
for (; t.step < TASK_DEFS[d2].steps; t.step++) CHECK(task_console(0, &t) >= 0, "%s step %d", TASK_DEFS[d2].name, t.step);
}
+ /* standing where a bot stands to use each console, the player can use it too */
+ round_of(7, 1, 1);
+ for (int d2 = 0; d2 < N_TASK_DEFS; d2++)
+ for (int st = 0; st < TASK_DEFS[d2].steps && st < 4; st++) {
+ Task t = {(uint8_t)d2, (uint8_t)st, {0, 2, 4}, 0, 0};
+ g.p[0].tasks[0] = t;
+ g.p[0].ntasks = 1;
+ for (int c = 0; c < N_CONSOLES; c++) {
+ if (!console_serves(c, &t)) continue;
+ g.p[0].pos = (V2){CONSOLES[c].sx, CONSOLES[c].sy};
+ CHECK(console_use(0, c) == 0, "%s step %d usable from console %d's spot", TASK_DEFS[d2].name, st, c);
+ }
+ }
bots_frozen = false;
printf("RULES %d checks, %d failed\n", checks, fails);
return fails;