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:
- Install Notepad++.
- On MakeCode Arcade switch to Python, and copy everything.
- Open Notepad++.
- Paste your project’s Python code in Notepad++, and save the file as a Python script (.py).
- Locate the file, right-click it, and select ‘Properties’.
- Look at the file size.
On MacOS: - Install CodeRunner from Mac App Store.
- On MakeCode Arcade switch to Python, and copy everything.
- Open CodeRunner.
- Paste your project’s Python code in CodeRunner, and save the file as a Python script (.py).
- Locate the file, right-click it, and select ‘Properties’.
- Look at the file size.
On Linux (Ubuntu): - Install Mu Editor from Ubuntu Software/Snap Store.
- On MakeCode Arcade switch to Python, and copy everything.
- Open Mu and delete row 1. (//insert your code here)
- Paste your project’s Python code in Mu, and save the file.
- Locate the file, right-click it, and select ‘Properties’.
- Look at the file size.
Why Python? TypeScript (JavaScript) is a lot more stable…