ShareShortcuts

Cube Dash V2

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

vie_gamdev
Fork “Cube Dash V2”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så vie_gamdev får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
3K
Gemt
1
Handlinger
12
Kategori
API
Version
1.0
Sprog
EN

Forhåndsvisning

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

Nyheder

Version 1.0

First release

Versionshistorik
1.0 20. jul. 2026

First release

Hvad den gør

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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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)
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra vie_gamdev

Se alle

Du vil måske også kunne lide

Se alle
Annonce