This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
glyphs-juke/src/Game.cc
2021-08-25 12:27:39 +09:00

19 lines
479 B
C++

#include "Game.h"
#include "PlayScene.h"
gj::Game::Game(gj::Game::Param&& p) :
alloc_(p.alloc),
clock_(p.clock),
logger_(p.h),
w_(p.w), h_(p.h),
frame_(kReserveDrawable, kReserveWritable) {
gj::PlayScene::Param param;
param.alloc = alloc_;
param.clock = &clock_;
param.logger = &logger_;
param.w = w_;
param.h = h_;
param.score = "test"; /* TODO test */
scene_ = alloc_->MakeUniq<gj::iScene, gj::PlayScene>(std::move(param));
}