C++(OpenSiv3D)用テトリスライブラリ
Tetris.cpp
とTetris.hpp
を適当な場所に置く
OpenSiv3D(v0.6.2)
# include <Siv3D.hpp> // OpenSiv3D v0.6.1
# include "Tetris.hpp"
void Main()
{
TetriSys::Tetris tetris;
while (System::Update())
{
tetris.update();
tetris.draw();
if(tetris.gameover()) tetris.reset();
}
}