lua

Luaのお勉強#2

というよりも、c++とSTLのお勉強ぽくなってきた。 コード #include <stdio.h> #include <string> #include <sstream> #include <iostream> #include <vector> #include "lua.hpp" int main(void) { using namespace std; vector<string> luaScripts; luaScripts.push_back( "print('hello Lua world');" ); luaScr</string></vector></iostream></sstream></string></stdio.h>…

Luaのお勉強#1

lua

きっかけ Luaに興味を持ったきっかけはこれ。スクリプト言語による効率的ゲーム開発 C/C++へのLua組込み実践 (GAME DEVELOPER)作者: 浜中誠出版社/メーカー: ソフトバンククリエイティブ発売日: 2008/09/27メディア: 大型本購入: 13人 クリック: 322回この商…

Luaに興味が出てきたのでコンパイルしてみる

lua

環境はWindows XP SP3、Visual C++ 2008 Express。 まずは、Luaのソースコードをとってくる http://www.lua.org/ http://www.lua.org/download.html カレントバージョンはLua 5.1.4, released on 22 Aug 2008. 最後のリリースから結構立ってるんだな〜 適当…