قالب تطبيق Canvas بملء الشاشة
قالب canvas بملء الشاشة للألعاب: واضح على أي شاشة، مع إدخال باللمس وحلقة اللعبة.
هذا هو القالب يعمل مباشرةً. ميزات الهاتف مثل الكاميرا والاهتزاز والإشعارات تعمل في التطبيق الذي تنشئه.
ميزات الهاتف التي يستخدمها هذا القالب
تأتي هذه من جسر FreeApp JavaScript المضمَّن في كل تطبيق يُنشأ باستخدام Free HTML to APK. في المتصفح العادي يظل القالب يعمل، لكن هذه الاستدعاءات ببساطة لا تفعل شيئًا.
أخفِ أشرطة النظام (وضع الانغماس).
أبقِ الشاشة قيد التشغيل.
اهتزازة واحدة (الافتراضي 50 مللي ثانية) أو نمط [إيقاف، تشغيل، إيقاف، تشغيل…].
كيف يستدعيها القالب
window.addEventListener('freeappready', () => {
FreeApp.fullscreen(true);
FreeApp.orientation('sensor_landscape');
FreeApp.keepAwake(true);
});
canvas.addEventListener('pointerdown', e => {
if (window.FreeApp) FreeApp.vibrate(15);
});
اجعله خاصًا بك بالذكاء الاصطناعي
انسخ هذا الأمر إلى ChatGPT أو Gemini أو Claude، وغيّر الفكرة إلى فكرتك، ثم الصق الإجابة في المحرر. فهو يشرح للذكاء الاصطناعي هيكل التطبيق وميزات الهاتف مسبقًا.
عرض أمر الذكاء الاصطناعي
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.
The app: Full-screen Canvas — a full-screen canvas with a devicePixelRatio-aware render loop and touch/pointer input. Edge-to-edge canvas starter for games: crisp on any screen, touch input, game loop.
Requirements:
- Mobile-first, touch-friendly UI (min 44px tap targets), works in portrait, supports light and dark mode.
- Use <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> and pad for env(safe-area-inset-*).
- Must work fully offline: no CDN or external scripts, fonts or images; persist data in localStorage.
The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.fullscreen(on: boolean): void — hide system bars (immersive)
- FreeApp.orientation(value: 'portrait' | 'landscape' | 'sensor_portrait' | 'sensor_landscape' | 'sensor' | 'unspecified'): void
- FreeApp.keepAwake(on: boolean): void — keep the screen on
- FreeApp.vibrate(ms?: number | number[]): void — one-shot buzz (default 50 ms) or an [off, on, off, on…] pattern
Rules for the bridge:
- Always guard calls with `window.FreeApp &&` (or `if (window.FreeApp) { … }`) and provide a browser fallback so the page also works in a normal browser.
- The bridge may be injected after your script runs: do native setup inside `window.addEventListener('freeappready', …)` and also run it immediately if window.FreeApp already exists.
- Do not use alert/confirm for normal feedback; prefer FreeApp.toast when available.
Return the complete index.html in one code block.
My idea: [DESCRIBE YOUR APP IDEA HERE]حوّله إلى تطبيق Android
- اضغط عدّل وأنشئ عبر الإنترنت. يُفتح القالب في المحرر عبر الإنترنت.
- غيّر النص والألوان والكود، ثم اختر اسمًا للتطبيق وأيقونة واسم الحزمة.
- أنشئ التطبيق. ستحصل على APK موقّع لتثبيته وAAB لـ Google Play، مجانًا، بدون حساب وبدون علامة مائية.
المزيد من قوالب البدايات
تطبيق فارغ
قالب جوال نظيف مع المناطق الآمنة ولون السمة وخطاف جاهزية FreeApp.
الميزات الأصلية
كل واجهات FreeApp API: الاهتزاز والمصباح والإشعارات والمشاركة والبطارية وTTS والمزيد.
بطاقة عمل
ملف شخصي من صفحة واحدة مع الاتصال والبريد والمشاركة بلمسة.
عرض الإعلانات
إعلانات AdMob البانر والبينية والمكافأة مع رصيد عملات وسجل أحداث مباشر.