NAME
layout — fit the square to the stage and put the creatures in place
SYNOPSIS
layout()
DESCRIPTION
Works out the size of a square cell from the stage, draws the g × g checkerboard when its size has changed, and places both creatures: on their squares when the square is shown, or at a quarter and three quarters of the open stage when it is not. Called on every resize.
RETURN VALUE
Nothing.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
