{"id":"floating-thumb-controls","name":"Floating thumb controls","kind":"mechanic","version":"1.0.1","summary":"Gem Rush’s floating touch stick, normalized WASD/arrow movement and second-finger/Space action.","license":"Apache-2.0","attribution":"Shop Trial · Homie / Ryan Campbell","share":true,"tags":["controls","mobile","touch","keyboard","floating-stick"],"uses":["game"],"from":{"game":"gem-rush","studio":"Shop Trial"},"entry":"src/floating-controls.ts","files":[{"path":"LICENSE","sha256":"cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30","bytes":11358},{"path":"NOTICE","sha256":"5b549c10e829cc9373c9cf1b9a301f6b750fa80d9f5f6005765f97b235a2b12f","bytes":227},{"path":"README.md","sha256":"a09da03d4de96fdca3282d0474e2346185f974faa9e794501a45f1fd8be42460","bytes":517},{"path":"preview/controls.js","sha256":"367f9d953a26da629a2e64076316bcc86273f208188ab99c7e4a8db0b47f3f6a","bytes":2092},{"path":"preview/index.html","sha256":"a5adcf008b8e20fa86d04fe99bd6e58c80a8d0379cc11db4927e9f3cd05c4bcb","bytes":987},{"path":"src/floating-controls.ts","sha256":"31fc3de9c17ffcd76822b05dfe78eef264532d6796ecdd6dce2a859d64bc3712","bytes":1994},{"path":"tuning.json","sha256":"ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356","bytes":3}],"preview":{"page":"preview/index.html","aspect":"4:3","phoneAspect":"3:4"},"requires":{"packages":{},"parts":[]},"cost":{"bytes":17178},"provenance":{"source":"imported","origin":"https://github.com/homie-rocks/homie","notes":"Extracted from Shop Trial’s Gem Rush, the Apache-2.0 Homie starter. Existing license and NOTICE retained. Refactored into a factory and source game uses the same module."},"contract":{"inputs":{"createFloatingControls":"canvas and action callback; create once per view","return":"stick state for drawing and moveVector() normalized x/y"},"state":{"owner":"Local presentation/input only; the game keeps authoritative scores and outcomes."},"netplay":"local"}}
