×
Create a new article
Write your page title here:
We currently have 277 articles on Waste Of Space Wiki. Type your article name above or create one of the articles listed here!



    Waste Of Space Wiki

    Programming: Difference between revisions

    Content deleted Content added
    The tutorial isn't short enough
    Tags: Mobile edit Mobile web edit
    Removed superlative things
    Tags: Mobile edit Mobile web edit
    Line 135: Line 135:
    ===Modem===
    ===Modem===
    <!--If someone knows anything about the post and get requests stuff, PLEASE put it down below-->
    <!--If someone knows anything about the post and get requests stuff, PLEASE put it down below-->
    The [[Modem]] is an extremely useful object in WoS programming. It allows you to send messages across the entire universe! You could even create a makeshift internet of sorts with it! This being said, it seems like a scary and confusing prospect for new programmers. But the reality is, that it is very simple. There are two main things you need to know to make a messaging system or something like that. First is the SendMessage method. This is very simple. It sends a message across the universe. All you need to put in the method's parameters is the message you with to send, and the [[Modem]] ID you wish to send it on. Here is an example:
    The [[Modem]] allows you to send messages across the entire universe! You could even create a makeshift internet of sorts with it! This being said, it seems like a scary and confusing prospect for new programmers. But the reality is, that it is very simple. There are two main things you need to know to make a messaging system or something like that. First is the SendMessage method. This is very simple. It sends a message across the universe. All you need to put in the method's parameters is the message you with to send, and the [[Modem]] ID you wish to send it on. Here is an example:
    <syntaxhighlight lang="lua" line="1">
    <syntaxhighlight lang="lua" line="1">
    local modem = GetPartFromPort(1, "Modem")--gets the modem object
    local modem = GetPartFromPort(1, "Modem")--gets the modem object
    Line 150: Line 150:
    </syntaxhighlight>
    </syntaxhighlight>
    There you go! You have just made a simple messaging system. You can expand on this by using [[Keyboard|Keyboards]] to send messages, or use screens to make a nice looking UI.
    There you go! You have just made a simple messaging system. You can expand on this by using [[Keyboard|Keyboards]] to send messages, or use screens to make a nice looking UI.

    == Resources ==
    == Resources ==


    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • Jo857294 • 16 hours ago
  • 116.111.185.163 • 13 days ago
  • 116.111.185.163 • 13 days ago
  • 116.111.185.163 • 13 days ago
  • Cookies help us deliver our services. By using our services, you agree to our use of cookies.