ShareShortcuts

Cube Dash V2

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

vie_gamdev
Dupliquer « Cube Dash V2 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que vie_gamdev soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
3K
Enregistré
1
Actions
12
Catégorie
API
Version
1.0
Langue
EN

Aperçu

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

Nouveautés

Version 1.0

First release

Historique des versions
1.0 20 juil. 2026

First release

Ce qu’il fait

12 actions
  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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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)
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de vie_gamdev

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité