Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 1.39 KB

README.md

File metadata and controls

15 lines (14 loc) · 1.39 KB

ScratchExtensions-SimpleCloud

How to use SimpleCloud

SimpleCLoud is a Scratch extension. You can download it first.

Cloud_Server.js

  • 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

Simple_Cloud.js

  • 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.

If you have any questions, send to this email:C_wz__@outlook.com .