updated the site

This commit is contained in:
2017-11-21 21:09:47 +00:00
parent 0194b240db
commit 51b4aa723e
28 changed files with 278 additions and 183 deletions

View File

@@ -50,10 +50,10 @@
title="Permalink to Scripting research">Scripting research</a></h3>
</header>
<h6 class="subheader" title="2017-08-16T00:00:00+03:00">Ср 16 Август 2017
<h6 class="subheader" title="2017-08-16T00:00:00+03:00">Wed 16 August 2017
<a class="button secondary small translation-button" href="http://opengamestudio.org/scripting-research-ru.html">ru</a>
</h6> <p><img alt="Scripting research" src="http://opengamestudio.org/2017-08-scripting-research.png" /></p>
</h6> <p><img alt="Scripting research" src="http://opengamestudio.org/2017-08-scripting-research.png"></p>
<p>This article describes scripting research in July 2017.</p>
<p><strong>Our first goal of using a scripting language was to have a platform-independent code that runs unchanged on every supported platform.</strong></p>
<p>OGS Editor 0.10 supports Python for such a code thanks to <a href="http://swig.org/">SWIG</a>. SWIG provides a way to wrap almost any C/C++ code and use it in dozens of languages like Python, Ruby, Lua, Java, C#, etc.. SWIG really helped us taste the beauty of platform-independent code. However, SWIG only works one way: from C/C++ to a target language. This means the main application must be in the target language, and C/C++ code can only be used as a library.</p>
@@ -119,11 +119,12 @@ Next, we tried to inherit a class in Lua and override the class methods. We fail
<h5 class="sidebar-title">Ads</h5>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ogs -->
<!-- ogs2 -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:240px"
style="display:block"
data-ad-client="ca-pub-4473792248813084"
data-ad-slot="4132845695"></ins>
data-ad-slot="9024247127"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>