#const CHARSIZE 30
#define WHITE 255,255,255
screen 1
	// celput の為の 画像分割設定
	celdiv ginfo_sel , CHARSIZE , CHARSIZE , 0 , 0
	
	//	画像 0
	color ,,255
	boxf 0 , 0 , CHARSIZE , CHARSIZE
	color WHITE : pos 0,0
	mes "0"
	//	画像 1
	color 255
	boxf CHARSIZE , 0 , CHARSIZE*2 , CHARSIZE
	color WHITE : pos CHARSIZE,0
	mes "1"
	
screen 0
*@
	stick key , 1|2|4|8
	if (key&1) : px--
	if (key&2) : py--
	if (key&4) : px++
	if (key&8) : py++
	if (key&16) : flg^=1
	
	redraw 0
	color WHITE : boxf
	pos px,py : celput 1,flg
	redraw
	title strf("spaceキーで表示状態を切り替えます : 変数 flg の状態 %d",flg)
	await 30
goto *@b