Estimating code size

I’m trying to load a game on to my meowbit, but the code is larger than the memory size of the device. How do I monitor my code size while I’m coding in MakeCode Arcade?

2 Likes

On Windows:

  1. Install Notepad++.
  2. On MakeCode Arcade switch to Python, and copy everything.
  3. Open Notepad++.
  4. Paste your project’s Python code in Notepad++, and save the file as a Python script (.py).
  5. Locate the file, right-click it, and select ‘Properties’.
  6. Look at the file size.
    On MacOS:
  7. Install CodeRunner from Mac App Store.
  8. On MakeCode Arcade switch to Python, and copy everything.
  9. Open CodeRunner.
  10. Paste your project’s Python code in CodeRunner, and save the file as a Python script (.py).
  11. Locate the file, right-click it, and select ‘Properties’.
  12. Look at the file size.
    On Linux (Ubuntu):
  13. Install Mu Editor from Ubuntu Software/Snap Store.
  14. On MakeCode Arcade switch to Python, and copy everything.
  15. Open Mu and delete row 1. (//insert your code here)
  16. Paste your project’s Python code in Mu, and save the file.
  17. Locate the file, right-click it, and select ‘Properties’.
  18. Look at the file size.

Why Python? TypeScript (JavaScript) is a lot more stable…