����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
sb_web
/
web
/
web
/
web
/
web
/
sb_web
/
b1536
/
lycwid.com
/
cawfyi
/
js
/
[
Home
]
File: canvas.js
//////////////////////////////////////////////////////////// // CANVAS //////////////////////////////////////////////////////////// var stage var canvasW=0; var canvasH=0; /*! * * START GAME CANVAS - This is the function that runs to setup game canvas * */ function initGameCanvas(w,h){ var gameCanvas = document.getElementById("gameCanvas"); gameCanvas.width = w; gameCanvas.height = h; canvasW=w; canvasH=h; stage = new createjs.Stage("gameCanvas"); createjs.Touch.enable(stage); stage.enableMouseOver(20); stage.mouseMoveOutside = true; createjs.Ticker.setFPS(60); createjs.Ticker.addEventListener("tick", tick); } var guide = false; var canvasContainer, mainContainer, gameContainer, instructionContainer, mapContainer, objectsContainer, resultContainer, scoreContainer, moveContainer, confirmContainer; var guideline, bg, logo, buttonOk, result, shadowResult, buttonReplay, buttonFacebook, buttonTwitter, buttonWhatsapp, buttonFullscreen, buttonSoundOn, buttonSoundOff; $.lights = {}; $.lightsGlow = {}; $.buttons = {}; $.buttonsP = {}; $.prizes = {}; $.audience = {}; $.call = {}; $.host = {}; /*! * * BUILD GAME CANVAS ASSERTS - This is the function that runs to build game canvas asserts * */ function buildGameCanvas(){ canvasContainer = new createjs.Container(); mainContainer = new createjs.Container(); rulesContainer = new createjs.Container(); categoryContainer = new createjs.Container(); lightsContainer = new createjs.Container(); hostContainer = new createjs.Container(); gameContainer = new createjs.Container(); speechContainer = new createjs.Container(); questionContainer = new createjs.Container(); questionLContainer = new createjs.Container(); questionPContainer = new createjs.Container(); questionActionMoveContainer = new createjs.Container(); questionActionContainer = new createjs.Container(); prizeContainer = new createjs.Container(); callContainer = new createjs.Container(); audienceContainer = new createjs.Container(); actionContainer = new createjs.Container(); resultContainer = new createjs.Container(); confirmContainer = new createjs.Container(); bg = new createjs.Bitmap(loader.getResult('background')); bgP = new createjs.Bitmap(loader.getResult('backgroundP')); logo = new createjs.Bitmap(loader.getResult('logo')); centerReg(logo); var _frameW = 487; var _frameH = 261; var _frame = {"regX":_frameW/2, "regY":_frameH/2, "count":2, "width":_frameW, "height":_frameH}; var _animations = { animate: { frames: [0,1], speed: .2 } }; logoLightData = new createjs.SpriteSheet({ "images": [loader.getResult('logoLight').src], "frames": _frame, "animations": _animations }); logoLight = new createjs.Sprite(logoLightData, "animate"); logoLight.framerate = 20; buttonStart = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonStart); startTxt = new createjs.Text(); startTxt.font = "35px lt_reponsebold"; startTxt.color = '#fff'; startTxt.textAlign = "center"; startTxt.textBaseline='alphabetic'; startTxt.text = textDisplay.play; buttonRules = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonRules); rulesTxt = new createjs.Text(); rulesTxt.font = "35px lt_reponsebold"; rulesTxt.color = '#fff'; rulesTxt.textAlign = "center"; rulesTxt.textBaseline='alphabetic'; rulesTxt.text = textDisplay.rules; //rules itemRules = new createjs.Bitmap(loader.getResult('itemRules')); itemRulesP = new createjs.Bitmap(loader.getResult('itemRulesP')); buttonBack = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonBack); backTxt = new createjs.Text(); backTxt.font = "35px lt_reponsebold"; backTxt.color = '#fff'; backTxt.textAlign = "center"; backTxt.textBaseline='alphabetic'; backTxt.text = textDisplay.back; rulesTitleTxt = new createjs.Text(); rulesTitleTxt.font = "50px lt_reponsebold"; rulesTitleTxt.color = "#fff"; rulesTitleTxt.textAlign = "center"; rulesTitleTxt.textBaseline='alphabetic'; rulesTitleTxt.text = textDisplay.rulesTitle; rulesDescTxt = new createjs.Text(); rulesDescTxt.font = "20px lt_reponsebold"; rulesDescTxt.color = "#fff"; rulesDescTxt.textAlign = "center"; rulesDescTxt.textBaseline='alphabetic'; rulesDescTxt.text = textDisplay.rulesDesc; //lights for(var n = 0; n<lightsPos_arr.length; n++){ $.lights[n] = new createjs.Container(); var newLight = new createjs.Bitmap(loader.getResult('itemLight')); centerReg(newLight); $.lightsGlow[n] = new createjs.Bitmap(loader.getResult('itemLightGlow')); $.lightsGlow[n].regX = 100; $.lightsGlow[n].regY = 10; $.lights[n].addChild(newLight, $.lightsGlow[n]); $.lights[n].x = lightsPos_arr[n].x; $.lights[n].y = lightsPos_arr[n].y; $.lights[n].side = true; lightsContainer.addChild($.lights[n]); } //category catTitleTxt = new createjs.Text(); catTitleTxt.font = "50px lt_reponsebold"; catTitleTxt.color = "#fff"; catTitleTxt.textAlign = "center"; catTitleTxt.textBaseline='alphabetic'; catTitleTxt.text = textDisplay.category; buttonArrowL = new createjs.Bitmap(loader.getResult('itemArrow')); centerReg(buttonArrowL); buttonArrowR = new createjs.Bitmap(loader.getResult('itemArrow')); centerReg(buttonArrowR); buttonArrowR.scaleX = -1; itemBgAnswer = new createjs.Bitmap(loader.getResult('itemBgAnswer')); centerReg(itemBgAnswer); buttonSelect = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonSelect); selectTxt = new createjs.Text(); selectTxt.font = "35px lt_reponsebold"; selectTxt.color = '#fff'; selectTxt.textAlign = "center"; selectTxt.textBaseline='alphabetic'; selectTxt.text = textDisplay.categorySelect; itemCategory = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(itemCategory); categoryTxt = new createjs.Text(); categoryTxt.font = "35px lt_reponsebold"; categoryTxt.color = '#fff'; categoryTxt.textAlign = "center"; categoryTxt.textBaseline='alphabetic'; categoryTxt.text = textDisplay.categorySelect; //games for(var n = 0; n<host_arr.length; n++){ $.host[n] = new createjs.Container(); var newHost = new createjs.Bitmap(loader.getResult('itemHost'+n)); var _frameW = host_arr[n].eye.property.width; var _frameH = host_arr[n].eye.property.height; var _frame = {"regX":_frameW/2, "regY":_frameH/2, "count":2, "width":_frameW, "height":_frameH}; var _animations = { eye: { frames: [0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0], speed: .2 } }; eyeData = new createjs.SpriteSheet({ "images": [loader.getResult('itemHostEye'+n).src], "frames": _frame, "animations": _animations }); var newHostEye = new createjs.Sprite(eyeData, "eye"); newHostEye.framerate = 20; newHostEye.x = host_arr[n].eye.property.x; newHostEye.y = host_arr[n].eye.property.y; var _frameW = host_arr[n].mouth.property.width; var _frameH = host_arr[n].mouth.property.height; var _frame = {"regX":_frameW/2, "regY":_frameH/2, "count":3, "width":_frameW, "height":_frameH}; var _animations = { stop: [0], talk: { frames: [1,2,1,1,2,2], next:'stop', speed: .2 } }; mouthData = new createjs.SpriteSheet({ "images": [loader.getResult('itemHostMouth'+n).src], "frames": _frame, "animations": _animations }); $.host['mouth'+n] = new createjs.Sprite(mouthData, "stop"); $.host['mouth'+n].framerate = 20; $.host['mouth'+n].x = host_arr[n].mouth.property.x; $.host['mouth'+n].y = host_arr[n].mouth.property.y; $.host[n].addChild(newHost, newHostEye, $.host['mouth'+n]); $.host[n].x = host_arr[n].offset.x; $.host[n].y = host_arr[n].offset.y; hostContainer.addChild($.host[n]); } itemSpeech = new createjs.Bitmap(loader.getResult('itemSpeech')); centerReg(itemSpeech); itemSpeech.x = 0; itemSpeech.y = 0; speechText = new createjs.Text(); speechText.font = gameSettings.speechFontSize+"px lt_reponsebold"; speechText.lineHeight = gameSettings.speechFontSize/100 * 115; speechText.color = gameSettings.speechColour; speechText.textAlign = "center"; speechText.textBaseline='top'; speechText.lineWidth=230; speechText.text = ''; speechText.x = 0; speechText.y = 0; speechContainer.addChild(itemSpeech, speechText); //question var buttonPos = [ {x:(landscapeSize.w/2) - 220, y:landscapeSize.h/100 * 71}, {x:(landscapeSize.w/2) + 220, y:landscapeSize.h/100 * 71}, {x:(landscapeSize.w/2) - 220, y:landscapeSize.h/100 * 82}, {x:(landscapeSize.w/2) + 220, y:landscapeSize.h/100 * 82}, ]; var buttonPosP = [ {x:(portraitSize.w/2) - 180, y:portraitSize.h/100 * 77}, {x:(portraitSize.w/2) + 180, y:portraitSize.h/100 * 77}, {x:(portraitSize.w/2) - 180, y:portraitSize.h/100 * 86}, {x:(portraitSize.w/2) + 180, y:portraitSize.h/100 * 86}, ]; for(var n = 0; n<buttonPos.length; n++){ $.buttons[n] = new createjs.Bitmap(loader.getResult('itemBgAnswer')); centerReg($.buttons[n]); $.buttons[n].x = buttonPos[n].x; $.buttons[n].y = buttonPos[n].y; $.buttons['select'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerSelect')); centerReg($.buttons['select'+n]); $.buttons['select'+n].x = buttonPos[n].x; $.buttons['select'+n].y = buttonPos[n].y; $.buttons['correct'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerCorrect')); centerReg($.buttons['correct'+n]); $.buttons['correct'+n].x = buttonPos[n].x; $.buttons['correct'+n].y = buttonPos[n].y; $.buttons['wrong'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerWrong')); centerReg($.buttons['wrong'+n]); $.buttons['wrong'+n].x = buttonPos[n].x; $.buttons['wrong'+n].y = buttonPos[n].y; $.buttons['text'+n] = new createjs.Text(); $.buttons['text'+n].textAlign = gameSettings.answerAlign; $.buttons['text'+n].textBaseline='alphabetic'; if(gameSettings.answerAlign == 'left'){ $.buttons['text'+n].x = buttonPos[n].x - 145; }else if(gameSettings.answerAlign == 'right'){ $.buttons['text'+n].x = buttonPos[n].x + 145; }else{ $.buttons['text'+n].x = buttonPos[n].x; } $.buttons['text'+n].y = $.buttons['text'+n].oriY = buttonPos[n].y; questionLContainer.addChild($.buttons[n], $.buttons['select'+n], $.buttons['correct'+n], $.buttons['wrong'+n], $.buttons['text'+n]); $.buttonsP[n] = new createjs.Bitmap(loader.getResult('itemBgAnswerP')); centerReg($.buttonsP[n]); $.buttonsP[n].x = buttonPosP[n].x; $.buttonsP[n].y = buttonPosP[n].y; $.buttonsP['select'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerSelectP')); centerReg($.buttonsP['select'+n]); $.buttonsP['select'+n].x = buttonPosP[n].x; $.buttonsP['select'+n].y = buttonPosP[n].y; $.buttonsP['correct'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerCorrectP')); centerReg($.buttonsP['correct'+n]); $.buttonsP['correct'+n].x = buttonPosP[n].x; $.buttonsP['correct'+n].y = buttonPosP[n].y; $.buttonsP['wrong'+n] = new createjs.Bitmap(loader.getResult('itemBgAnswerWrongP')); centerReg($.buttonsP['wrong'+n]); $.buttonsP['wrong'+n].x = buttonPosP[n].x; $.buttonsP['wrong'+n].y = buttonPosP[n].y; $.buttonsP['text'+n] = new createjs.Text(); $.buttonsP['text'+n].textAlign = gameSettings.answerAlign; $.buttonsP['text'+n].textBaseline='alphabetic'; if(gameSettings.answerAlign == 'left'){ $.buttonsP['text'+n].x = buttonPosP[n].x - 100; }else if(gameSettings.answerAlign == 'right'){ $.buttonsP['text'+n].x = buttonPosP[n].x + 100; }else{ $.buttonsP['text'+n].x = buttonPosP[n].x; } $.buttonsP['text'+n].x = buttonPosP[n].x - 100; $.buttonsP['text'+n].y = $.buttonsP['text'+n].oriY = buttonPosP[n].y; questionPContainer.addChild($.buttonsP[n], $.buttonsP['select'+n], $.buttonsP['correct'+n], $.buttonsP['wrong'+n], $.buttonsP['text'+n]); } item_bg_question = new createjs.Bitmap(loader.getResult('itemBgQuestion')); centerReg(item_bg_question); item_bg_question_p = new createjs.Bitmap(loader.getResult('itemBgQuestionP')); centerReg(item_bg_question_p); questionTxt = new createjs.Text(); questionTxt.textAlign = gameSettings.questionAlign; questionTxt.textBaseline='alphabetic'; questionTxtP = new createjs.Text(); questionTxtP.textAlign = gameSettings.questionAlign; questionTxtP.textBaseline='alphabetic'; item_bg_question.x = landscapeSize.w/2; item_bg_question.y = landscapeSize.h/100 * 58; item_bg_question_p.x = portraitSize.w/2; item_bg_question_p.y = portraitSize.h/100 * 66; if(gameSettings.questionAlign == 'left'){ questionTxt.x = item_bg_question.x - 345; questionTxtP.x = item_bg_question_p.x - 260; }else if(gameSettings.questionAlign == 'right'){ questionTxt.x = item_bg_question.x + 345; questionTxtP.x = item_bg_question_p.x + 260; }else{ questionTxt.x = item_bg_question.x; questionTxtP.x = item_bg_question_p.x; } questionTxt.y = questionTxt.oriY = item_bg_question.y; questionTxt.lineWidth = 700; questionTxtP.y = questionTxtP.oriY = item_bg_question_p.y; questionTxtP.lineWidth = 530; itemBgConfirm = new createjs.Bitmap(loader.getResult('itemBgConfirm')); centerReg(itemBgConfirm); itemBgCancel = new createjs.Bitmap(loader.getResult('itemBgCancel')); centerReg(itemBgCancel); confirmTxt = new createjs.Text(); confirmTxt.font = "23px lt_reponsebold"; confirmTxt.color = "#fff"; confirmTxt.textAlign = "center"; confirmTxt.textBaseline='alphabetic'; confirmTxt.text = textDisplay.confirm; cancelTxt = new createjs.Text(); cancelTxt.font = "23px lt_reponsebold"; cancelTxt.color = "#fff"; cancelTxt.textAlign = "center"; cancelTxt.textBaseline='alphabetic'; cancelTxt.text = textDisplay.cancel; //timer itemBgTimer = new createjs.Bitmap(loader.getResult('itemBgTimer')); centerReg(itemBgTimer); timerTxt = new createjs.Text(); timerTxt.font = gameSettings.timerFontSize + "px lt_reponsebold"; timerTxt.color = gameSettings.timerColour; timerTxt.textAlign = "center"; timerTxt.textBaseline='alphabetic'; timerTxt.text = 30; itemBgTimerP = new createjs.Bitmap(loader.getResult('itemBgTimer')); centerReg(itemBgTimerP); timerTxtP = new createjs.Text(); timerTxtP.font = gameSettings.timerFontSize + "px lt_reponsebold"; timerTxtP.color = gameSettings.timerColour; timerTxtP.textAlign = "center"; timerTxtP.textBaseline='alphabetic'; timerTxtP.text = 30; itemBgTimer.x = landscapeSize.w/2; itemBgTimer.y = landscapeSize.h/100 * 76.5; timerTxt.x = itemBgTimer.x; timerTxt.y = itemBgTimer.y+12; itemBgTimerP.x = portraitSize.w/2; itemBgTimerP.y = portraitSize.h/100 * 81.5; timerTxtP.x = itemBgTimerP.x; timerTxtP.y = itemBgTimerP.y+12; questionActionContainer.addChild(itemBgConfirm, confirmTxt, itemBgCancel, cancelTxt); questionActionMoveContainer.addChild(questionActionContainer); questionContainer.addChild(questionActionMoveContainer); questionLContainer.addChild(item_bg_question, questionTxt, itemBgTimer, timerTxt); questionPContainer.addChild(item_bg_question_p, questionTxtP, itemBgTimerP, timerTxtP); //score scoreTxt = new createjs.Text(); scoreTxt.font = "35px lt_reponsebold"; scoreTxt.color = "#FFCE00"; scoreTxt.textAlign = "left"; scoreTxt.textBaseline='alphabetic'; //prizes itemBgPrize = new createjs.Bitmap(loader.getResult('itemBgPrize')); prizeContainer.addChild(itemBgPrize); prizeContainer.x = canvasW/100 * 70; itemPrizeH = new createjs.Bitmap(loader.getResult('itemPrizeH')); centerReg(itemPrizeH); prizeContainer.addChild(itemPrizeH); itemPrizeH.visible = false; var startX = 25; var startY = 468; var spaceY = 31; var checkpointcount = 0; for(var n = 0; n<prize_arr.length; n++){ $.prizes['won'+n] = new createjs.Bitmap(loader.getResult('itemPrizeWon')); centerReg($.prizes['won'+n]); $.prizes['won'+n].x = startX + 45; $.prizes['won'+n].y = startY; var textColour = checkpointcount == 4 ? gameSettings.prizeCheckpointColour : gameSettings.prizeColour; $.prizes['text'+n] = new createjs.Text(); $.prizes['text'+n].font = "25px lt_reponsebold"; $.prizes['text'+n].color = textColour; $.prizes['text'+n].oriColour = textColour; $.prizes['text'+n].isCheckpoint = checkpointcount == 4 ? true : false; $.prizes['text'+n].textAlign = "left"; $.prizes['text'+n].textBaseline='alphabetic'; $.prizes['text'+n].text = prize_arr[n].text; $.prizes['text'+n].x = startX + 65; $.prizes['text'+n].y = startY + 8; $.prizes['number'+n] = new createjs.Text(); $.prizes['number'+n].font = "25px lt_reponsebold"; $.prizes['number'+n].color = textColour; $.prizes['number'+n].textAlign = "left"; $.prizes['number'+n].textBaseline='alphabetic'; $.prizes['number'+n].text = n+1; $.prizes['number'+n].x = startX; $.prizes['number'+n].y = startY + 8; startY -= spaceY; checkpointcount++; if(checkpointcount > 4){ checkpointcount = 0; } prizeContainer.addChild($.prizes['number'+n], $.prizes['won'+n], $.prizes['text'+n]); } //audience itemBgAudience = new createjs.Bitmap(loader.getResult('itemBgAudience')); audienceContainer.addChild(itemBgAudience); var startX = 37; var startY = 30; var spaceX = 58; var barW = 10; var barH = 10; for(var n = 0; n<buttonPos.length; n++){ $.audience['percent'+n] = new createjs.Text(); $.audience['percent'+n].font = "15px lt_reponsebold"; $.audience['percent'+n].color = gameSettings.audienceChartColour; $.audience['percent'+n].textAlign = "center"; $.audience['percent'+n].textBaseline='alphabetic'; $.audience['percent'+n].text = '100%'; $.audience['percent'+n].x = startX; $.audience['percent'+n].y = startY; $.audience['text'+n] = new createjs.Text(); $.audience['text'+n].font = "25px lt_reponsebold"; $.audience['text'+n].color = gameSettings.audienceChartColour; $.audience['text'+n].textAlign = "center"; $.audience['text'+n].textBaseline='alphabetic'; $.audience['text'+n].text = gameSettings.lists[n]; $.audience['text'+n].x = startX; $.audience['text'+n].y = startY + 140; $.audience[n] = new createjs.Shape(); $.audience[n].alpha = .8; $.audience[n].graphics.beginFill(gameSettings.audienceChartColour).drawRect(-(barData.width/2), 0, barData.width, -barData.height); $.audience[n].x = startX; $.audience[n].y = startY + 110; startX += spaceX; audienceContainer.addChild($.audience['text'+n], $.audience['percent'+n], $.audience[n]); } //call itemBgCall = new createjs.Bitmap(loader.getResult('itemBgCall')); callText = new createjs.Text(); callText.font = "20px lt_reponsebold"; callText.color = "#fff"; callText.textAlign = "center"; callText.textBaseline='alphabetic'; callText.text = '...'; callText.x = 125; callText.y = 170; var _frameW = 206; var _frameH = 88; var _frame = {"regX":_frameW/2, "regY":_frameH/2, "count":4, "width":_frameW, "height":_frameH}; var _animations = { stop: [0], call: { frames: [0,1,2,3], next: "call", speed: .2 } }; callingData = new createjs.SpriteSheet({ "images": [loader.getResult('itemCalling').src], "frames": _frame, "animations": _animations }); callingAnimate = new createjs.Sprite(callingData, "stop"); callingAnimate.framerate = 20; callingAnimate.x = 125; callingAnimate.y = 80; callContainer.addChild(itemBgCall, callText, callingAnimate); for(var n=0; n<avatar_arr.length; n++){ $.call['avatar'+n] = new createjs.Bitmap(loader.getResult('itemAvatar'+n)); centerReg($.call['avatar'+n]); $.call['avatar'+n].x = 125; $.call['avatar'+n].y = 80; callContainer.addChild($.call['avatar'+n]); } //action btnAudience = new createjs.Bitmap(loader.getResult('btnAudience')); centerReg(btnAudience); btnAudience.x = -80; btnAudience.y = 0; btnCall = new createjs.Bitmap(loader.getResult('btnCall')); centerReg(btnCall); btnCall.x = 0; btnCall.y = 0; btnHalf = new createjs.Bitmap(loader.getResult('btnHalf')); centerReg(btnHalf); btnHalf.x = 80; btnHalf.y = 0; btnAudienceDisabled = new createjs.Bitmap(loader.getResult('btnAudienceDisabled')); centerReg(btnAudienceDisabled); btnAudienceDisabled.x = -80; btnAudienceDisabled.y = 0; btnCallDisabled = new createjs.Bitmap(loader.getResult('btnCallDisabled')); centerReg(btnCallDisabled); btnCallDisabled.x = 0; btnCallDisabled.y = 0; btnHalfDisabled = new createjs.Bitmap(loader.getResult('btnHalfDisabled')); centerReg(btnHalfDisabled); btnHalfDisabled.x = 80; btnHalfDisabled.y = 0; actionContainer.addChild(btnAudienceDisabled, btnCallDisabled, btnHalfDisabled, btnAudience, btnCall, btnHalf); var _frameW=96; var _frameH=33; var _frame = {"regX": (_frameW/2), "regY": (_frameH/2), "height": _frameH, "count": 25, "width": _frameW}; var _animations = {static:{frames: [0]}, loading:{frames: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24], speed: 1, next:'loading'}}; loaderData = new createjs.SpriteSheet({ "images": [loader.getResult("itemLoader").src], "frames": _frame, "animations": _animations }); loaderAnimate = new createjs.Sprite(loaderData, "static"); loaderAnimate.framerate = 20; loaderAnimate.x = canvasW/2; loaderAnimate.y = canvasH/2; loaderAnimate.scaleX = loaderAnimate.scaleY = .7; //result buttonContinue = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonContinue); continueTxt = new createjs.Text(); continueTxt.font = "35px lt_reponsebold"; continueTxt.color = '#fff'; continueTxt.textAlign = "center"; continueTxt.textBaseline='alphabetic'; continueTxt.text = textDisplay.continue; resultShareTxt = new createjs.Text(); resultShareTxt.font = "25px lt_reponsebold"; resultShareTxt.color = '#fff'; resultShareTxt.textAlign = "center"; resultShareTxt.textBaseline='alphabetic'; resultShareTxt.text = textDisplay.share; resultTitleTxt = new createjs.Text(); resultTitleTxt.font = "55px lt_reponsebold"; resultTitleTxt.color = '#fff'; resultTitleTxt.textAlign = "center"; resultTitleTxt.textBaseline='alphabetic'; resultTitleTxt.text = textDisplay.resultLost; buttonFacebook = new createjs.Bitmap(loader.getResult('buttonFacebook')); buttonTwitter = new createjs.Bitmap(loader.getResult('buttonTwitter')); buttonWhatsapp = new createjs.Bitmap(loader.getResult('buttonWhatsapp')); centerReg(buttonFacebook); createHitarea(buttonFacebook); centerReg(buttonTwitter); createHitarea(buttonTwitter); centerReg(buttonWhatsapp); createHitarea(buttonWhatsapp); buttonFullscreen = new createjs.Bitmap(loader.getResult('buttonFullscreen')); centerReg(buttonFullscreen); buttonSoundOn = new createjs.Bitmap(loader.getResult('buttonSoundOn')); centerReg(buttonSoundOn); buttonSoundOff = new createjs.Bitmap(loader.getResult('buttonSoundOff')); centerReg(buttonSoundOff); buttonSoundOn.visible = false; buttonExit = new createjs.Bitmap(loader.getResult('buttonExit')); centerReg(buttonExit); buttonSettings = new createjs.Bitmap(loader.getResult('buttonSettings')); centerReg(buttonSettings); createHitarea(buttonFullscreen); createHitarea(buttonSoundOn); createHitarea(buttonSoundOff); createHitarea(buttonExit); createHitarea(buttonSettings); optionsContainer = new createjs.Container(); optionsContainer.addChild(buttonFullscreen, buttonSoundOn, buttonSoundOff, buttonExit); optionsContainer.visible = false; //exit itemConfirm = new createjs.Bitmap(loader.getResult('itemConfirm')); itemConfirmP = new createjs.Bitmap(loader.getResult('itemConfirmP')); buttonYes = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonYes); buttonNo = new createjs.Bitmap(loader.getResult('itemBgButton')); centerReg(buttonNo); yesTxt = new createjs.Text(); yesTxt.font = "35px lt_reponsebold"; yesTxt.color = '#fff'; yesTxt.textAlign = "center"; yesTxt.textBaseline='alphabetic'; yesTxt.text = textDisplay.exitYes; noTxt = new createjs.Text(); noTxt.font = "35px lt_reponsebold"; noTxt.color = '#fff'; noTxt.textAlign = "center"; noTxt.textBaseline='alphabetic'; noTxt.text = textDisplay.exitNo; popTitleTxt = new createjs.Text(); popTitleTxt.font = "60px lt_reponsebold"; popTitleTxt.color = "#fff"; popTitleTxt.textAlign = "center"; popTitleTxt.textBaseline='alphabetic'; popTitleTxt.text = textDisplay.exitTitle; popDescTxt = new createjs.Text(); popDescTxt.font = "40px lt_reponsebold"; popDescTxt.color = "#fff"; popDescTxt.textAlign = "center"; popDescTxt.textBaseline='alphabetic'; popDescTxt.text = textDisplay.exitMessage; confirmContainer.addChild(itemConfirm, itemConfirmP, popTitleTxt, popDescTxt, buttonYes, buttonNo, yesTxt, noTxt); confirmContainer.visible = false; if(guide){ guideline = new createjs.Shape(); guideline.graphics.setStrokeStyle(2).beginStroke('red').drawRect((stageW-contentW)/2, (stageH-contentH)/2, contentW, contentH); } mainContainer.addChild(logo, logoLight, buttonStart, startTxt, buttonRules, rulesTxt); rulesContainer.addChild(itemRules, itemRulesP, buttonBack, backTxt, rulesTitleTxt, rulesDescTxt); categoryContainer.addChild(catTitleTxt, buttonArrowL, buttonArrowR, buttonSelect, selectTxt, itemCategory, categoryTxt); questionContainer.addChild(questionLContainer, questionPContainer, loaderAnimate); gameContainer.addChild(hostContainer, speechContainer, questionContainer, prizeContainer, audienceContainer, callContainer, actionContainer, scoreTxt); resultContainer.addChild(buttonContinue, continueTxt, resultTitleTxt); if(shareEnable){ resultContainer.addChild(resultShareTxt, buttonFacebook, buttonTwitter, buttonWhatsapp); } canvasContainer.addChild(bg, bgP, mainContainer, categoryContainer, lightsContainer, rulesContainer, gameContainer, resultContainer, confirmContainer, optionsContainer, buttonSettings, guideline); stage.addChild(canvasContainer); changeViewport(viewport.isLandscape); resizeGameFunc(); } function changeViewport(isLandscape){ if(isLandscape){ //landscape stageW=landscapeSize.w; stageH=landscapeSize.h; contentW = landscapeSize.cW; contentH = landscapeSize.cH; }else{ //portrait stageW=portraitSize.w; stageH=portraitSize.h; contentW = portraitSize.cW; contentH = portraitSize.cH; } gameCanvas.width = stageW; gameCanvas.height = stageH; canvasW=stageW; canvasH=stageH; changeCanvasViewport(); } function changeCanvasViewport(){ if(canvasContainer!=undefined){ buttonStart.x = canvasW/2; buttonStart.y = canvasH/100 * 70; startTxt.x = buttonStart.x; startTxt.y = buttonStart.y + 10; buttonRules.x = canvasW/2; buttonRules.y = canvasH/100 * 81; rulesTxt.x = buttonRules.x; rulesTxt.y = buttonRules.y + 10; buttonBack.x = canvasW/2; buttonBack.y = canvasH/100 * 73; backTxt.x = buttonBack.x; backTxt.y = buttonBack.y + 10; rulesTitleTxt.x = canvasW/2; rulesTitleTxt.y = canvasH/100 * 30; rulesDescTxt.x = canvasW/2; rulesDescTxt.y = canvasH/100 * 35; rulesDescTxt.lineWidth = 850; itemBgConfirm.x = (canvasW/2) - 90; itemBgConfirm.y = canvasH/100 * 48; itemBgCancel.x = (canvasW/2) + 90; itemBgCancel.y = canvasH/100 * 48; confirmTxt.x = itemBgConfirm.x; confirmTxt.y = itemBgConfirm.y + 6; cancelTxt.x = itemBgCancel.x; cancelTxt.y = itemBgCancel.y + 6; buttonContinue.x = canvasW/2; buttonContinue.y = canvasH/100 * 75; continueTxt.x = buttonContinue.x; continueTxt.y = buttonContinue.y + 10; resultShareTxt.x = canvasW/2; resultShareTxt.y = canvasH/100 * 55; resultTitleTxt.x = canvasW/2; resultTitleTxt.y = canvasH/100 * 35; //exit buttonYes.x = canvasW/2; buttonYes.y = canvasH/100 * 59; buttonNo.x = canvasW/2; buttonNo.y = canvasH/100 * 70; yesTxt.x = buttonYes.x; yesTxt.y = buttonYes.y + 10; noTxt.x = buttonNo.x; noTxt.y = buttonNo.y + 10; popTitleTxt.x = canvasW/2; popTitleTxt.y = canvasH/100 * 38; popDescTxt.x = canvasW/2; popDescTxt.y = canvasH/100 * 45; if(viewport.isLandscape){ bg.visible = true; bgP.visible = false; logo.x = canvasW/2; logo.y = canvasH/100 * 35; logoLight.x = logo.x; logoLight.y = logo.y; lightsContainer.x = 0; //rules itemRules.visible = true; itemRulesP.visible = false; //category catTitleTxt.x = canvasW/2; catTitleTxt.y = canvasH/100 * 30; buttonArrowL.x = canvasW/100 * 20; buttonArrowL.y = canvasH/100 * 45; buttonArrowR.x = canvasW/100 * 80; buttonArrowR.y = canvasH/100 * 45; itemCategory.x = canvasW/2; itemCategory.y = canvasH/100 * 45; categoryTxt.x = itemCategory.x; categoryTxt.y = itemCategory.y + 10; buttonSelect.x = canvasW/2; buttonSelect.y = canvasH/100 * 80; selectTxt.x = buttonSelect.x; selectTxt.y = buttonSelect.y + 10; //games loaderAnimate.x = item_bg_question.x; loaderAnimate.y = item_bg_question.y; speechContainer.x = canvasW/2; speechContainer.y = canvasH/100 * 33; hostContainer.x = canvasW/100 * 58; hostContainer.y = canvasH/100 * 23; questionLContainer.visible = true; questionPContainer.visible = false; audienceContainer.x = audienceContainer.oriX = canvasW/100 * 18; audienceContainer.y = canvasH/100 * 20; callContainer.x = callContainer.oriX = canvasW/100 * 18; callContainer.y = canvasH/100 * 20; questionActionMoveContainer.y = 0; prizeContainer.y = canvasH/100 * 22; //result buttonFacebook.x = canvasW/100*43; buttonFacebook.y = canvasH/100*62; buttonTwitter.x = canvasW/2; buttonTwitter.y = canvasH/100*62; buttonWhatsapp.x = canvasW/100*57; buttonWhatsapp.y = canvasH/100*62; //confirm itemConfirm.visible = true; itemConfirmP.visible = false; }else{ bg.visible = false; bgP.visible = true; buttonStart.x = canvasW/2; buttonStart.y = canvasH/100 * 75; startTxt.x = buttonStart.x; startTxt.y = buttonStart.y + 10; buttonRules.x = canvasW/2; buttonRules.y = canvasH/100 * 83; rulesTxt.x = buttonRules.x; rulesTxt.y = buttonRules.y + 10; logo.x = canvasW/2; logo.y = canvasH/100 * 47; logoLight.x = logo.x; logoLight.y = logo.y; lightsContainer.x = -250; //rules itemRules.visible = false; itemRulesP.visible = true; buttonBack.x = canvasW/2; buttonBack.y = canvasH/100 * 76; backTxt.x = buttonBack.x; backTxt.y = buttonBack.y + 10; rulesTitleTxt.x = canvasW/2; rulesTitleTxt.y = canvasH/100 * 25; rulesDescTxt.x = canvasW/2; rulesDescTxt.y = canvasH/100 * 30; rulesDescTxt.lineWidth = 430; //category catTitleTxt.x = canvasW/2; catTitleTxt.y = canvasH/100 * 25; buttonArrowL.x = canvasW/100 * 20; buttonArrowL.y = canvasH/100 * 45; buttonArrowR.x = canvasW/100 * 80; buttonArrowR.y = canvasH/100 * 45; itemCategory.x = canvasW/2; itemCategory.y = canvasH/100 * 45; categoryTxt.x = itemCategory.x; categoryTxt.y = itemCategory.y + 10; buttonSelect.x = canvasW/2; buttonSelect.y = canvasH/100 * 75; selectTxt.x = buttonSelect.x; selectTxt.y = buttonSelect.y + 10; //games loaderAnimate.x = item_bg_question_p.x; loaderAnimate.y = item_bg_question_p.y; speechContainer.x = canvasW/2; speechContainer.y = canvasH/100 * 32; hostContainer.x = canvasW/100 * 55; hostContainer.y = canvasH/100 * 39; questionLContainer.visible = false; questionPContainer.visible = true; audienceContainer.x = audienceContainer.oriX = canvasW/100 * 18; audienceContainer.y = canvasH/100 * 20; callContainer.x = callContainer.oriX = canvasW/100 * 18; callContainer.y = canvasH/100 * 20; questionActionMoveContainer.y = 100; prizeContainer.y = canvasH/100 * 41.5; //result buttonFacebook.x = canvasW/100*39; buttonFacebook.y = canvasH/100*62; buttonTwitter.x = canvasW/2; buttonTwitter.y = canvasH/100*62; buttonWhatsapp.x = canvasW/100*61; buttonWhatsapp.y = canvasH/100*62; //confirm itemConfirm.visible = false; itemConfirmP.visible = true; } } resizeQuestionText() } /*! * * RESIZE GAME CANVAS - This is the function that runs to resize game canvas * */ function resizeCanvas(){ if(canvasContainer!=undefined){ actionContainer.x = canvasW/2; actionContainer.y = offset.y + 50; buttonSettings.x = (canvasW - offset.x) - 50; buttonSettings.y = offset.y + 45; scoreTxt.x = offset.x + 40; scoreTxt.y = offset.y + 60; var distanceNum = 65; if(curPage != 'game'){ buttonExit.visible = false; buttonSoundOn.x = buttonSoundOff.x = buttonSettings.x; buttonSoundOn.y = buttonSoundOff.y = buttonSettings.y+distanceNum; buttonSoundOn.x = buttonSoundOff.x; buttonSoundOn.y = buttonSoundOff.y = buttonSettings.y+(distanceNum); buttonFullscreen.x = buttonSettings.x; buttonFullscreen.y = buttonSettings.y+(distanceNum*2); }else{ if(!$.editor.enable){ buttonExit.visible = true; } buttonSoundOn.x = buttonSoundOff.x = buttonSettings.x; buttonSoundOn.y = buttonSoundOff.y = buttonSettings.y+distanceNum; buttonSoundOn.x = buttonSoundOff.x; buttonSoundOn.y = buttonSoundOff.y = buttonSettings.y+(distanceNum); buttonFullscreen.x = buttonSettings.x; buttonFullscreen.y = buttonSettings.y+(distanceNum*2); buttonExit.x = buttonSettings.x; buttonExit.y = buttonSettings.y+(distanceNum*3); } } } /*! * * REMOVE GAME CANVAS - This is the function that runs to remove game canvas * */ function removeGameCanvas(){ stage.autoClear = true; stage.removeAllChildren(); stage.update(); createjs.Ticker.removeEventListener("tick", tick); createjs.Ticker.removeEventListener("tick", stage); } /*! * * CANVAS LOOP - This is the function that runs for canvas loop * */ function tick(event) { updateGame(); stage.update(event); } /*! * * CANVAS MISC FUNCTIONS * */ function centerReg(obj){ obj.regX=obj.image.naturalWidth/2; obj.regY=obj.image.naturalHeight/2; } function createHitarea(obj){ obj.hitArea = new createjs.Shape(new createjs.Graphics().beginFill("#000").drawRect(0, 0, obj.image.naturalWidth, obj.image.naturalHeight)); }
© 2017 -
ZeroByte.ID
.