Video  Game  Design  and  Programming  Concepts  52  Copyright  Goodheart-Willcox  Co.,  Inc.  May  not  be  reproduced  or  posted  to  a  publicly  accessible  website.  151.  The  text  box  should  be  selected  with  the  sizing  handles  displayed.  If  not,  click  the  text  box  to  select  it.  152.  Drag  the  sizing  handles  to  increase  the  size  of  the  text  box  until  the  word  Congratulations!  fits  across  the  top  and  You  are  a  WINNER!  fits  on  the  second  line,  as  shown  in  Figure  3-15.  Always  leave  room  at  the  bottom.  If  the  bottom  is  too  close  to  the  text,  a  scroll  bar  will  appear  in  the  text  box  when  the  game  is  played.  153.  With  the  text  box  selected,  click  the  Center  button  on  the  Frame  Editor  Toolbar.  This  sets  the  text  to  be  center  aligned.  154.  With  the  text  box  selected,  click  drop-down  arrow  next  to  the  Color  button  on  the  Frame  Editor  Toolbar,  and  click  the  yellow  color  swatch.  This  changes  the  color  of  the  text.  155.  Applying  what  you  have  learned,  insert  a  new  Hi-Score  object.  This  object  is  located  in  the  Games  category  in  the  Create  New  Object  dialog  box.  156.  Move  the  Hi-Score  object  to  the  empty  space  below  the  text  box.  The  Hi-Score  object  is  also  a  text  box  just  like  the  String  object.  157.  Applying  what  you  have  learned,  resize  the  Hi-Score  object  to  match  the  string  you  created  earlier.  Also,  format  the  text  to  match  the  string  at  the  top  of  the  frame,  but  with  a  smaller  text  size.  Adding  Buttons  The  final  frame  should  include  buttons  to  allow  the  player  to  replay  or  quit  the  game.  A  Quit  button  will  be  added  to  end  the  application.  A  Replay  button  will  be  added  to  allow  the  player  to  restart  the  game.  158.  Click  the  Show  Grid  and  Snap  to  Grid  buttons  on  the  Frame  Editor  Toolbar  to  turn  off  the  grid  and  snap.  159.  Click  Insert  New  Object  in  the  pull-down  menu.  In  the  Create  New  Object  dialog  box,  click  Interface  on  the  left,  Button  on  the  right,  and  then  click  the  OK  button.  Color  Show  Grid  Snap  to  Grid  Leave  some  space  below  the  text  Use  the  handles  to  resize  the  text  box  Goodheart-Willcox  Publisher  Figure  3-15.  The  sizing  handles  can  be  used  to  adjust  the  size  of  the  text  box  so  all  of  the  text  is  visible.  Center