ShareShortcuts

Boss Battle simulator

This is a pixel art game made with ai

pooopv
Fazer fork de “Boss Battle simulator”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que pooopv receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
3K
Salvo
1
Ações
5
Categoria
Fun
Versão
1.0
Idioma
EN

This is a pixel art game made with ai

Novidades

Versão 1.0

First release

Histórico de versões
1.0 3 de ago de 2026

First release

O que ele faz

5 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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)
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de pooopv

Ver tudo

Você também pode gostar

Ver tudo
Publicidade