ShareShortcuts

Cube Dash V2

V2 the picture attached to this is the icon download it and use it as the app icon

vie_gamdev
Создать форк «Cube Dash V2»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы vie_gamdev получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
3K
Сохранено
1
Действия
12
Категория
API
Версия
1.0
Язык
EN

Просмотр

V2 the picture attached to this is the icon download it and use it as the app icon

Что нового

Версия 1.0

First release

История версий
1.0 20 июл 2026 г.

First release

Что делает

Действий: 12
  1. Comment
    Built with ShortcutStudio. Download: https://apps.apple.com/us/app/shortcutstudio-ai-shortcuts/id6760745118 Website: https://shortcutstudio.app © ShortcutStudio. All rights reserved.
  2. Comment
    This shortcut is public. View it at https://shortcutstudio.app/marketplace-item.html?id=96604E87-2762-4922-B81F-350064C3D0A8
  3. Comment
    Geometry Dash-style jumping game. Opens a web page in Safari. Tap to jump over triangles. 7 levels.
  4. Text
  5. Base64 Encode
  6. Text
  7. If
  8. Comment
    If (then) has no actions
  9. If
  10. Comment
    If (else) has no actions
  11. Text
  12. Open URLs

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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)
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от vie_gamdev

См. все

Вам также может понравиться

См. все
Реклама