Skip to content

Arcade › CODE RED

CODE RED

  • educational
  • choice-based
  • medical
  • simulation
  • narrative
  • browser
  • dark-ui
0
Remix it Discord

1 play

How to play

Click the game above and it runs right here in your browser. No download, no installer, no account needed. Glory built it with Cinevva, so it works on a phone or a tablet too.

Discussion

Nobody has said anything about CODE RED yet. Play it, then tell Glory what you would add next.

Make your own game

CODE RED was built by Glory with the Cinevva game creator: describe the game you want in chat, watch it get built, and play it in your browser minutes later.

Remix CODE RED opens the real game in the creator and forks its actual files, chat and design doc, so you start from the code rather than from a description.

Read the build brief for CODE RED

Cinevva's analyzer read this game's design doc and its source, then wrote the brief below. "Make your own" hands it to the game creator as your opening message, so you start from a real spec rather than a one-line idea.

Create a single-page browser game titled “CODE RED // THE LAST BEAT,” a dark, cinematic clinical decision-making simulation about managing a patient with an acute myocardial infarction. It is an interactive educational choice game, not an action game: the player is a doctor moving through eight sequential hospital rooms by selecting the safest clinical response.

Visual direction: use a nearly black navy background with a subtle radial blue glow, thin blue-gray borders, faint cyan scanlines and a dim cyan grid in the main scene. Use a crisp modern sans-serif UI, with monospaced text for the AI narration, timers, and system log. The palette is dark navy/black with cyan for labels and emphasis, red/pink for danger and the CODE RED branding, green for successful choices and doctor health, and amber for the countdown timer. The layout should fill the viewport without page scrolling: a top status bar, a large left narrative scene, a right telemetry/sidebar area, and a bottom footer. Make it responsive: on narrower screens stack or compact the telemetry panels beneath the scene and hide the system log panel if necessary.

Top bar: show the brand “CODE RED // THE LAST BEAT” with RED in bright red. On the right show compact status boxes: “LEVEL 01/08” (updating through the eight levels), “PATIENT CRITICAL” (changing to UNSTABLE or CRASHING as health drops, and STABILIZED at completion), and “ROOM EMERGENCY” (updating to the current room’s short name).

Main scene: show only the current room, inside a bordered dark panel with subtle grid texture. Each room contains a cyan uppercase kicker such as “LEVEL 01 // EMERGENCY,” a large headline, an explanatory clinical story paragraph, an AI live-narration box labeled “◈ AI-HOSPITAL // LIVE NARRATION,” and three large stacked answer buttons labeled A, B, and C. Each button has a bold action and a smaller explanatory line. Clicking an answer locks the buttons briefly. A correct answer turns green, displays “CORRECT // DOOR UNLOCKED” and the room’s clinical pearl, logs the success, optionally speaks a short confirmation, and advances to the next room after roughly 850 ms. An incorrect answer turns red, displays “ERROR // MYOCARDIUM AT RISK,” logs the warning, reduces doctor health by 18 percentage points and the survival timer by 30 seconds, then lets the player try again in the same room. Health cannot go below 10 from wrong answers. The countdown continues in real time while the player is making decisions, but pauses during the brief locked transition; if health reaches 10 or the timer reaches zero, immediately show the failure ending.

Use these exact eight rooms and answer contents, with only the answer marked “correct” being the successful choice:
1. Room name “Emergency Room,” short label “EMERGENCY,” title “The monitor is counting down.” Story: “The trauma bay doors seal behind you. On the bed: a 58-year-old patient with crushing chest pain, diaphoresis, and nausea. The AI has locked the hospital into a cardiac code.” AI text: “Doctor, the patient is in acute myocardial infarction. Every wrong decision costs time. Every correct decision opens the next door.” Correct: “Activate the STEMI pathway and call the cath lab” with explanation “Time-critical systems response.” Wrong: “Send the patient for a routine chest X-ray first” with “Do not delay reperfusion for nonessential imaging.” Wrong: “Give a sedative and observe for 30 minutes” with “Observation is unsafe with suspected occlusion.” Clinical pearl: “For suspected STEMI, activate the reperfusion pathway immediately and obtain a 12-lead ECG within 10 minutes.”
2. “Risk Factors,” short label “RISK FACTORS,” title “The chart is a map of the enemy.” Story: “The AI projects the patient history across the glass: diabetes, smoking, hypertension, LDL 182 mg/dL. One clue is a decoy. Choose the modifiable risk factor that most directly accelerates atherosclerosis.” AI text says the corridor opens for a clinician who can separate risk from noise. Correct: “Smoking cessation counseling and pharmacotherapy” with “A major modifiable cardiovascular risk factor.” Wrong: “Age 58 — prescribe a reversal protocol” with “Age is non-modifiable; treat risk, not time.” Wrong: “Ignore lipids because the pain is acute” with “Long-term prevention still matters after stabilization.” Pearl: “Smoking, hypertension, diabetes, and dyslipidemia are key modifiable cardiovascular risk factors.”
3. “Coronary Maze,” short label “CORONARY MAZE,” title “Find the artery before the lights go out.” Story: “A holographic coronary tree twists through the room. The patient has inferior ST elevation. Select the vessel most likely responsible for an inferior STEMI.” Correct: “Right coronary artery (RCA)” with “Usually supplies the inferior wall; consider right-ventricular involvement.” Wrong: “Left anterior descending artery (LAD)” with “Classically associated with anterior wall infarction.” Wrong: “Left main coronary artery” with “A catastrophic possibility, but not the best territory match.” Pearl: “Inferior STEMI commonly reflects RCA occlusion; assess for right ventricular infarction before nitrates.”
4. “ECG Room,” short label “ECG ROOM,” title “Read the tracing. Name the emergency.” Story: “A 12-lead ECG scrolls across the wall. ST elevation appears in II, III, and aVF with reciprocal depression in I and aVL.” Correct: “Inferior STEMI” with “ST elevation in contiguous inferior leads with reciprocal changes.” Wrong: “Pericarditis” with “Usually diffuse, concave ST elevation without reciprocal territorial depression.” Wrong: “Hyperkalemia only” with “Can mimic ischemia, but this territorial pattern is a STEMI until proven otherwise.” Pearl: “STEMI is diagnosed by persistent ST elevation in contiguous leads in the right clinical context; do not wait for troponin to activate reperfusion.”
5. “Laboratory,” short label “LABORATORY,” title “The lab wants a number. The heart wants action.” Story: “Troponin is pending. The AI offers three orders, but only one is time-critical and appropriate now. You must treat the patient, not the number.” Correct: “Send baseline labs while the cath team prepares” with “Useful without delaying reperfusion; include CBC, electrolytes, renal function, glucose, coagulation studies.” Wrong: “Wait for the initial troponin before activating the cath lab” with “A delay risks myocardium.” Wrong: “Order a broad autoimmune panel before treatment” with “Not relevant to the immediate emergency.” Pearl: “Troponin may be initially negative in acute MI; treatment decisions should not wait when the ECG and symptoms are compelling.”
6. “Treatment Room,” short label “TREATMENT,” title “Three doors. One is safe.” Story: “The patient is hypotensive but not in respiratory distress. No allergy is documented. The cath team is ready. Select the first-line emergency bundle that fits this patient.” Correct: “Give aspirin, load a P2Y12 inhibitor per protocol, anticoagulate, and expedite PCI” with “Appropriate time-critical strategy, with dosing and contraindications checked locally.” Wrong: “Give sublingual nitroglycerin despite hypotension” with “Potentially dangerous; nitrates can worsen hypotension, especially with RV infarction.” Wrong: “Give fibrinolysis even though timely PCI is available” with “PCI is preferred when it can be delivered within guideline time windows.” Pearl: “Emergency care requires protocol-based antiplatelet/anticoagulant therapy and rapid reperfusion; medication choices depend on contraindications and local guidelines.”
7. “Cath Lab,” short label “CATH LAB,” title “The occlusion is visible.” Story: “Angiography reveals a thrombotic lesion. The patient’s pressure drops; the room shakes as the AI begins to purge the hospital. Choose the next definitive step.” Correct: “Perform urgent PCI with balloon angioplasty and stent when indicated” with “Restores coronary flow and treats the culprit lesion.” Wrong: “Close the lab and transfer without reperfusion” with “Transfers time loss and ongoing myocardial injury.” Wrong: “Treat the ECG with a second sedative only” with “Sedation does not reopen an occluded coronary artery.” Pearl: “Primary PCI is the preferred reperfusion strategy for STEMI when timely expertise is available.”
8. “Final Heart Room,” short label “FINAL HEART,” title “The last beat is yours to protect.” Story: “The final door opens onto a chamber built around the beating heart. The patient stabilizes. The AI asks one final question: what prevents the next event?” Correct: “Cardiac rehabilitation, high-intensity statin, BP/diabetes control, smoking cessation, and follow-up” with “A complete secondary prevention plan after stabilization.” Wrong: “Stop all medication once the artery is open” with “Reperfusion is not a cure for cardiovascular risk.” Wrong: “Return to work without follow-up if symptoms resolve” with “Silent risk remains; structured follow-up is essential.” Pearl: “Secondary prevention after MI includes evidence-based medications, risk-factor modification, cardiac rehabilitation, and follow-up.”

Right sidebar telemetry: a “PATIENT TELEMETRY” panel with a dark ECG monitor containing a glowing animated waveform over a cyan grid. Initially show rhythm “ST-elevation” and heart rate “118 BPM”; on level 4 display rhythm “INFERIOR STEMI”; after completion display “SINUS RHYTHM” and “82 BPM.” Otherwise the heart rate is at least 82 and rises with wrong decisions (118 + 9 per wrong answer). The ECG glow is red/danger while active. Beneath it, show a “SURVIVAL WINDOW” panel with a large amber digital countdown initialized to 09:00, a red horizontal time bar, and a green “DOCTOR HEALTH” bar initialized at 100%. Make the timer turn red and blink below 01:30. Add a “SYSTEM LOG” panel that prepends events such as boot, entering a room, AI success, unsafe choice, and audio narration.

Footer: show the hint “Choose the safest clinical action. The AI is listening.” Update it for correct answers, unsafe answers, and case completion. Include buttons “🔊 AI voice” and “↻ Restart.” The AI voice button should use browser speech synthesis to read the current AI narration in a low, slow voice when supported; initialize a quiet low drone, periodic alarm pulses, and heartbeat tones through Web Audio only after user interaction. The restart button resets the entire run to level 1, 09:00, 100% health, zero score, and zero wrong answers.

End states: after all eight correct choices, replace the room with a centered final report featuring a large glowing pulsing red heart, “FINAL REPORT // ENDING: REPERFUSION,” headline “The last beat was saved.”, and text “The patient survives. The AI releases the doors — but leaves one line on the glass: knowledge is a treatment.” Show “CLINICAL DECISIONS 8/8 correct,” final doctor health, “EDUCATIONAL MODE Complete,” a disclaimer that this is for education only and real care must follow local protocols, current guidelines, and senior supervision, plus a “START NEW RUN” button. On timeout or health failure, show a slower pulsing outlined heart, “FINAL REPORT // ENDING: DELAY,” headline “The last beat was lost.”, text “The hospital sealed the ward. A preventable delay stole the last beat.”, the actual score and health, “EDUCATIONAL MODE Review and retry,” and the same restart option. Keep the game grounded as a clinical educational simulation with no combat, inventory, exploration, or invented mechanics.

More free browser games

Browse the whole Arcade →