UponThem
Jump to navigation
Jump to search
UponThem
- A language based on the hit game Among Us
- Loosely based on https://github.com/toc8730/amonguscpp
internal variables
int loop = 0;
Instruction
Instruction | Function |
---|---|
LOBBY | the main function of a program |
MEETING | void (used for functions) |
VOTE | return |
SUS | () |
SUSSY(color) | removes 1 from an int |
VENTED(color) | adds 10 to an int |
SUSSYBAKA | ; |
TASK | () { |
WHO | { |
WHERE | } |
COMPLETED | } |
BECAUSE | if |
UNLESS | else |
ACCUSE | prints whatever follows the instruction |
IGNORE | prints a new line |
PLAYER(color, value) | assigns value to the variable named color |
OPEN_DOOR | ( |
CLOSE_DOOR | ) |
OXYGEN | while |
STUPID | < |
BIG_BRAIN | > |
MELTDOWN | increases the internal variable `loop` by 1 |
MELTDONW_TIMER | returns `loop`s value |
IMPOSTER | != |
USERNAME | std::string |
SIMONSAYS | std::cin >> |
DOWNLOAD_TASK(path) | takes a path and returns a string of the file's content |
> The value of color is typically used for a name of a variable
Truth Machine
LOBBY TASK PLAYER(cyan, 0) SUSSYBAKA OXYGEN OPEN_DOOR 1 CLOSE_DOOR WHO BECUASE OPEN_DOOR cyan IMPOSTER 1 CLOSE_DOOR SIMONSAYS cyan SUSSYBAKA UNLESS WHO ACCUSE cyan SUSSYBAKA IGNORE SUSSYBAKA WHERE WHERE VOTE 0 SUSSYBAKA COMPLETED