بتل کد Battle Codeدارد باز می‌شود…

Step 1: The Background چالش 1 از جلسه‌ی 4، آسان

قدم اول کارت بازی: پس‌زمینه. عکس "night" را روی کل صحنه بکش: از (0, 0)، با پهنای ۳۶۰ و بلندی ۴۸۰.

<script>
  // My game plan
  // Hero:     a purple hero at the bottom of the stage
  // Goal:     catch the falling stars
  // Danger:   meteors (don't let them touch you!)
  // Controls: left and right arrows, touch buttons on a phone
  const ctx = salam.canvas(360, 480);

</script>

راهنما و جواب این چالش · برگشت به درس جلسه‌ی 4: پروژه: کارت بازی من · چالش بعدی: Step 2: The Name

بیشتر بخوان: پایتون چیست؟ تاریخچه، کاربردها و راه شروع