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.

253 lines
10KB

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