You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 10 месеци
пре 3 месеци
пре 10 месеци
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <link rel="stylesheet" href="../../style.css">
  6. </head>
  7. <body>
  8. <script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
  9. <div id="header">
  10. <div>
  11. <strong id="title">Open Game Studio</strong>
  12. <div id="lang">
  13. <a href="../../en/news/bus-01.html">EN</a>
  14. <a href="../../ru/news/bus-01.html">RU</a>
  15. </div>
  16. </div>
  17. <div class="header2">
  18. <div class="menu">
  19. <a href="../../en/news/index.html">News</a>
  20. <a href="../../en/game/index.html">Games</a>
  21. <a href="../../en/tool/index.html">Tools</a>
  22. <a href="../../en/page/about.html">About</a>
  23. </div>
  24. <a class="discord" href="https://t.me/Tail_and_shadow">
  25. <img src="../../images/telegram.png"></img>
  26. </a>
  27. <div class="clear"></div>
  28. </div>
  29. </div>
  30. <h3 class="left_item_title">In the news...</h3>
  31. <center>
  32. <div class="news_item">
  33. <h2 class="news_item_title">
  34. <a href="bus-01.html">Bus-01</a>
  35. </h2>
  36. <p class="news_item_date">
  37. 2024-01-04 00:00
  38. </p>
  39. <div class="news_item_contents">
  40. <h1 id="onthewaytoportablecode">On the way to portable code</h1>
  41. <p>To gain code portability, we have to divide whole code into two parts:</p>
  42. <ul>
  43. <li>repeatable: logic</li>
  44. <li>unique: environment</li>
  45. </ul>
  46. <p>To simplify portable code construction, we want to be able to place any code -
  47. both repeatable and unique - without hierarchy requirements of operating
  48. systems. Bus design pattern seems to be the best option. The Bus makes all
  49. code chunks equal because they interact through the Bus only.</p>
  50. <h1 id="bus01">Bus-01</h1>
  51. <p>Currently we have:</p>
  52. <iframe width="560" height="315" src="https://www.youtube.com/embed/XAlIlG9tVL4?si=5HYRDkNuYE0zeoyo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
  53. <p>Module structure:</p>
  54. <p><img src="../../images/2024_bus-01_yml.jpg" alt="Module's YML" /></p>
  55. <p><yml></p>
  56. <p>Part of the visual representation:</p>
  57. <p><img src="../../images/2024_bus-01_v.jpg" alt="Visual representation" /></p>
  58. <p>Main functionality:</p>
  59. <ol>
  60. <li>Format input to leave only digits</li>
  61. <li>Activate the button when at least 3 digits are present</li>
  62. <li>Simulate loading when pressing the button</li>
  63. </ol>
  64. <p>This was an example of a single instance of an entity.</p>
  65. <p>Next we're going to deal with multiple instances of an entity.</p>
  66. </div>
  67. </div>
  68. <div id="disqus_thread"></div>
  69. <script>
  70. var disqus_config = function () {
  71. this.page.url = "https://opengamestudio.org/en/news/bus-01.html";
  72. this.page.identifier = "bus-01.html";
  73. };
  74. (function() { // DON'T EDIT BELOW THIS LINE
  75. var d = document, s = d.createElement('script');
  76. s.src = 'https://opengamestudio.disqus.com/embed.js';
  77. s.setAttribute('data-timestamp', +new Date());
  78. (d.head || d.body).appendChild(s);
  79. })();
  80. </script>
  81. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  82. <div id="footer">
  83. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  84. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  85. </div>
  86. </center>
  87. </body>
  88. </html>