<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[בירור | עזרה ביצירת אפליקציה!]]></title><description><![CDATA[<pre><code>from pathlib import Path
html = r'''&lt;!doctype html&gt;
&lt;html lang="he" dir="rtl"&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;
&lt;title&gt;Harley Monster Ride&lt;/title&gt;
&lt;style&gt;
html,body{margin:0;height:100%;overflow:hidden;background:#090909;font-family:Arial}
canvas{display:block;width:100vw;height:100vh}
#hud{position:fixed;top:18px;right:18px;color:#fff;background:#000b;padding:14px 18px;border:1px solid #777;border-radius:12px;font-size:18px}
#start{position:fixed;inset:0;display:grid;place-items:center;background:#000d;color:white}
button{font-size:24px;padding:16px 30px;border:0;border-radius:12px;cursor:pointer}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;canvas id="c"&gt;&lt;/canvas&gt;
&lt;div id="hud"&gt;מהירות: &lt;span id="speed"&gt;0&lt;/span&gt; קמ"ש&lt;br&gt;כוח: 999,000 כ"ס&lt;br&gt;חצים / WASD לנהיגה&lt;/div&gt;
&lt;div id="start"&gt;&lt;button id="go"&gt;🏍️ START ENGINE&lt;/button&gt;&lt;/div&gt;
&lt;script&gt;
const c=document.getElementById("c"),ctx=c.getContext("2d"),speedEl=document.getElementById("speed");
let W,H,keys={},started=false,speed=0,road=0;
function resize(){W=c.width=innerWidth*devicePixelRatio;H=c.height=innerHeight*devicePixelRatio;ctx.setTransform(devicePixelRatio,0,0,devicePixelRatio,0,0);W=innerWidth;H=innerHeight}
addEventListener("resize",resize);resize();
addEventListener("keydown",e=&gt;keys[e.key.toLowerCase()]=1);
addEventListener("keyup",e=&gt;keys[e.key.toLowerCase()]=0);

let audio,osc,gain;
function engine(){
 audio=new (window.AudioContext||window.webkitAudioContext)();
 osc=audio.createOscillator(); gain=audio.createGain();
 osc.type="sawtooth"; osc.frequency.value=65; gain.gain.value=.035;
 osc.connect(gain).connect(audio.destination);osc.start();
}
document.getElementById("go").onclick=()=&gt;{started=true;document.getElementById("start").style.display="none";engine()};

function draw(){
 ctx.fillStyle="#18221a";ctx.fillRect(0,0,W,H);
 // sky
 ctx.fillStyle="#52789b";ctx.fillRect(0,0,W,H*.48);
 // road
 const cx=W/2, rw=Math.min(W*.72,760);
 ctx.fillStyle="#222";ctx.beginPath();ctx.moveTo(cx-rw*.22,H*.48);ctx.lineTo(cx-rw/2,H);ctx.lineTo(cx+rw/2,H);ctx.lineTo(cx+rw*.22,H*.48);ctx.closePath();ctx.fill();
 // lane marks
 ctx.strokeStyle="#eee";ctx.lineWidth=5;ctx.setLineDash([35,35]);ctx.lineDashOffset=-road;
 ctx.beginPath();ctx.moveTo(cx,H*.5);ctx.lineTo(cx,H);ctx.stroke();ctx.setLineDash([]);
 // scenery
 ctx.fillStyle="#111";for(let i=0;i&lt;9;i++){let y=(i*90+road*.7)%H;ctx.fillRect(40,y,35,20);ctx.fillRect(W-75,y,35,20)}
 // bike
 const bx=cx, by=H*.74;
 ctx.fillStyle="#090909";ctx.beginPath();ctx.arc(bx-38,by+62,30,0,7);ctx.arc(bx+42,by+62,30,0,7);ctx.fill();
 ctx.strokeStyle="#aaa";ctx.lineWidth=10;ctx.beginPath();ctx.moveTo(bx-38,by+62);ctx.lineTo(bx,by+15);ctx.lineTo(bx+42,by+62);ctx.stroke();
 ctx.fillStyle="#b31313";ctx.beginPath();ctx.ellipse(bx,by+30,52,25,0,0,7);ctx.fill();
 ctx.fillStyle="#111";ctx.fillRect(bx+35,by-5,65,8);
 // exhaust glow
 ctx.fillStyle="#ff7a00";ctx.beginPath();ctx.arc(bx+48,by+48,8,0,7);ctx.fill();
 if(started){
   let accel=keys.w||keys.arrowup, brake=keys.s||keys.arrowdown;
   if(accel)speed=Math.min(420,speed+2.5); else speed=Math.max(0,speed-0.7);
   if(brake)speed=Math.max(0,speed-5);
   road+=speed*.12;
   if(keys.a||keys.arrowleft)road-=2;
   if(keys.d||keys.arrowright)road+=2;
   speedEl.textContent=Math.round(speed);
   if(osc)osc.frequency.value=55+speed*.7;
 }
 requestAnimationFrame(draw);
}
draw();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;'''
p=Path("/mnt/data/harley_monster_ride.html")
p.write_text(html,encoding="utf-8")
print(p)
</code></pre>
<p dir="rtl">יש לי את הקודים האלו וזה קודים ליצירת משחק ואני לא זוכר את הסדר ליצירת תיקיה קבצים וכו אולי מישהו זוכר יודע  אשמח לתגובה תודה רבה!</p>
]]></description><link>https://bina.top/topic/263/בירור-עזרה-ביצירת-אפליקציה</link><generator>RSS for Node</generator><lastBuildDate>Sat, 03 Oct 2026 14:06:01 GMT</lastBuildDate><atom:link href="https://bina.top/topic/263.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Sep 2026 06:33:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to בירור | עזרה ביצירת אפליקציה! on Mon, 28 Sep 2026 02:57:37 GMT]]></title><description><![CDATA[<p dir="rtl">פשוט תייצא את זה בתור HTML<br />
ונראה לי שחסרים כמה פריטים במשחק...</p>
<p>
                <button class="btn btn-primary extended-markdown-spoiler" data-bs-toggle="collapse" data-bs-target="#spoiler3101" aria-expanded="false" aria-controls="spoiler3101">
                    Spoiler <i class="fa fa-eye"></i>
                </button>
                </p><div class="collapse" id="spoiler3101">
                    <div class="card card-body spoiler"><p dir="auto">ואתה שוב לא כותב נכון את הכותרת לנושא...</p></div>
                </div><p></p>
]]></description><link>https://bina.top/post/3101</link><guid isPermaLink="true">https://bina.top/post/3101</guid><dc:creator><![CDATA[בינארי חכם]]></dc:creator><pubDate>Mon, 28 Sep 2026 02:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to בירור | עזרה ביצירת אפליקציה! on Fri, 25 Sep 2026 09:17:06 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%98%D7%A8%D7%9E%D7%99%D7%A0%D7%9C" aria-label="Profile: טרמינל">@<bdi>טרמינל</bdi></a> יש תבנית קוד בסרגל כלים, יהיה יותר נח לעזור לך אם תשתמש בו.</p>
]]></description><link>https://bina.top/post/2975</link><guid isPermaLink="true">https://bina.top/post/2975</guid><dc:creator><![CDATA[המלאך]]></dc:creator><pubDate>Fri, 25 Sep 2026 09:17:06 GMT</pubDate></item></channel></rss>