Cube Dash V2
V2 the picture attached to this is the icon download it and use it as the app icon
vie_gamdevEscaneie com o iPhone para instalar
Pré-visualização
V2 the picture attached to this is the icon download it and use it as the app icon
Novidades
Versão 1.0
First release
O que ele faz
12 ações-
CommentBuilt with ShortcutStudio. Download: https://apps.apple.com/us/app/shortcutstudio-ai-shortcuts/id6760745118 Website: https://shortcutstudio.app © ShortcutStudio. All rights reserved.
-
CommentThis shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=96604E87-2762-4922-B81F-350064C3D0A8
-
CommentGeometry Dash-style jumping game. Opens a web page in Safari. Tap to jump over triangles. 7 levels.
-
Text
-
Base64 Encode
-
Text
-
If
-
CommentIf (then) has no actions
-
If
-
CommentIf (else) has no actions
-
Text
-
Open URLs
Ver como código
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 play
/*
Built with ShortcutStudio.
Download: https://apps.apple.com/us/app/shortcutstudio-ai-shortcuts/id6760745118
Website: https://shortcutstudio.app
© ShortcutStudio. All rights reserved.
*/
// This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=96604E87-2762-4922-B81F-350064C3D0A8
// Geometry Dash-style jumping game. Opens a web page in Safari. Tap to jump over triangles. 7 levels.
const HtmlCode = "<!DOCTYPE html><html><head><meta charset=\\"UTF-8\\"><meta name=\\"viewport\\" content=\\"width=device-width,initial-scale=1.0,user-scalable=no\\"><title>Geometry Dash</title><style>body{margin:0;overflow:hidden;background:#1a1a2e}canvas{display:block}</style></head><body><canvas id=\\"game\\"></canvas><script>const c=document.getElementById('game'),ctx=c.getContext('2d');c.width=innerWidth;c.height=innerHeight;const W=c.width,H=c.height,gY=H*0.75,cs=40,cx=100;let cy=gY-cs,vy=0,g=0.6,jf=-12,grounded=true,obs=[],score=0,level=1,speed=5,maxL=7,over=false,complete=false,intv=100,fc=0,next=100,passed=0,perL=10;const ls=[{s:5,i:120},{s:6,i:110},{s:7,i:100},{s:8,i:90},{s:9,i:80},{s:10,i:70},{s:12,i:60}];function reset(){obs=[];passed=0;cy=gY-cs;vy=0;grounded=true;over=false;complete=false;fc=0;next=100;const l=ls[level-1];speed=l.s;intv=l.i}function jump(){if(grounded&&!over&&!complete){vy=jf;grounded=false}}c.addEventListener('touchstart',e=>{e.preventDefault();jump()});c.addEventListener('click',jump);document.addEventListener('keydown',e=>{if(e.code==='Space'||e.code==='ArrowUp'){e.preventDefault();jump()}});function update(){if(over||complete)return;fc++;vy+=g;cy+=vy;if(cy>=gY-cs){cy=gY-cs;vy=0;grounded=true}else grounded=false;if(fc>=next){let th=30,tw=30;obs.push({x:W,y:gY-th,w:tw,h:th});next=fc+intv}for(let i=obs.length-1;i>=0;i--){obs[i].x-=speed;if(obs[i].x+obs[i].w<0){obs.splice(i,1);passed++;if(passed>=perL){complete=true;if(level<maxL){level++;reset()}else{over=true}}}}for(let o of obs){if(cx+cs>o.x&&cx<o.x+o.w&&cy+cs>o.y&&cy<o.y+o.h){over=true;break}}}function draw(){ctx.clearRect(0,0,W,H);ctx.fillStyle='#2d2d5e';ctx.fillRect(0,gY,W,H-gY);ctx.fillStyle='#00d2ff';ctx.fillRect(cx,cy,cs,cs);ctx.fillStyle='#ff4757';for(let o of obs){ctx.beginPath();ctx.moveTo(o.x,o.y+o.h);ctx.lineTo(o.x+o.w/2,o.y);ctx.lineTo(o.x+o.w,o.y+o.h);ctx.closePath();ctx.fill()}ctx.fillStyle='white';ctx.font='20px Arial';ctx.fillText('Level: '+level+'/'+maxL,10,30);ctx.fillText('Score: '+passed,10,60);if(over){ctx.fillStyle='red';ctx.font='40px Arial';ctx.fillText('Game Over',W/2-100,H/2);ctx.font='20px Arial';ctx.fillText('Tap to restart',W/2-70,H/2+40)}else if(complete&&level>maxL){ctx.fillStyle='green';ctx.font='40px Arial';ctx.fillText('You Win!',W/2-80,H/2)}}reset();(function loop(){update();draw();requestAnimationFrame(loop)})();c.addEventListener('touchstart',e=>{if(over){level=1;reset()}});</script></body></html>"
const EncodedHtml = base64Encode(HtmlCode)
const DataUri = "data:text/html;base64,{EncodedHtml}"
if EncodedHtml == "" {
// If (then) has no actions
} else {
// If (else) has no actions
}
const Text = "{}"
const OpenGame = openURL(Text)
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 vie_gamdev
Você também pode gostar
Publicidade