Implements calling Lua.

This commit is contained in:
2021-08-25 12:27:39 +09:00
parent 1518e429b4
commit 213902021c
46 changed files with 2233 additions and 245 deletions

10
src/PlayScene.cc Normal file
View File

@@ -0,0 +1,10 @@
#include "PlayScene.h"
gj::PlayScene::PlayScene(gj::PlayScene::Param&& p) :
alloc_(p.alloc), logger_(p.logger), w_(p.w), h_(p.h),
clock_(p.clock) {
lua_ = alloc_->MakeUniq<Lua>(alloc_, Lua::FactoryMap(), "res/score/"+p.score+".lua");
logger_->Print(L"PlayScene init");
}