SimpleCLoud is a Scratch extension. You can download it first.
- First, Cloud_Server.js is the server of the extension. It is used Node.js. So you must install Node.js or use a cloud editor as server.
- Second, initialize Cloud_Server.js. Because the server uses the ws packet in the Node.js ,so you must install the ws moudle. You should open your Cmd and enter the following command:npm install ws.
- Third, run the server. You can enter the command:node Cloud_Server.js to run the server.
- Finally, remember your server's port
- First, Simple_Cloud.js is the extension of Scratch. You can use Turbowarp editor to run the extension. So you need add the Simple_Cloud.js to your Scratch Project.
- Second, use the "连接到服务器( )" function to connect your server's port. If the "是否连接到服务器" is true, you connect to your server successfully.
- Third, use the "将用户名设置为( )" function to set your username. Noitce, it's a important step before your use the extension.
- Finally, you can use the extension simply to creat your online games.