ResponsiveTouchGameFramework
No description available
Install / Use
/learn @xem/ResponsiveTouchGameFrameworkREADME
responsiveTouchGameFramework v2
A tiny boilerplate for HTML5 games featuring a responsive, centered, fixed-ratio canvas, and unified pointer events (mouse + touch).
Demo:
http://xem.github.io/responsiveTouchGameFramework
How to use:
- Clone this repo
- Edit the page title and global CSS (index.html)
- Set your canvas size (ex: 480 x 270) and game variables in init.js
- Write your game's code in the render loop (render.js) - the demo draws a square movable with the mouse/finger.
- At any moment you have access to the variables
click_x,click_y,down_x,down_y,move_x,move_y,up_xandup_y(adapted to your canvas dimensions), andpointer_down(to tell if the mouse/finger is currently down) - Log stuff on screen using the
log()function
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
