ShareShortcuts

Boss Battle simulator

This is a pixel art game made with ai

pooopv
„Boss Battle simulator“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit pooopv die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
3K
Gesichert
1
Aktionen
5
Kategorie
Fun
Version
1.0
Sprache
EN

This is a pixel art game made with ai

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 3. Aug 2026

First release

Was er macht

5 Aktionen
  1. Comment
    This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=4d241e0d-dab0-4680-838a-d49ff885f41b made with AI
  2. Text
  3. Base64 Encode
  4. Text
  5. Open URLs

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#include 'actions/crypto'
#define glyph shield

// This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=4d241e0d-dab0-4680-838a-d49ff885f41b made with AI

const GameHtml = "<!doctype html><html><head><meta name=\\"viewport\\" content=\\"width=device-width,initial-scale=1\\"><title>Boss Battle</title><style>body{margin:0;background:#120d1a;color:#f7d77a;font-family:monospace;text-align:center;image-rendering:pixelated}main{max-width:520px;margin:20px auto;padding:20px;border:6px solid #8b1e3f;background:#24152d;box-shadow:0 0 0 6px #f7d77a}h1{font-size:32px;text-shadow:4px 4px #8b1e3f}.boss{font-size:80px;margin:12px}.bar{height:24px;background:#351b2b;border:4px solid #f7d77a;margin:10px}.fill{height:100%;background:#c62828;width:100%;transition:width .2s}button{font:inherit;font-weight:bold;color:#120d1a;background:#f7d77a;border:4px solid #fff0a8;padding:12px;margin:5px;cursor:pointer}button:disabled{opacity:.35}#log{min-height:70px;border:4px dashed #8b1e3f;padding:10px;margin-top:14px;color:#fff0a8}</style></head><body><main><h1>⚔ BOSS BATTLE ⚔</h1><div class=\\"boss\\">👹</div><h2>THE SHADOW KING</h2><div class=\\"bar\\"><div id=\\"bossFill\\" class=\\"fill\\"></div></div><div id=\\"bossHp\\">Boss HP: 100 / 100</div><p>Hero HP: <span id=\\"heroHp\\">100</span> / 100</p><button id=\\"attack\\" onclick=\\"attack()\\">ATTACK</button><button id=\\"finisher\\" onclick=\\"finish()\\" disabled>FINISHER</button><button onclick=\\"potion()\\">POTION</button><button onclick=\\"flee()\\">FLEE</button><div id=\\"log\\">The arena awaits your challenge.</div><button onclick=\\"restart()\\">RESTART</button></main><script>let b=100,h=100,p=2,ended=false;const $=id=>document.getElementById(id);function say(t){$('log').textContent=t}function draw(){ $('bossFill').style.width=b+'%';$('bossHp').textContent='Boss HP: '+b+' / 100';$('heroHp').textContent=h;$('finisher').disabled=b>25||ended;$('attack').disabled=ended}function check(){if(b<=0){ended=true;say('VICTORY! The Shadow King has fallen!')}else if(h<=0){ended=true;say('DEFEAT! The darkness wins.')}draw()}function enemy(){if(b>0){let d=Math.floor(Math.random()*12)+8;h=Math.max(0,h-d);say('The boss strikes back for '+d+' damage!');check()}}function attack(){if(ended)return;let d=Math.floor(Math.random()*16)+10;b=Math.max(0,b-d);say('Your pixel blade deals '+d+' damage!');check();if(!ended)setTimeout(enemy,350)}function finish(){if(ended||b>25)return;b=0;say('FINISHER! A legendary pixel strike ends the battle!');check()}function potion(){if(ended||p<1){say('No potions remain.');return}p--;let old=h;h=Math.min(100,h+30);say('Potion restores '+(h-old)+' HP. Potions left: '+p);draw()}function flee(){if(ended)return;ended=true;say('You fled the boss battle.');draw()}function restart(){b=100;h=100;p=2;ended=false;say('The arena resets. Face the Shadow King!');draw()}draw()</script></body></html>"
const EncodedGame = base64Encode(GameHtml)
const GameURL = "data:text/html;base64,{EncodedGame}"
openURL(GameURL)
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von pooopv

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung