Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

257 lines
11KB

  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/index.html">EN</a>
  14. <a href="../../ru/news/index.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. <center>
  31. <h1>News</h1>
  32. <div class="news_item">
  33. <h2 class="news_item_title">
  34. <a href="ht-scenes.html">Switching scenes</a>
  35. </h2>
  36. <p class="news_item_date">
  37. 2024-09-06 00:00
  38. </p>
  39. <div class="news_item_contents">
  40. <h1 id="august">August</h1>
  41. <video controls width="700">
  42. <source src="../../images/2024_scenes.mp4" type="video/mp4"/>
  43. </video>
  44. <p>In August I implemented scene switching, which allowed me to do the following:</p>
  45. <ul>
  46. <li>pressing "Start the game" button in the splash screen takes the player to a level with three floors</li>
  47. <li>selecting a door takes the player to another floor</li>
  48. <li>selecting a TV set focuses the player on the TV set with a remote control</li>
  49. <li>switching TV channels results in different images being shown</li>
  50. </ul>
  51. <p>Thus, scenes are good both for focusing on items and moving the player around.. . .</p>
  52. </div>
  53. <div class="news_item_more">
  54. <a href="ht-scenes.html">Continue reading</a>
  55. </div>
  56. </div>
  57. <div class="news_item">
  58. <h2 class="news_item_title">
  59. <a href="rethinking.html">Rethinking</a>
  60. </h2>
  61. <p class="news_item_date">
  62. 2024-08-12 00:00
  63. </p>
  64. <div class="news_item_contents">
  65. <p><img src="../../images/2024_rethinking.jpg" alt="Game" /></p>
  66. <p>When July started my initial plan was to make the instrument support Python to
  67. JavaScript code translation. However, this did not happen because tasks with
  68. higher priority emerged.</p>
  69. <p>Which task is more important than develpment of the instrument?
  70. Development of a game, of course! Now, let's go back to the beginning of
  71. July 2024…</p>
  72. <h1 id="gamejam">Gamejam</h1>
  73. <p><a href="https://dtf.ru/games/2783053-nachni-igru-ocenka-videorolikov">"Start the game"</a> 3-day gamejam finished in the beginning of July 2024.
  74. I participated in the jam to validate the instrument under development and. . .</p>
  75. </div>
  76. <div class="news_item_more">
  77. <a href="rethinking.html">Continue reading</a>
  78. </div>
  79. </div>
  80. <div class="news_item">
  81. <h2 class="news_item_title">
  82. <a href="memory-gui.html">"Memory" GUI</a>
  83. </h2>
  84. <p class="news_item_date">
  85. 2024-07-04 00:00
  86. </p>
  87. <div class="news_item_contents">
  88. <h1 id="memorygui">"Memory" GUI</h1>
  89. <p>In June I implemented GUI for "Memory" game in Python with the help of
  90. <a href="https://arcade.academy">Python Arcade</a>.</p>
  91. <p>While searching for the most convenient tool to create resources (assets), I found
  92. notebooks lined with graph paper to work the best:</p>
  93. <p><img src="../../images/2024_memory-gui_notebook.jpg" alt="Texture of a notebook" /></p>
  94. <p>To see the portable code architecture in real life, I participated in the 3-day long
  95. gamejam of <a href="https://dtf.ru/games/2783053-nachni-igru-ocenka-videorolikov">"Start the game"</a>. "Memory" game was used with a customized look to satisfy jam requirements.</p>
  96. <p>Here's how the customized version looks like (<a href="https://ims.cr5.space/app/p/4FvJS4fk/Вредные-продукты/about">Windows64 build</a>):. . .</p>
  97. </div>
  98. <div class="news_item_more">
  99. <a href="memory-gui.html">Continue reading</a>
  100. </div>
  101. </div>
  102. <div class="news_item">
  103. <h2 class="news_item_title">
  104. <a href="memory-text-ui.html">"Memory" text UI</a>
  105. </h2>
  106. <p class="news_item_date">
  107. 2024-06-14 00:00
  108. </p>
  109. <div class="news_item_contents">
  110. <h1 id="memorytextui">"Memory" text UI</h1>
  111. <p>In May I implemented text UI for "Memory" game in Python. And converted it to C++
  112. by the instrument under development.</p>
  113. <p>Game logic cycle implementation lead to the creation of a controller that manages
  114. context. Creating the controller in Python was straightforward. C++ version took
  115. some time, because the controller needs <a href="https://en.cppreference.com/w/cpp/utility/any">std::any</a>, which is part of C++17.
  116. The instrument under development is limited to C++11 in order to support OpenWrt.</p>
  117. <p>Here's how much code I wrote (in lines):. . .</p>
  118. </div>
  119. <div class="news_item_more">
  120. <a href="memory-text-ui.html">Continue reading</a>
  121. </div>
  122. </div>
  123. <div class="news_item">
  124. <h2 class="news_item_title">
  125. <a href="memory-logic.html">"Memory" game logic</a>
  126. </h2>
  127. <p class="news_item_date">
  128. 2024-05-03 00:00
  129. </p>
  130. <div class="news_item_contents">
  131. <h1 id="memorygamelogic">"Memory" game logic</h1>
  132. <p>In April I implemented "Memory" game logic in Python as limited language model and successfully converted the code to C++ by the instrument under development.</p>
  133. <p>Limited language model assumes the following architecture of two parts:</p>
  134. <ol>
  135. <li>state context</li>
  136. <li>pure functions without side effects working only with the context</li>
  137. </ol>
  138. <p>Game logic state context in Python currently looks like this (<a href="https://git.opengamestudio.org/kornerr/research-portable-memory/src/commit/6fcd542daa6242c8c23dddb88d04cda74a730328/v3/memory_Context.h">C++</a>):</p>
  139. <p>```python
  140. class memory_Context:
  141. def <strong>init</strong>(self):
  142. self.hiddenItems = []. . .</p>
  143. </div>
  144. <div class="news_item_more">
  145. <a href="memory-logic.html">Continue reading</a>
  146. </div>
  147. </div>
  148. <div class="news_item">
  149. <h2 class="news_item_title">
  150. <a href="llm-first-py-cxx.html">The first example of a portable code</a>
  151. </h2>
  152. <p class="news_item_date">
  153. 2024-04-11 00:00
  154. </p>
  155. <div class="news_item_contents">
  156. <h1 id="supportedplatforms">Supported platforms</h1>
  157. <p>To verify code portability, I selected the following platforms and languages:</p>
  158. <ul>
  159. <li>C++: Linux, macOS, OpenWrt, Windows</li>
  160. <li>JavaScript: Chrome, Firefox, Safari</li>
  161. <li>Kotlin: Android</li>
  162. <li>Python: Linux, macOS, Windows</li>
  163. <li>Swift: iOS, macOS</li>
  164. </ul>
  165. <p>I created a simple "Hello World" example for each language to understand the basic requirements of each platform.</p>
  166. <p>By the way, OpenWrt turned out the most complex platform to create "Hello World" for, because my TP-Link TL-MR3020 r1 router is considered obsolete since 2018. I had to use the old 17.01.7 firmware, which took about three weeks.. . .</p>
  167. </div>
  168. <div class="news_item_more">
  169. <a href="llm-first-py-cxx.html">Continue reading</a>
  170. </div>
  171. </div>
  172. <div class="news_item">
  173. <h2 class="news_item_title">
  174. <a href="bus-iOS.html">Шина-iOS</a>
  175. </h2>
  176. <p class="news_item_date">
  177. 2024-03-10 00:00
  178. </p>
  179. <div class="news_item_contents">
  180. <h1 id="thefirstbuspatternimplementationforios">The first Bus pattern implementation for iOS</h1>
  181. <p>I spent January and February making Bus pattern implementation in Swift for iOS.
  182. The end result looks nice to me.</p>
  183. <p>I have also done load testing. Turns out, the Bus is 92 times more expensive
  184. than a function call. Nonetheless, this doesn't mean the Bus is bad. On the
  185. contrary, the numbers highlight the Bus should be used in architectural
  186. glue code where it can save up to 30% of code</p>
  187. <p>This example demonstrates several states rendered through a single instance:. . .</p>
  188. </div>
  189. <div class="news_item_more">
  190. <a href="bus-iOS.html">Continue reading</a>
  191. </div>
  192. </div>
  193. <div class="news_item">
  194. <h2 class="news_item_title">
  195. <a href="bus-01.html">Bus-01</a>
  196. </h2>
  197. <p class="news_item_date">
  198. 2024-01-04 00:00
  199. </p>
  200. <div class="news_item_contents">
  201. <h1 id="onthewaytoportablecode">On the way to portable code</h1>
  202. <p>To gain code portability, we have to divide whole code into two parts:</p>
  203. <ul>
  204. <li>repeatable: logic</li>
  205. <li>unique: environment</li>
  206. </ul>
  207. <p>To simplify portable code construction, we want to be able to place any code -
  208. both repeatable and unique - without hierarchy requirements of operating
  209. systems. Bus design pattern seems to be the best option. The Bus makes all
  210. code chunks equal because they interact through the Bus only.</p>
  211. <h1 id="bus01">Bus-01</h1>
  212. <p>Currently we have:</p>
  213. <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>
  214. <p>. . .</p>
  215. </div>
  216. <div class="news_item_more">
  217. <a href="bus-01.html">Continue reading</a>
  218. </div>
  219. </div>
  220. <div class="news_item">
  221. <h2 class="news_item_title">
  222. <a href="rpg-ends.html">Revised project goals</a>
  223. </h2>
  224. <p class="news_item_date">
  225. 2023-12-25 00:00
  226. </p>
  227. <div class="news_item_contents">
  228. <h1 id="thedreamofanopensourcerpgisover">The dream of an open source RPG is over</h1>
  229. <p>In 2005 the Opensource Game Studio project started
  230. under the name of the <a href="https://www.linuxquestions.org/questions/general-10/the-creation-of-the-best-rpg-355858/">Opensource RPG</a>, because we wanted
  231. to create "the first competitive open free game".
  232. In 2011 right after releasing OGS Mahjong 0.7 we have already
  233. had the numbers that it would take us <a href="https://gamedev.ru/community/ogs/articles/?id=6383">540 years to create RPG</a>.</p>
  234. <p>In 2011 we had a dream that we as a team would grow, which could decrease
  235. 540 years to someting reasonable. However today in the end of 2023 it's clear
  236. <strong>we are unable to create RPG</strong>.. . .</p>
  237. </div>
  238. <div class="news_item_more">
  239. <a href="rpg-ends.html">Continue reading</a>
  240. </div>
  241. </div>
  242. <p class="pagination_title">Page 1 of 8</p>
  243. <p>
  244. <a href="index2.html">Older »</a>
  245. </p>
  246. <div id="footer">
  247. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  248. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  249. </div>
  250. </center>
  251. </body>
  252. </html>