tag:blogger.com,1999:blog-47565560187786688642024-03-12T23:12:47.397-07:00KlanPaiaFanfics e Projetos ^^KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.comBlogger23125tag:blogger.com,1999:blog-4756556018778668864.post-37743638825358176622014-03-21T04:55:00.001-07:002014-03-21T04:55:51.801-07:00Marcha pela Família Já<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8iD2k_2qhAe8qSaMySVCMACW5zwkPzlCLZDYvgdaNTkfQd_1uD0-eW67tPg3EiTqF5F3wU-oq7cbkDN6WW7EexrT0JZdwwUI_yCaoc-buLleE0mj1xbYWygKl9ffKzqgGzGZw7nqRiGCR/s1600/download.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8iD2k_2qhAe8qSaMySVCMACW5zwkPzlCLZDYvgdaNTkfQd_1uD0-eW67tPg3EiTqF5F3wU-oq7cbkDN6WW7EexrT0JZdwwUI_yCaoc-buLleE0mj1xbYWygKl9ffKzqgGzGZw7nqRiGCR/s1600/download.jpg" height="452" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Estamos recebendo censura na TV na internet estamos sendo perseguidos, neste site fiz uma coletania de videos que explica os últimos acontecimentos na qual devemos lutar pelos nossos direitos que estão sendo usurpados por invasores estrangeiros. PT não é brasileiro! Sua bandeira é do comunismo, suas táticas são de guerrilha, devemos nor unir contra esse mal e sumir com esse partido o mais rápido possível...<br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/D5Z00EOeCvI?feature=player_embedded' frameborder='0'></iframe><br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/FfIIjrmUqOo?feature=player_embedded' frameborder='0'></iframe><br /><object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/dS_-0Irhr1g/0.jpg"><param name="movie" value="https://youtube.googleapis.com/v/dS_-0Irhr1g&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://youtube.googleapis.com/v/dS_-0Irhr1g&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object><br /><br /><br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/CKyH5U3D81U?feature=player_embedded' frameborder='0'></iframe><br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/kOw0x9PEQNo?feature=player_embedded' frameborder='0'></iframe><br /><br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/nZiPIvz6kSc?feature=player_embedded' frameborder='0'></iframe><br /></div>
<br />KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-52930899014338919302014-03-14T13:19:00.001-07:002014-03-14T13:27:35.619-07:00Creation of a Box2D hook like the one seen on iOS Mikey Hooks gameVocê já jogou Mikey Hooks? É um excelente game de plataforma, onde o herói pode disparar ganchos e saltar sobre picos, buracos e monstro ... e, obviamente, o jogo é muito mais do que isso, mas uma espécie de gancho com Box2D.<br />
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/aBsOanrh3Jk?feature=player_embedded' frameborder='0'></iframe><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Cada vez que você clicar em um corpo estático (digamos que uma pedra), você cria uma joint distância entre um corpo dinâmico (digamos o herói) e o corpo estático. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Mantendo o botão esquerdo do mouse apertado irá retroceder o gancho, a distância é encurtada, dando-lhe um efeito de "Bionic Commando". </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Liberando o botão do mouse irá destruir a articulação e você será capaz de disparar um outro gancho. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Desta forma, você pode balançar ao pela plantaforma </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
Aqui está o código:</div>
<div style="background-color: #fdfdfd; color: #1a1a1a; font-family: arial; font-size: 14px; line-height: 24px;">
</div>
<div class="crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes" data-settings=" minimize scroll-mouseover" id="crayon-53235b32de9a5277574071" style="background-color: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; clear: both; color: #1a1a1a; direction: ltr !important; float: none; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; width: 750px;">
<div class="crayon-plain-wrap" style="background-position: 0px 50%; border: 0px; font-family: 'Courier New', monospace !important; height: auto !important; margin: 0px !important; padding: 0px !important;">
<textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-webkit-box-shadow: none; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: 'Courier New', monospace !important; height: 1455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 748px; word-wrap: normal; z-index: 0;" wrap="off"></textarea></div>
<div class="crayon-main" style="background-position: 0px 50%; border: 0px; font-family: 'Courier New', monospace !important; margin: 0px; overflow: hidden; padding: 0px; position: relative; width: 748px; z-index: 1;">
<table class="crayon-table" style="background-image: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; width: auto !important;"><tbody>
<tr class="crayon-row" style="background-position: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><td class="crayon-nums " data-settings="show" style="background-color: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;"><div class="crayon-nums-content" style="background-position: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; padding: 0px;">
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-1" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
1</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-2" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
2</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-3" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
3</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-4" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
4</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-5" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
5</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-6" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
6</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-7" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
7</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-8" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
8</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-9" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
9</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-10" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
10</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-11" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
11</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-12" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
12</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-13" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
13</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-14" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
14</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-15" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
15</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-16" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
16</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-17" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
17</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-18" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
18</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-19" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
19</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-20" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
20</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-21" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
21</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-22" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
22</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-23" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
23</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-24" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
24</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-25" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
25</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-26" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
26</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-27" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
27</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-28" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
28</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-29" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
29</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-30" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
30</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-31" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
31</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-32" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
32</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-33" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
33</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-34" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
34</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-35" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
35</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-36" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
36</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-37" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
37</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-38" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
38</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-39" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
39</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-40" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
40</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-41" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
41</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-42" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
42</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-43" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
43</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-44" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
44</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-45" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
45</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-46" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
46</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-47" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
47</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-48" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
48</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-49" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
49</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-50" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
50</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-51" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
51</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-52" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
52</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-53" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
53</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-54" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
54</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-55" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
55</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-56" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
56</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-57" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
57</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-58" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
58</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-59" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
59</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-60" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
60</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-61" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
61</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-62" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
62</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-63" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
63</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-64" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
64</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-65" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
65</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-66" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
66</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-67" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
67</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-68" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
68</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-69" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
69</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-70" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
70</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-71" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
71</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-72" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
72</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-73" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
73</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-74" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
74</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-75" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
75</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-76" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
76</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-77" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
77</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-78" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
78</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-79" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
79</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-80" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
80</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-81" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
81</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-82" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
82</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-83" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
83</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-84" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
84</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-85" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
85</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-86" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
86</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-87" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
87</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-88" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
88</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-89" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
89</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-90" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
90</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-91" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
91</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-92" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
92</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-93" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
93</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-94" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
94</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-95" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
95</div>
<div class="crayon-num crayon-striped-num" data-line="crayon-53235b32de9a5277574071-96" style="background-color: rgb(200, 225, 250) !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px; color: rgb(49, 124, 197) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
96</div>
<div class="crayon-num" data-line="crayon-53235b32de9a5277574071-97" style="background-position: 0px 50%; background-repeat: initial initial; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px; text-align: center;">
97</div>
</div>
</td><td class="crayon-code" style="background-position: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 934px;"><div class="crayon-pre" style="background-image: none !important; border: none !important; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; white-space: pre;">
<div class="crayon-line" id="crayon-53235b32de9a5277574071-1" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">package</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-2" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e " style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">flash.display</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Sprite</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-3" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e " style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">flash.events</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MouseEvent</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-4" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e " style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">flash.events</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Event</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-5" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Box2D</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Dynamics</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-6" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Box2D</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Collision</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Shapes</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-7" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Box2D</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Common</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Math</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-8" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">import</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Box2D</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Dynamics</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Joints</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-9" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">public</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">class</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Main</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">extends</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Sprite</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-10" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2World</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2World</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Vec2</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">0</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">10</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">true</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-11" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">30</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-12" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">hero</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-13" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DistanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-14" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">isHooked</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Boolean</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">false</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-15" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">public</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Main</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-16" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// this is the ground</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-17" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addBox</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">320</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">480</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">640</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">20</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2_staticBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-18" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// let's add some random stuff</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-19" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">for</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">i</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">1</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">i</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"><=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">12</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">i</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">++</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-20" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addBox</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Math</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">random</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">600</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">+</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">20</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Math</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">random</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">300</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Math</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">random</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">30</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">+</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">15</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Math</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">random</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">30</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">+</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">15</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2_staticBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-21" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-22" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// and finally the hero</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-23" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">hero</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addBox</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">320</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">460</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">20</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">20</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2_dynamicBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-24" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addEventListener</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Event</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">ENTER_FRAME</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">update</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-25" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">stage</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addEventListener</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MouseEvent</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MOUSE_DOWN</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fireHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-26" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">stage</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addEventListener</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MouseEvent</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MOUSE_UP</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">releaseHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-27" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-28" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-29" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fireHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">e</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MouseEvent</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">void</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-30" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// when firing the hook, let's remove old joints, if any</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-31" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">if</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-32" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">DestroyJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-33" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-34" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// checking the body under the mouse</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-35" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">QueryPoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">queryCallback</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Vec2</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">mouseX</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">mouseY</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-36" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-37" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">queryCallback</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixture</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Fixture</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Boolean</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-38" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">touchedBody</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixture</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">GetBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-39" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">if</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">touchedBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">GetType</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">==</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2_staticBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-40" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// if I have a body under the mouse, I create a distance joint between the hero and mouse position</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-41" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJointDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DistanceJointDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DistanceJointDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-42" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJointDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Initialize</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">hero</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">touchedBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">hero</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">GetWorldCenter</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Vec2</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">mouseX</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">mouseY</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-43" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJointDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">collideConnected</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">true</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-44" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">CreateJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJointDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">as</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DistanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-45" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">isHooked</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">true</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-46" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-47" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">return</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">false</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-48" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-49" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">releaseHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">e</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">MouseEvent</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">void</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-50" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// if I release the mouse, I destroy the distance joint</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-51" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">if</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-52" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">DestroyJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-53" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-54" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-55" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">manageHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">void</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-56" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// as long as the hook is active, I shorten a bit joint distance</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-57" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">if</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">isHooked</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-58" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-c" style="color: rgb(255, 128, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">// BODY MUST BE AWAKE!!!!!!</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-59" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">hero</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetAwake</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">true</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-60" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetLength</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">distanceJoint</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">GetLength</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">*</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">0.99</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-61" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-62" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-63" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addBox</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">pX</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">pY</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">w</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">h</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyType</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Number</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-64" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2BodyDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2BodyDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-65" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">position</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Set</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">pX</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">pY</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-66" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">type</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyType</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-67" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">polygonShape</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2PolygonShape</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2PolygonShape</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-68" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">polygonShape</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetAsBox</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">w</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">2</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">h</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">2</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-69" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2FixtureDef</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2FixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-70" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">shape</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">polygonShape</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-71" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">density</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">1</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-72" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">restitution</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">0.4</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-73" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">friction</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">0.5</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-74" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">body</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2Body</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">CreateBody</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">bodyDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-75" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">CreateFixture</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">fixtureDef</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-76" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-st" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">return</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">body</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-77" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-78" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">void</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-79" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DebugDraw</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DebugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-80" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">var</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugSprite</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Sprite</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">=</span><span class="crayon-r" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">new</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Sprite</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-81" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">addChild</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugSprite</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-82" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetSprite</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugSprite</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-83" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetDrawScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">worldScale</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-84" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetFlags</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DebugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">e_shapeBit</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">|</span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">b2DebugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">e_jointBit</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-85" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetFillAlpha</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">0.5</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-86" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">SetDebugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">debugDraw</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-87" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-88" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-m" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">private</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">function</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">update</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">e</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-i" style="display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Event</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">:</span><span class="crayon-t" style="color: rgb(128, 0, 128) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">void</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">{</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-89" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">Step</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">1</span><span class="crayon-o" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">/</span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">30</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">10</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">,</span><span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-cn" style="color: rgb(206, 0, 0) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">10</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-90" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">manageHook</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-91" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">ClearForces</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-92" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-v" style="color: rgb(0, 45, 122) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">world</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">.</span><span class="crayon-e" style="color: rgb(0, 78, 208) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">DrawDebugData</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">(</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">)</span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">;</span></div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-93" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-94" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
</div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-95" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-h" style="color: rgb(0, 111, 224) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;"> </span><span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
<div class="crayon-line crayon-striped-line" id="crayon-53235b32de9a5277574071-96" style="background-color: rgb(247, 247, 247) !important; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
</div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-97" style="background-position: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; margin: 0px; padding: 0px 5px;">
<span class="crayon-sy" style="color: rgb(51, 51, 51) !important; display: inline-block; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit !important; line-height: inherit !important; zoom: 1;">}</span></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div class="crayon-line" id="crayon-53235b32de9a5277574071-1" style="background-color: #fdfdfd; background-position: 0px 50%; border: 0px; height: inherit !important; margin: 0px; padding: 0px 5px;">
<div class="crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes" data-settings=" minimize scroll-mouseover" id="crayon-53235b32de9a5277574071" style="border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; clear: both; color: #1a1a1a; direction: ltr !important; float: none; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 12px; height: auto; line-height: 15px; margin: 12px 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; white-space: normal; width: 750px;">
</div>
<div style="color: #1a1a1a; font-family: arial; font-size: 14px; line-height: 24px; white-space: normal;">
</div>
<span style="color: #1a1a1a; font-family: arial;"><span style="font-size: 14px; line-height: 24px;">Source: <a href="https://drive.google.com/file/d/0B6NNc-9vZJw9UnVaOWZVTy1Ja28">https://drive.google.com/file/d/0B6NNc-9vZJw9UnVaOWZVTy1Ja28</a><br /><br />Fonte: </span><span style="font-size: 14px; line-height: 24px;"><a href="http://www.emanueleferonato.com/2013/09/10/creation-of-a-box2d-hook-like-the-one-seen-on-ios-mikey-hooks-game/">http://www.emanueleferonato.com/2013/09/10/creation-of-a-box2d-hook-like-the-one-seen-on-ios-mikey-hooks-game/</a></span></span></div>
<h3 style="background-color: #fdfdfd; margin: 0px; padding: 0px;">
</h3>
KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-11670735144701040072014-03-13T00:08:00.000-07:002014-03-13T00:08:25.872-07:00Receita para capturar teclas digitadas em C++Vamos a uma bela receita de como capturar teclas pressionadas no windows usando C++ :<br />
<br />
Primeiro visitamos a Microsoft<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms646301(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/ms646301(v=vs.85).aspx</a><br />
<br />
Descobrimos que para descobrir qual tecla está sendo pressionada no windows de uma pessoa, se usa a função ou metodo GetKeyState que está na biblioteca WinUser.h, só que se incluirmos o winuser em nosso projeto irá gerar um monte de erros. O motivo disso é que winuser necessita de outras bibliotecas na qual não esta incluída nela mesma. Ela é apenas um pedaço de uma biblioteca maior o Windows.h é está biblioteca que você deve adicionar a seu projeto.<br />
<br />
Depois devemos achar o código a qual queremos verificar se foi pressionado aquele botão. Para isso a microsoft deu outra mãozinha <a href="http://msdn.microsoft.com/en-us/library/aa243025(v=vs.60).aspx">http://msdn.microsoft.com/en-us/library/aa243025(v=vs.60).aspx</a>. Essa é uma lista com a numerações de código de cada botão de seu teclado.<br />
<br />
Temos agora o código e o método KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-33799738843530304822014-01-08T08:52:00.000-08:002014-01-08T08:52:10.293-08:00Google Drive <div class="separator" style="clear: both; text-align: center;">
<br /></div>
E hoje vim aqui para compartilhar com meus amigos sobre o Google drive, já conhecia o Skydrive da Microsoft, onde ele cria uma pasta virtual e sincroniza essa pasta com uma pasta criada em seu computador, geralmente para não perder endereços, trabalhos e arquivos importantes que podem ser perdidos, caso seu computador pare de funcionar.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Até ai tudo bem, o que me impressionou no Google Drive é que além de fazer tudo que mencionei a cima ele também coloca 3 links em seu computador para um "Pacote Office Online " ou seja você tem o Word, Excel e Power Point do Google sem precisar instalar, tudo acessado pelo navegador. Eu adorei, pois tem tudo o que o word tem como corretor ortográfico, paginação, tabulação em fim<br /><br />Baixo tem um video tutorial de todas as maneiras que pode se usar o Google Drive<br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/FTwgLx50L6A?feature=player_embedded' frameborder='0'></iframe><br /><br />
Olhar Digital - Os computadores em Nuvens<br />
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/s4OB-C4mp2A?feature=player_embedded' frameborder='0'></iframe><br />
<br />KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-29526740273142257712013-09-02T22:05:00.002-07:002013-09-02T22:36:54.418-07:00Fatec de Ourinhos é Boa?Bom esses dias falei no Facebook que a Fatec de Ourinhos não era uma boa faculdade, como tantos papagaiam por ai, quase fui crucifixado pelos alunos de lá. É normal e os entendo, já que se esforçaram para entrar nela e dai chega um maluco falando que ela é ruim como é isso? O problema é que mexo na área e fiquei 2,5 anos na faculdade, quando faltava um ano e meio para terminar, não suportei e sai, não foi por ter que matar um leão por dia para estar presente nas aulas ou os professores metido a piadistas e sim a carência de docentes qualificados e aulas que condiz com a realidade do programador.<br />
<br />
Vemos professores de jogos ensinado a mexer em RPG Maker, em minha humilde opinião, se a pessoa precisa de faculdade para mexer no RPG Maker algum problema tem, professores que ensinam a bolar historinhas. Meu Deus se a pessoa não sabe bolar uma historia para seu jogo com certeza está na profissão errada, tentam se fazer de professores, mas muitos nem sabe escrever um algorítimo e nunca fizeram um game na vida para querer ensinar os outros como se faz.<br />
<br />
Os alunos coitados, não quero generalizar, mas são uma massa facilmente controlada, pois o que o professor fala para eles é 100% verdade. Quando entram em greve falam que seu salario é baixo e que não são valorizados. Os alunos nem se indagam sobre os carrões parados no estacionamento, sem um risco e as roupas de "Burgues" usadas pelos professores, simplesmente se veste de palhaço e vão para as ruas embaixo de sol forte, lutar pelos professores que fazem terrorismo escolar e cobram até pingo no i na hora das provas.<br />
<br />
E se está tão ruim assim, porque não pedem demissão? Podemos ver o fracasso da Fatec na semana de tecnologia, onde estão os projetos dos alunos, alias que projetos dos alunos? Cade os sistemas projetados pelos educados? Se não trouxessem pessoas de fora, professores e alunos que são realmente programadores, simplesmente a semana da tecnologia seria um fracasso. <br />
<br />
E a Semana dos Jogos ou Semana dos Games? Em vez de mostrarem os jogos produzidos pela instituição, baixam jogos, muitos desses feitos por pessoas que nem sequer diplomados são, digo isso porque muitos alunos afirmam que sem diploma é impossível projetar um game (Ideia passada pelos sábios professores), vemos ai limitações intelectuais dos alunos e seus professores, passam a semana toda jogando em vez de mostrarem sua evolução diante do grande ensinamento dada pela Fatec.<br />
<br />
Vemos professor falando que a Fatec de Ourinhos é uma das faculdade mais conceituadas do Estado de São Paulo. Claro que os professores irão dizer isso, ninguém vai falar mal da onde come e bebe, imagina um professor falando que lá não presta. Inclusive teve professores que já leram o meu blog e falaram em sala de aula: " Parem de falar mal da instituição, falar mal da Fatec é falar mal de vocês mesmos." . Não concordo, quando se fala "mal" da faculdade é um aviso de que algo está errado, que alguma coisa tem e deve ser mudada.<br />
<br />
E os mini cursos? Método para tirar mais uma graninha dos "intelectuais" alunos da fatec, ao final de cada curso você ganha um papel de sulfite sem o reconhecimento do MEC e sem o carimbo da instituição, assinado pelo professor anônimo das couves e com os dizeres FATEC no topo (Olha só em negrito hein). Isso com certeza é um grande diferencial na hora de pedir emprego.<br />
<br />
E a solução? Abandonar a Fatec? Não, mas fazer pressão, pedir uma mudança no método de ensino, pedir para elaborar apostilas e provas que condiz com o que esta sendo ensinado, falar com alunos auto didata atualizados o que poderia e como estar sendo ensinado, se você ensina que 1 + 1 é 2 não vai elaborar uma prova onde tem 3 * 3, buscar material que incentive o aluno a programar<b> DE VERDADE</b> e que o desafie e não esses Maker meia boca, onde muitos custam mais de 5 mil reais para se poder usar.. Mais um grande problema dos professores é achar que está lidando com alunos recém formados do ensino médio, ali tem homens e mulheres de 30, 40 e 50 anos e acharem que são mais espertos, que podem sair enganando todo mundo.<br />
<br />
O que mais queria dos alunos da Fatec é que usassem suas mentes, não só para programar, mas para analisar professores e alunos a sua volta. A instituição é bonita e tem uma ótima biblioteca, com certeza você fez muitos amigos lá. Mas isso não é o aprendizado, você não deve misturar essas coisas, defender a faculdade quando ela está tão carente de educadores que realmente se preocupa com a qualidade e a qualificação profissional futura de seus alunos é tolice.<br />
<br />
Pensem nisso e até próxima.KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-65949520343983211212013-05-29T09:07:00.001-07:002013-05-29T09:08:52.591-07:00Box2D erro ou error no destroyBodyE hoje estava lá brincando com meu Box2D (uma biblioteca de física para games) gastei o dia todo estudando ele, sabe o que é nem sair para comer? Em fim, trombei com um erro que consegui driblar, mas que não sei se é o jeito correto. Se alguém souber um jeito melhor poste nos comentário.<br />
<br />
<div style="background-color: orange; text-align: center;">
Código</div>
<div style="background-color: black; text-align: left;">
<div>
<span style="color: lime;">//Método que verifica uma colisão no jBox2D</span><br />
<div style="color: white;">
public void verificarColisao(){</div>
<div style="color: white;">
<br /></div>
<span style="color: lime;">//Step é o que faz o mundo andar </span><br />
<div style="color: white;">
mundo.step(0.1f, 6, 2);</div>
<div style="color: white;">
<br /></div>
<span style="color: lime;">//Método que verifica a colisão de 2 corpos </span></div>
<span style="color: white;">mundo.setContactListener(new ContactListener(){</span><br />
<span style="color: white;"><br /></span>
<br />
<span style="color: lime;">//Se houve um contato cai aqui</span><br />
<span style="color: white;">public void beginContact(Contact contact) {</span><br />
<br />
<span style="color: lime;">//Captura os 2 corpos que fizeram contato atribuindo a um Objeto Corpo</span><br />
<span style="color: white;">Body corpoA = contact.getFixtureA().getBody();</span><br />
<span style="color: white;">Body corpoB = contact.getFixtureB().getBody();</span><span class="Apple-tab-span" style="color: white; white-space: pre;"> </span><span style="color: white;"> </span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span> </span><br />
<span style="color: lime;">//Verifica se os corpos são do tipo Bola, poderia ser de tipos distintos como Bala e Garrafa, mas aqui são 2 bolas que irão se explodir ao se tocarem</span><br />
<span style="color: white;"> if((corpoA.getUserData().equals("Bola") &&</span><br />
<span style="color: white;"> corpoB.getUserData().equals("Bola")) ||</span><br />
<span style="color: white;"> (corpoB.getUserData().equals("Bola") && </span><br />
<span style="color: white;"> corpoA.getUserData().equals("Bola")) </span><br />
<span style="color: white;"> ){</span><br />
<span class="Apple-tab-span" style="white-space: pre;"><span style="color: white;"> </span><span style="color: red;">//Aqui que mora o problema, se usarmos </span></span><span style="color: white;"><span style="white-space: pre;">mundo.destroyBody</span></span><span style="color: white;">(</span><span style="color: white;">corpoA); </span><span style="color: red;">irá gerar um erro. O motivo acredito seja porque ainda esteja em meio a testes de colisão. Para consertar isso adicionei os corpos que desejo remover em uma Matriz Array chamada de </span><span style="color: white;">corposRemove </span><span style="color: red;">e no final do código mando passar por todos os corpos que desejo remover.</span><br />
<span style="color: red;"><br /></span>
<span style="color: white;"><span style="white-space: pre;"> </span>corposRemove.add(corpoA);</span><br />
<span style="color: white;"><span style="white-space: pre;"> </span>corposRemove.add(corpoB);</span><br />
<span class="Apple-tab-span" style="color: white; white-space: pre;"> </span><span style="color: white;"> </span><br />
<span style="color: white;">}</span><br />
<span style="color: white;"><br /></span>
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>@Override</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>public void endContact(Contact contact) {</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>// TODO Auto-generated method stub</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>Gdx.app.log("Aviso:", "Fim do contato");</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}</span><br />
<span style="color: white;"><br /></span>
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>@Override</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>public void preSolve(Contact contact, Manifold oldManifold) {</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>// TODO Auto-generated method stub</span><br />
<span class="Apple-tab-span" style="white-space: pre;"><span style="color: white;"> </span></span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}</span><br />
<span style="color: white;"><br /></span>
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>@Override</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>public void postSolve(Contact contact, ContactImpulse impulse) {</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>// TODO Auto-generated method stub</span><br />
<span class="Apple-tab-span" style="white-space: pre;"><span style="color: white;"> </span></span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}</span><br />
<span class="Apple-tab-span" style="white-space: pre;"><span style="color: white;"> </span></span><br />
<span style="color: white;">});</span><br />
<span style="color: white;"><br /></span>
<span style="color: lime;"> //Podemos colocar um If aqui para ver se há corpos que desejamos retirar a fim de evitar processo desnecessário, passamos pela lista de corpos e se acharmos algumo destruimos .</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>for(int i =0; i < corposRemove.size; i++){</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span> mundo.destroyBody(corposRemove.get(i));</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span> corposRemove.removeIndex(i);</span><br />
<span style="color: white;"><span class="Apple-tab-span" style="white-space: pre;"> </span>}.</span><span style="color: white; white-space: pre;"> </span><br />
<span style="color: white;">}</span><br />
<div style="color: white;">
<br /></div>
</div>
<br />
Bom, como pudemos ver para se remover um corpo de forma correta devemos destrui-lo após ter saido das verificações de colisão. Um private Iterator<body> corpos; poderia tb dar a ilusão de ter removido um corpo dentro do jogo, mas tudo o que fazemos é remover a fixture dele mantendo o corpo dentro do World ... É necessario sua destruição para bom funcionamento do jogo. Não esqueça também de chamar o dispose da textura usada, para liberar memória. Até a próxima :)</body>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-89003128682272918402013-02-02T23:17:00.001-08:002013-02-02T23:17:51.057-08:00ShaderProgram Utility<br />
ShaderProgram Utility<br />
Este pagina demonstra passos necessários para se criar o sua própria classe re-utilizável através do utilitário ShaderProgram. Você também pode usar o mais avançado utilitário de ShaderProgram já incluído no LWJGL-básico: ver aqui.<br />
<div>
<br /></div>
<div>
<div>
Para nossos propósitos, vamos usar apenas um vértice e um fragmento de shader para criar os nossos programas de sombreamento. Planejamos visar o GL 2.1, que também terá de especificar os locais de atributos manualmente. Se for usar versões mais recentes do OpenGL (ou seja, GLSL 330 +), então podemos especificar os locais de atributos com qualificadores do tipo em seu lugar. Os passos básicos para a criação de um programa de shader como este são:</div>
<div>
<br /></div>
<div>
Compilar o código fonte em um vértice shader shader objeto.</div>
<div>
<br /></div>
<div>
Compilar o código fonte em um fragmento de shader shader objeto.</div>
<div>
<br /></div>
<div>
Criar um programa com ID glCreateProgram.</div>
<div>
<br /></div>
<div>
Anexar os objetos vertex e shader para o nosso programa com glAttachShader.</div>
<div>
Se nós estamos usando 2.1, é aqui que ligaria quaisquer atributos manualmente. Por exemplo, poderíamos vincular o atributo posição de índice 0. Para isso, usamos glBindAttribLocation. Se nós estamos usando versões mais recentes do GLSL, podemos pular essa etapa.</div>
<div>
<br /></div>
<div>
Em seguida, ligar o programa com glLinkProgram.</div>
<div>
<br /></div>
<div>
Se o programa conseguiu compilar, agora podemos separar e excluir os objetos de sombreamento da vértice e fragmento como eles não são mais necessários - usando glDetachShader e glDeleteShader, respectivamente. Estes são apenas avisam para o OpenGL, que os objetos serão apagados quando eles não estão mais associados com quaisquer estados de renderização.</div>
<div>
<br /></div>
<div>
Exemplo:</div>
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">ShaderProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">Map</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Integer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">></span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throws</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">LWJGLException</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//compile the String source</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_VERTEX_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FRAGMENT_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//create the program</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCreateProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//attach the shaders</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glAttachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glAttachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//bind the attrib locations for GLSL 120</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span> <span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">for</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Entry</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Integer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">></span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">:</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">entrySet</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">())</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glBindAttribLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">getKey</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(),</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">getValue</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">());</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//link our program</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glLinkProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//grab our info log</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgramInfoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgrami</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_INFO_LOG_LENGTH</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">));</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if some log exists, append it </span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span><span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">&&</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">trim</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">().</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">length</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()!=</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">log</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if the link failed, throw some sort of exception</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgrami</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_LINK_STATUS</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FALSE</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throw</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">new</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">LWJGLException</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span>
<span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"Failure in linking program. Error log:\n"</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//detach and delete the shaders which are no longer needed</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDetachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDetachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">protected</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">source</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throws</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">LWJGLException</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//create a shader object</span>
<span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCreateShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//pass the source string</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glShaderSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">source</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//compile the source</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCompileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if info/warnings are found, append it to our shader log</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderInfoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_INFO_LOG_LENGTH</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">));</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span><span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">&&</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">trim</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">().</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">length</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()!=</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">log</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">getName</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span><span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">": "</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"\n"</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if the compiling was unsuccessful, throw an exception</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_COMPILE_STATUS</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FALSE</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throw</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">new</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">LWJGLException</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"Failure in compiling "</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">getName</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">". Error log:\n"</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span></pre>
</div>
<div>
Usando o programa:</div>
<div>
<div>
Em OpenGL, só podemos ter um programa único de shader em uso ao mesmo tempo. Chamamos glUseProgram (programa) para especificar o programa ativo. Devemos especificar o glUseProgram (0) para usar o "default" do shader. No entanto, uma vez que estamos tentando trabalhar com o pipeline programável, não devemos mais nos preocupar com o shader padrão, já que não existe tal coisa no GL moderna. Na verdade, ele pode causar erros se tentarmos renderização com o shader padrão no GL 3.1 + </div>
<div>
<br /></div>
<div>
Assim, nossos métodos para se criar um programa final ficará assim::</div>
</div>
<div>
<br /></div>
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Make this shader the active program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">use</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUseProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Destroy this shader program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">destroy</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//a flag for GL -- the program will not actually be deleted until it's no longer in use</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Gets the location of the specified uniform name.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param str the name of the uniform</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @return the location of the uniform in this program</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">getUniformLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">str</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">glGetUniformLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">str</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span></pre>
</div>
</div>
<div>
Definir valores uniformes:</div>
<div>
<br /></div>
<div>
<div>
Tal como discutido anteriormente na série, usamos glUniform para passar dados uniformes para os nossos shaders. Um utilitário ShaderProgram completa pode incluir diversos utilitários para obter e definir uniformes (veja aqui). Nosso exemplo simples irá lidar com o mínimo de: matrizes e uniformes inteiros (para sampler2D).</div>
</div>
<div>
<br /></div>
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Sets the uniform data at the specified location (the uniform type may be int, bool or sampler2D). </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param loc the location of the int/bool/sampler2D uniform </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param i the value to set</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">setUniformi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==-</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUniform1i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Sends a 4x4 matrix to the shader program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param loc the location of the mat4 uniform</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param transposed whether the matrix should be transposed</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param mat the matrix to send</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">setUniformMatrix</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">boolean</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">transposed</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">Matrix4f</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">mat</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==-</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">BufferUtils</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">createFloatBuffer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">16</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">clear</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">mat</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">store</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">flip</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUniformMatrix4</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">transposed</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span></pre>
</div>
<div>
Código fonte completo:</div>
<div>
<br /></div>
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">class</span> <span class="nc" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">ShaderProgram</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">protected</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">static</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">FloatBuffer</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Makes the "default shader" (0) the active program. In GL 3.1+ core profile,</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * you may run into glErrors if you try rendering with the default shader. </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">static</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">unbind</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUseProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">final</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">final</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">final</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">protected</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">log</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">ShaderProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throws</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">LWJGLException</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">this</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Creates a new shader from vertex and fragment source, and with the given </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * map of <integer string=""> attrib locations</integer></span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param vertexShader the vertex shader source string</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param fragmentShader the fragment shader source string</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param attributes a map of attrib locations for GLSL 120</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @throws LWJGLException if the program could not be compiled and linked</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">ShaderProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">Map</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Integer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">></span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throws</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">LWJGLException</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//compile the String source</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertexShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_VERTEX_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragmentShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FRAGMENT_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//create the program</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCreateProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//attach the shaders</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glAttachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glAttachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//bind the attrib locations for GLSL 120</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span> <span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">for</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Entry</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">Integer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">></span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">:</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">attributes</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">entrySet</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">())</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glBindAttribLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">getKey</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(),</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">e</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">getValue</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">());</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//link our program</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glLinkProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//grab our info log</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgramInfoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgrami</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_INFO_LOG_LENGTH</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">));</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if some log exists, append it </span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span><span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">&&</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">trim</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">().</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">length</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()!=</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">log</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if the link failed, throw some sort of exception</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetProgrami</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_LINK_STATUS</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FALSE</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throw</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">new</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">LWJGLException</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span>
<span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"Failure in linking program. Error log:\n"</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//detach and delete the shaders which are no longer needed</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDetachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDetachShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">vertex</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">fragment</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/** Compile the shader source as the given type and return the shader object ID. */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">protected</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">compileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">source</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throws</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">LWJGLException</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//create a shader object</span>
<span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCreateShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//pass the source string</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glShaderSource</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">source</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//compile the source</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glCompileShader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if info/warnings are found, append it to our shader log</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderInfoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_INFO_LOG_LENGTH</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">));</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">!=</span><span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">&&</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">trim</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">().</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">length</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()!=</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">log</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">getName</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span><span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">": "</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"\n"</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//if the compiling was unsuccessful, throw an exception</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">glGetShaderi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_COMPILE_STATUS</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FALSE</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">throw</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">new</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">LWJGLException</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"Failure in compiling "</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">getName</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">type</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">". Error log:\n"</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">+</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">infoLog</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">shader</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">protected</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">getName</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">shaderType</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shaderType</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_VERTEX_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"GL_VERTEX_SHADER"</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">shaderType</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">GL_FRAGMENT_SHADER</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"GL_FRAGMENT_SHADER"</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">else</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="s" style="border: 0px; color: #dd1144; margin: 0px; padding: 0px;">"shader"</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Make this shader the active program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">use</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUseProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Destroy this shader program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">destroy</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">()</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glDeleteProgram</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Gets the location of the specified uniform name.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param str the name of the uniform</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @return the location of the uniform in this program</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">getUniformLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">String</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">str</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">glGetUniformLocation</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">program</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">str</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/* ------ UNIFORM SETTERS/GETTERS ------ */</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Sets the uniform data at the specified location (the uniform type may be int, bool or sampler2D). </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param loc the location of the int/bool/sampler2D uniform </span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param i the value to set</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">setUniformi</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==-</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUniform1i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">i</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">/**</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * Sends a 4x4 matrix to the shader program.</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param loc the location of the mat4 uniform</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param transposed whether the matrix should be transposed</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> * @param mat the matrix to send</span>
<span class="cm" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;"> */</span>
<span class="kd" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">public</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">void</span> <span class="nf" style="border: 0px; color: #990000; font-weight: bold; margin: 0px; padding: 0px;">setUniformMatrix</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">int</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="kt" style="border: 0px; color: #445588; font-weight: bold; margin: 0px; padding: 0px;">boolean</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">transposed</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">Matrix4f</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">mat</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">{</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==-</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span> <span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">return</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">;</span>
<span class="k" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">if</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">==</span> <span class="kc" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">null</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">=</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">BufferUtils</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">createFloatBuffer</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">16</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">clear</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">mat</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">store</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">flip</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">glUniformMatrix4</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">loc</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">transposed</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">buf16Pool</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span>
<span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">}</span></pre>
</div>
<div>
Fonte: https://github.com/mattdesl/lwjgl-basics/wiki/ShaderProgram-Utility</div>
KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-74878831539906289072013-02-02T14:08:00.004-08:002013-02-02T14:09:13.977-08:00Batching Sprite<br />
<h1 class="instapaper_title" style="background-color: white; border: 0px; color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 32px; margin: 0px; padding: 0px;">
Batching Sprite</h1>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">Se nós tentamos usarmos o debugTexture do tutorial texturas para processar todos os nossos sprites e tiles, as chances de que haja problemas de desempenho são grandes. Isto é porque estamos apenas colocando um sprite em um momento para a GPU. O que nós precisamos é de "lote" sprites para a melhoria do desempenho, por isso usamos um SpriteBatch.</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<h2 style="-webkit-font-smoothing: antialiased; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 24px; margin: 20px 0px 10px; padding: 0px; position: relative;">
Intro</h2>
</div>
<div>
<div>
Como discutido no tutorial texturas, um sprite é nada mais do que um conjunto de vértices que compõem uma forma retangular. Cada vértice contém um certo número de atributos que a definem, tais como:</div>
<div>
<br /></div>
<div>
Posição (x, y) - onde o vértice encontra-se na tela</div>
<div>
TexCoord (s, t) - o que a região da nossa textura deseja processar</div>
<div>
Cor (r, g, b, a) - o vértice de cor, utilizado para especificar tingimento ou transparência</div>
<div>
Doseadores mais sprites são bastante simples de usar, e pode ser parecido com isso no seu jogo:</div>
</div>
<div>
<br /></div>
<div>
<div class="highlight" style="background-color: white; border: 0px; margin: 0px; padding: 0px;">
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//called on game creation</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="kd" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">public</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="kt" style="border: 0px; color: #445588; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">void</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="nf" style="border: 0px; color: #990000; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">create</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">()</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">{</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//create a single batcher we will use throughout our application</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">=</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="k" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">new</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">SpriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">();</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">}</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//called on frame render</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="kd" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">public</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="kt" style="border: 0px; color: #445588; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">void</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="nf" style="border: 0px; color: #990000; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">render</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">()</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">{</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//prepare the batch for rendering</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">begin</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">();</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//draw all of our sprites</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">mySprite1</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">x</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">y</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">);</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">mySprite2</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">x</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">y</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">);</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">...</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//end the batch, flushing the data to GPU</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">end</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">();</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">}</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//called when the display is resized</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="kd" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">public</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="kt" style="border: 0px; color: #445588; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">void</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="nf" style="border: 0px; color: #990000; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">resize</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">(</span><span class="kt" style="border: 0px; color: #445588; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">int</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">width</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="kt" style="border: 0px; color: #445588; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">int</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">height</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">)</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">{</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//notify the sprite batcher whenever the screen changes </span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">resize</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">width</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">height</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">);</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">}</span><span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px; white-space: normal;"><b>
</b></span></span></pre>
<div>
<span class="o" style="border: 0px; font-size: 14px; line-height: 17.59375px; margin: 0px; padding: 0px;"><span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;">Primeiro, begin() o batch, nós simplesmente dizemos que ele está em "modo de desenho" e chamamos o use() em nosso programa de shader. Então, chamando spriteBatch.Draw (...) colocamos as informações da vértice do sprite (posição, texcoord, cor) em uma pilha muito grande. Os vértices não são passados para a GPU até que uma das seguintes situações ocorra:</span></span></div>
<div>
<span class="o" style="border: 0px; font-size: 14px; line-height: 17.59375px; margin: 0px; padding: 0px;"><span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><br /></span></span></div>
<div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">O batch é forçado a render com o end () ou em outra ligação que libera o batch, como flush ()</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">O usuário tenta desenhar um sprite que usa uma textura diferente do que o último. O batch tem de ser limpado e novamente texturizar antes de podermos continuar</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">Chegamos a capacidade de nossa pilha, por isso precisamos liberar para começar tudo de novo</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">Esta é a ideia básica por trás de um doseador sprite. Como você pode ver, usando muitas texturas vai levar a muitas chamadas (como o batch terá de lavar para cada nova textura). É por isso que uma textura atlas (folha de sprite AKA) é sempre recomendado, que nos permite prestar muitos sprites em uma chamada de desenho único.</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;">A API LWJGL-básico inclui uma implementação SpriteBatch mínima para se usar</span></span></div>
</div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px;"><br /></span></span></div>
<div>
<h2 style="-webkit-font-smoothing: antialiased; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 24px; margin: 20px 0px 10px; padding: 0px; position: relative;">
TextureRegion</h2>
</div>
<div>
Como discutido, para o melhor desempenho, deve-se usar um atlas de texturas e desenhar as regiões dele (AKA sub-imagens) para colocar as sprites em nosso jogo. Para isso temos uma classe TextureRegion. Ela nos permite especificar em pixels a posição do eixo (x, y) e seu tamanho (altura, largura) da nossa imagem </div>
<div>
<br /></div>
<div>
Vamos dar um exemplo, onde queremos tornar nossa Sprite um destaque:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgItl3jvgYz9r5miw3Q0DI_IiVzIJFll4Wa929BGuGyjLb_wJh9kx1B9Xfv1ZfznImhGsAg0FUerbtBYXnvVuKvd5cygMgfzJ47pqsisRpL3k9-8a5irVagGrP2SkAX5w2c_nVbNSRzUiIK/s1600/687474703a2f2f692e696d6775722e636f6d2f6e7758554d2e706e67.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgItl3jvgYz9r5miw3Q0DI_IiVzIJFll4Wa929BGuGyjLb_wJh9kx1B9Xfv1ZfznImhGsAg0FUerbtBYXnvVuKvd5cygMgfzJ47pqsisRpL3k9-8a5irVagGrP2SkAX5w2c_nVbNSRzUiIK/s1600/687474703a2f2f692e696d6775722e636f6d2f6e7758554d2e706e67.png" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Imagem da Sprite</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Podemos ter uma TextureRegion da Sprite com o seguinte:</div>
<div>
<div class="highlight" style="border: 0px; margin: 0px; padding: 0px;">
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="c1" style="border: 0px; color: #999988; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19px; margin: 0px; padding: 0px;">//specify x, y, width, height of tile</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;">
</span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">region</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">=</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="k" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">new</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="n" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">TextureRegion</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">64</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="mi" style="border: 0px; color: #009999; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">64</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="mi" style="border: 0px; color: #009999; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">64</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">,</span><span style="color: #333333; font-family: Consolas, Liberation Mono, Courier, monospace;"><span style="line-height: 19px;"> </span></span><span class="mi" style="border: 0px; color: #009999; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px;">64</span><span class="o" style="border: 0px; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; font-weight: bold; line-height: 19px; margin: 0px; padding: 0px;">);</span><span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;"><span style="font-size: 14px; line-height: 17.59375px; white-space: normal;"><b>
</b></span></span></pre>
<div>
<span class="o" style="border: 0px; font-size: 14px; line-height: 17.59375px; margin: 0px; padding: 0px;"><span style="color: #333333; font-family: Helvetica, arial, freesans, clean, sans-serif;">Como você pode ver, o TextureRegion nos permite obter sub-imagens sem se preocupar com o cálculo das coordenadas da textura. Podemos, então, desenhar nossa sprite do Batshing Sprite assim:</span></span><br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="o" style="border: 0px; font-size: 14px; line-height: 17.59375px; margin: 0px; padding: 0px;"><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">...</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">inside</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">SpriteBatch</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">begin</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">/</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">end</span> <span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">...</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">region</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">x</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="n" style="border: 0px; margin: 0px; padding: 0px;">y</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span></span></pre>
</div>
</div>
</div>
</div>
</div>
<h2 style="-webkit-font-smoothing: antialiased; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; cursor: text; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 24px; margin: 20px 0px 10px; padding: 0px; position: relative;">
Vertex Color</h2>
<div>
<div>
Nós podemos mudar a coloração e transparência de todos os sprites através da "cor de vértice."</div>
<div>
<br /></div>
<div>
O RGB resultante é multiplicada pela cor, textura, assim se utilizou uma textura branca (1, 1, 1, 1) e uma cor especificada na vértice como (1, 0, 0, 1), o resultado seria o vermelho. O componente alfa da cor nos permite ajustar a opacidade dos sprites desenhados na tela.</div>
</div>
<div>
<br /></div>
<div>
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px;"><span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">begin</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//draw calls will now use 50% opacity</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">setColor</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mf" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">0.5f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(...);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(...);</span>
<span class="c1" style="border: 0px; color: #999988; font-style: italic; margin: 0px; padding: 0px;">//draw calls will now use 100% opacity (default)</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">setColor</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(</span><span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">,</span> <span class="mi" style="border: 0px; color: #009999; margin: 0px; padding: 0px;">1</span><span class="n" style="border: 0px; margin: 0px; padding: 0px;">f</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">draw</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">(...);</span>
<span class="n" style="border: 0px; margin: 0px; padding: 0px;">spriteBatch</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">.</span><span class="na" style="border: 0px; color: teal; margin: 0px; padding: 0px;">end</span><span class="o" style="border: 0px; font-weight: bold; margin: 0px; padding: 0px;">();</span></pre>
</div>
Na série anterior, pensávamos que nossa texturas era um quadrado por ter quatro pontas, mas na realidade o Sprite Batch vai usar dois triângulos adjacentes para representar um sprite retangular. Os vértices podem ser ordenados de maneira diferente dependendo do motor (No LibGDX tende-se a usar da parte inferior para a esquerdo), mas a ideia básica é assim:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRYNRfZseK6yws2r1kR9Z6XLSVxN-DGbZPJSsegeEraLcgIxaulNkHE6sh1yxNyb-g9JPUon1SPN8ddCIGQlWcp-0kUvTorsN3e8B0JO37rT5NHiweoZjoSdFN-Ku13w3mOZLNEuR9cRo/s1600/187474703a2f2f692e696d6775722e636f6d2f35644f67612e706e67.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRYNRfZseK6yws2r1kR9Z6XLSVxN-DGbZPJSsegeEraLcgIxaulNkHE6sh1yxNyb-g9JPUon1SPN8ddCIGQlWcp-0kUvTorsN3e8B0JO37rT5NHiweoZjoSdFN-Ku13w3mOZLNEuR9cRo/s1600/187474703a2f2f692e696d6775722e636f6d2f35644f67612e706e67.png" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Um única sprite possui dois triângulos ou seis vértices. Cada vértice tem oito atributos (X, Y, S, T, R, G, B, A), que juntos formam Posição, TexCoord e Cor. Isto significa que a cada sprite, estamos empurrando 48 floats para uma pilha! Um Sprite Batcher mais otimizado pode compactar o RGBA em um único float , ou pode abrir mão de algumas cores da vértice.<br />
<br />
E agora?<br />
<br />
<br />
Criar o seu próprio batcher Sprite não é fácil, e requer a compreensão de shaders, buffers de vértice, e matemática matriz básica. Antes de mergulhar nestes tópicos avançados, recomendo ficar mais expete com o SpriteBatcher fornecido para você pelo LWJGL-básico. Alternativamente, você pode usar o LibGDX como a implementação, pois ele é muito semelhante. Você também deve se sentir confortável com GLSL antes de tentar a sua própria batcher Sprite.<br />
<br />
Se você ainda está interessado em aprender mais sobre como tudo funciona, veja o ShaderProgram e os artigos SpriteBatcher.<br />
<br />
Fonte: https://github.com/mattdesl/lwjgl-basics/wiki/Sprite-BatchingKlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-78173615071554087382013-01-08T21:01:00.000-08:002013-01-08T21:01:10.285-08:00<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Nome:</strong><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> Partículas</span><br />
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Descrição:</strong><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> Esse tutorial tem a pretensão de mostrar como usar as partículas no game maker</span><br />
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Nível de dificuldade:</strong><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> Mediano. Conhecer alguns conceitos (ver abaixo) é desejável em alguns momentos.</span><br />
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Requerimentos:</strong><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> Versão PRO do game maker (usei o 8.0, mas acredito que em qualquer versão seja igual). É recomendável entender como funcionam as </span><a href="http://gmbr.forumeiros.com/t16447-tutorial-cores" style="background-color: #eaf2f7; color: #105289; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-decoration: initial;">cores</a><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> e os </span><a href="http://gmbr.forumeiros.com/t16940-tutorial-blend-modes" style="background-color: #eaf2f7; color: #105289; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-decoration: initial;">blend modes</a><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"><br /></span>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Antes de qualquer coisa: eu NÃO VOU traduzir o que o manual diz. Já temos uma versão traduzida do manual </span><a href="http://gmbr.forumeiros.com/t18696-download-manual-game-maker-8-traduzido" style="background-color: #eaf2f7; color: #105289; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-decoration: initial;">aqui</a><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">. Uma vez traduzida a parte referente a partículas do manual, a coisa toda deveria ficar muito simples. Deveria.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Mas na prática, não é o que acontece. Surge um monte de dúvidas. A principal delas:</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">- Como organizar meu sistema de partículas? (Que valores usar em cada função?)</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">E, menos importantes:</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">- Se o manual diz que eu só preciso organizar meu sistema de partículas uma vez no jogo inteiro, isso significa que qualquer variável usada será automaticamente global?</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">- Quando usar partículas?</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">- Pra que fazer isso, afinal?</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">- O que eu posso fazer com elas, além de efeitos especiais?</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Esse tutorial tem a pretensão de responder a todas essas dúvidas. Se alguma permanecer sem resposta ao final da leitura, por favor entre em contato (eu não vou respondê-las diretamente, isso fica como exercício pra você).</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Entretanto, é impossível fazer isso sozinho. Uma particularidade das partículas é a forma que elas se comportam em conjunto, em movimento. Explicar ou mesmo ilustrar isso é impossível. Portanto, eu pretendo soltar alguns conceitos e códigos e espero que você teste cada um deles na sua máquina. A partir desses testes, suas perguntas serão respondidas sozinhas. Pense nesse tutorial mais como um estudo dirigido do que propriamente um tutorial.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Ah, volta-e-meia eu vou abrir um parêntese pra comentar um pouco do vocabulário usado. Eu não gosto dos nomes escolhidos.</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Chega de introdução, vamos ao que interessa!</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">O que são partículas?</strong><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Partículas são objetos com uma série de códigos "</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">built-in</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">" e que não permitem a inserção de mais nenhum código. Isso torna as partículas muito leves, permitindo a inserção de centenas, se não milhares, de partículas no jogo ao mesmo tempo, um número muito maior que de objetos comuns.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"><br /></span>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Esses códigos "</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">built-in</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">" usam uma série de parâmetros que moldam as partículas, fazendo-as se comportarem das mais diversas formas. Basicamente, esses códigos interferem na forma, cor e movimentação. Tem um pouco mais, mas não muito. Pra uma informação geral, lembre-se que você pode interferir nisso: forma, cor e movimentação.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Elas têm um tempo de vida pré-determinado e são destruídas ao final desse tempo.</span><br />
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"><br /></span>
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Quando a gente diz "partícula" (particles, no original), fica a impressão de que estamos falando de objetinhos pequenininhos, microscópicos, mas que numa quantidade muito grande acabam ficando visíveis na tela.</span><br />
<br style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Embora isso até possa ser verdade, está longe de ser a regra. Uma única partícula pode ocupar a tela inteira, se preciso. Elas têm sprites que não são nem um pouco microscópicos (você pode até criar uma sprite de qualquer tamanho, pra não ficar só nas built-ins).</span><br />
<br />
<br />
<dl class="codebox spoiler" style="background-color: white; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; border-top-left-radius: 7px; border-top-right-radius: 7px; border: 1px solid rgb(201, 210, 216); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;"><dd style="margin: 0px; padding: 0px;"><div class="spoiler_content hidden" style="margin: 0px; padding: 0px 5px;">
Eu preferiria o termo "<strong style="margin: 0px; padding: 0px;">objetos leves</strong>"</div>
</dd></dl>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Agora, uma apresentação formal. Partículas, essa é a galera da GMBR. Galera, essas são as partículas:</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglP1LwPRxsDuQWKCJgAeTGD5SoNddoNB0OINggJYC3ljYmMHy068_0-Tw0n5ElQpmROv7wasLko4ldFRd16AoO6IE891oxlpk3URMKf2FatT9esPpQ3cDfeCWbKlbdu35wm2BhMkP_epz/s1600/part%C3%ADculas.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhglP1LwPRxsDuQWKCJgAeTGD5SoNddoNB0OINggJYC3ljYmMHy068_0-Tw0n5ElQpmROv7wasLko4ldFRd16AoO6IE891oxlpk3URMKf2FatT9esPpQ3cDfeCWbKlbdu35wm2BhMkP_epz/s400/part%C3%ADculas.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Os nomes delas são:</span></div>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">0: pt_shape_pixel</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">1: pt_shape_disk</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">2: pt_shape_square</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">3: pt_shape_line</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">4: pt_shape_star</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">5: pt_shape_circle</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">6: pt_shape_ring</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">7: pt_shape_sphere</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">8: pt_shape_flare</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">9: pt_shape_spark</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">10: pt_shape_explosion</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">11: pt_shape_cloud</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">12: pt_shape_smoke</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">13: pt_shape_snow</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Não se enganem, elas são mais elaboradas do que parecem. Têm pixels com alpha baixo pra todo lado, de forma que se juntarmos um monte delas no mesmo lugar, o visual fica diferente. Eis como ficam 100 delas empilhadas:</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhfxAtj3nNoJxaIiKzRljvge9XdrAvH4wzV6GU7bQkuchVY8x6Q4A-U6rCKMoHOIGbn92YGmFCZ3TO0iztTMM5VVLBLrSGa7CidMODLBL8Rum5Arbts8-KN7ECRCT2DFPJ6UffuAdOBYHV/s1600/100part%C3%ADculas.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="192" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhfxAtj3nNoJxaIiKzRljvge9XdrAvH4wzV6GU7bQkuchVY8x6Q4A-U6rCKMoHOIGbn92YGmFCZ3TO0iztTMM5VVLBLrSGa7CidMODLBL8Rum5Arbts8-KN7ECRCT2DFPJ6UffuAdOBYHV/s320/100part%C3%ADculas.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">Como funcionam as partículas?</strong></div>
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">É o seguinte, as partículas têm que surgir de algum lugar. Pra determinar onde elas vão surgir, existe um "criador de partículas" chamado </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitter</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">. É ele quem vai, de fato, criar os objetos-partículas. Então, sim, você pode pensar num </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitter</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> como um objeto especial, sem sprite nem coordenadas, que cria as partículas determinadas nas coordenadas determinadas.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Quando a gente diz "emitter" (emissor), fica a impressão de que as partículas sairão com alguma velocidade, que estamos usando um canhão e LANÇANDO partículas pela tela.</span></div>
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Não, só estamos criando. Elas se lançam sozinhas, em função da direção e velocidade inicial. Se não tiverem velocidade nem gravidade, elas ficam quietinhas, onde foram criadas.</span><br />
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Eu preferiria o termo "</span><strong style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">criador de partículas</strong><span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">"</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Esses </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitters</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> podem ser entendidos como </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">child</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> de um objeto </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">parent</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">. Esse parent seria o sistema de partículas. A princípio, isso parece uma bobagem, afinal se temos os </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitters</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">, pra que criar um </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">parent</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> pra eles? Eles não podem se virar sozinhos?</span></div>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Poder, podem, mas é que não existem comandos pras partículas - lembre-se, a idéia é mantê-las LEVES. Então suponha que você quer fazer uma transição de </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">rooms</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> e está com a tela entulhada de partículas. Suponha que essa transição não fique perfeita se essas partículas continuarem na </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">room</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">. O que você faz?</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;" /></div>
<span style="background-color: #eaf2f7; color: magenta; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">Você usa um comando "<i style="margin: 0px; padding: 0px;">with (particles){ instance_destroy() }</i>"</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Errado, as partículas podem ser ENTENDIDAS como objetos, mas não são objetos "de verdade". Além disso, que raio de variável é essa, "particles"? De onde você tirou que ela foi declarada em algum momento? Mas a resposta é de um raciocínio parecido. Mais alguém?</span><br />
<span style="background-color: #eaf2f7; color: magenta; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">Você cria um <i style="margin: 0px; padding: 0px;">Destroyer</i> que ocupa a <i style="margin: 0px; padding: 0px;">room</i> inteira!</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">É... Isso resolveria... Mas não é a resposta que eu esperava. Além disso, não falei nada a respeito de </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">destroyers</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">, ainda.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;" /></div>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Existe um comando pra eliminar todas as partículas de um sistema. Esse comando ignora qual foi o </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitter</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"> que criou a partícula, qual a posição dela ou quanto tempo de vida ela já percorreu. Você digita o comando (</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">part_particles_clear</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">, pra matar a curiosidade), coloca qual o sistema você quer "limpar" e pronto, as partículas não estão mais lá.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Na verdade, existem comandos de sistemas de partículas que até dispensam os</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitters</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">, mas eles acabam sendo úteis pra generalizar a distribuição de partículas, então resolvi apresentá-los primeiro.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;" /></div>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Mas o fato é que além dos </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitters</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">, existem outros "objetos" que existem dentro de um sistema de partículas. São os Atratores (</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">attractors</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">), destruidores (</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">destroyers</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">), defletores (</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">deflectors</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">) e alteradores (</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">changers</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">). ESSES, têm nomes adequados. Os comandos desses "objetos" levam em conta o sistema em que as partículas foram criadas, independente do </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;">emitter</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">. Portanto, todas as partículas de um sistema, por mais heterogêneas que sejam, reagem a esses "objetos" de forma igual.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px; text-align: start;" /></div>
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;">Como eu disse no começo do tutorial, não vou traduzir o manual. Os comandos são bem simples, apesar da quantidade. Leiam e saibam como usar cada um desses objetos.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; text-align: start;"><br /></span></div>
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Pra que servem as partículas?</strong><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">É uma boa pergunta, apesar da resposta ser meio óbvia. Mas deixa eu enrolar um pouco aqui: um "objeto" que não aceita comandos diretos, não têm origem nem eventos (nem de colisão), não faz p*rra nenhuma, serve pra que, afinal?</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Bom, ele faz algumas coisas.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Ele nasce. Ele aparece na tela. Ele morre.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">E, se você fizer isso direitinho, ele deixa seu jogo bonito.</span><br />
<span style="background-color: #eaf2f7; color: magenta; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Essa complicação toda é só pra deixar o jogo bonitinho? Que frescura!</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Não é só "bonitinho". É um acabamento que dá um toque de profissionalismo que nenhuma sprite (sozinha) é capaz de fazer. Aliás, pra quem não sabe desenhar, muitas vezes, é uma mão na roda!</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">E partículas não são complicadas. É só um monte de comandos.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Enfim, elas servem pra efeitos especiais, substituindo objetos com comportamentos erráticos que não precisam ficar com a imagem muito bem definida. Por exemplo, fogo, areia, fumaça, neblina, energias etéreas. Um pouco de experimentação e você vai imaginar mais e mais utilidades.</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Foguetes têm uma cauda de fogo e fumaça. Por falar em cauda, cometas têm caudas cintilantes. Que jogo de luta tem impacto se os golpes não causam liberação de energia das mais diversas origens? Pântanos estão sempre cheios de vapores em toda a sua área. Magia sempre causa a liberação de forças etéreas.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Nem todo jogo precisa de partículas. Aliás, NENHUM jogo precisa de partículas. Mas todo jogo pode ter seu visual melhorado com elas.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"><br /></span>
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Como, então, usar as partículas?</strong><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Aí, meu amigo, é por sua conta. Você viu a quantidade de comandos que existem. Vai querer que eu te mostre como organizar CADA UM deles? Tenha dó.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">O negócio é sair experimentando.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Você quer uma atmosfera mística? Que tal um pouco de fumaça com vários tons de roxo?</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Quer um fogo frio? Que tal criar partículas com arestas irregulares (como pt_shape_square, pt_shape_snow ou pt_shape_spark), usando uma colorização azul aditiva, lançadas em todas as direções em baixa velocidade e com uma gravidade leve para cima?</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Poxa, então esse texto todo é inútil?</strong><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> ou: </span><strong style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">Finalmente algum código!!!</strong><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Tá bom, tá bom, vou dar umas dicas!</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Primeira dica: use o create event pra quase tudo. Os emissores podem ficar emitindo partículas indefinidamente, então não tem motivo pra usar outros eventos - a menos que você queira as partículas só em momentos específicos. Claro que, pra economizar memória, você vai querer limpar tudo depois de usar. Portanto, use um destroy_event, game_end_event, room_exit ou coisa do tipo pra destruir o sistema, os tipos de partículas, os emissores, defletores, alteradores e destruidores. Mas fora essas exceções, ponha tudo num evento que não se repita. Ah, você pode usar eventos comuns pra mudar a área de atuação dos </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">emitters</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">, também.</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Primeira coisa a fazer: crie o(s) sistema(s) de partículas. Tudo mais depende do sistema, então crie logo o sistema pra poder seguir em frente. Dê a ele um nome que você vai se lembrar que é um SISTEMA (e de pra que ele serve). Tipo "part_syst_caudaDoCometa" ou "sistema_poeira".</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Segunda dica: Experimente MUITO. A menos que você seja um designer gráfico, não vai conseguir visualizar o sistema antes dele ser implantado. Então tente cores claras e escuras, experimente as mais diversas shapes, orientações, escalar, velocidades, gravidades... tem muitas variáveis pra serem levadas em conta.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Uma coisa que eu sempre testo é o </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">additive_blend</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> com alpha menor que um. O</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">additive_blend</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> é ótimo com muitas instâncias sobrepostas e fundos diferentes do branco (porque qualquer coisa com </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">additive</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> some num fundo branco). Por falar em</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">additive_blend</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">, se for usá-lo, experimente várias cores de </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">background</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> e/ou</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">backgrounds irregulares</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Quer um códigozinho pra testar muita coisa? Deixa eu te mostrar como fiz aquelas imagens no começo... Muita coisa aí está escrita só pra servir de copy-paste. Eu fiz um monte de definições que são default. Como é um código comprido, vou esconder ele num spoiler.</span><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<dl class="codebox spoiler" style="background-color: white; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; border-top-left-radius: 7px; border-top-right-radius: 7px; border: 1px solid rgb(201, 210, 216); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">
<dt style="background-image: url(http://img339.imageshack.us/img339/5246/fundocategorias4.png); border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; border-bottom-style: none; border-top-left-radius: 7px; border-top-right-radius: 7px; cursor: pointer; font-size: 0.8em; font-weight: 700; margin: 0px; padding: 0px 0px 0px 8px; text-align: center; text-shadow: white 0px 0px 4px; text-transform: uppercase;">CÓDIGO PADRÃO:</dt>
<dd style="margin: 0px; padding: 0px;"></dd></dl>
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">//primeiro, define um índice pra cada shape</span><b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">var </b><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">i; i = </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><br />
<span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_pixel</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_disk</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_square</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 2</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_line</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 3</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_star</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 4</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_circle</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 5</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_ring</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 6</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_sphere</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 7</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_flare</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 8</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_spark</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 9</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_explosion</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 10</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_cloud</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 11</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_smoke</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 12</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">shape[i] = </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">pt_shape_snow</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">;</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// 13</span><br />
<span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">nShapes = i; </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">//13</span><br />
<span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// cria umas variáveis pras posições na tela</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">dx = (</span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">room_width</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> / (nShapes + </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">)) * </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">2</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// distância entre emitters</span><br />
<span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// organiza o sistema de partículas</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// cria o sistema</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">partSys = </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_system_create</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">();</span><br />
<br style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;" />
<b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">for</b><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(i = </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; i < nShapes; i += </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">)</span><b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">{</b><br />
<span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// cria a partícula</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> partType[i] = </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_create</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// um tipo pra cada shape</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_shape</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], shape[i]); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// coloca a shape no tipo (equivalente a sprite_index)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_size</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// tamanho real, sem escala (ou: escala=1)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_scale</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// proporção (x, y) (equivalente a image_xscale E image_yscale)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_orientation</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// as partículas sempre saem giradas no ângulo=0 (equivalente a image_angle)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_color1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], $ffffff); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// a cor a mesclar a sprite da partícula (branco resulta na cor original) (equivalente a image_blend)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_alpha1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// opacidade exatamente igual a da sprite (equivalente a image_alpha)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_blend</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// blend não é aditivo (equivalente a usar draw_set_blend_mode)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_life</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">30</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">30</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// um segundo de vida (suficiente pro F9) (equivalente a usar um alarme com instance_destroy())</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// não usarei part_type_step(ind,step_number,step_type) ou part_type_death(ind,death_number,death_type)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// não faz sentido usá-los pra mostrar cada partícula em separado</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_speed</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// velocidade nula (equivalente a definir speed)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_direction</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// direção igual a 0 graus, sempre (equivalente a definir direction)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_type_gravity</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">0</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// aceleração zero (equivalente a definir gravity E gravity_angle)</span><br />
<span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// cria o emissor</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> xi[i] = ((</span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> + i) * dx) </span><b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">mod </b><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">room_width</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">; </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">//posição inicial (X) de cada emissor</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> yi[i] = (</span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">room_height</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> / </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">3</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">) * (</span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> + ((</span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> + i) * dx) </span><b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">div </b><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">room_width</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">);</span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">//posição inicial (Y) de cada emissor</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> partEmit[i] = </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_emitter_create</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partSys); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">//cria o emissor</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_emitter_region</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partSys, partEmit[i], xi[i], xi[i], yi[i], yi[i],</span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">ps_shape_ellipse</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">, </span><span style="background-color: white; color: maroon; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">ps_distr_linear</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// define a região do emissor (um ponto só)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><span style="background-color: white; color: blue; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">part_emitter_stream</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">(partSys, partEmit[i], partType[i], </span><span style="background-color: white; color: #4080ff; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">1</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;">); </span><span style="background-color: white; color: green; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">// faz o emissor lançar as partículas pra sempre (se eliminada essa linha, ele não lançará nada)</span><span style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px;"> </span><b style="background-color: white; font-family: Courier, CourierNew, sans-serif; font-size: 10.857142448425293px; line-height: 14.44761848449707px; margin: 0px; padding: 0px;">}</b><br />
<br style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;" />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Últimas dicas: Bom, obviamente, você pode renomear as variáveis à vontade, e principalmente retirar esse uso de arrays - dificilmente você vai precisar de todas as shapes ao mesmo tempo. Brinque com os valores de cor, direção, gravidade, tamanho (usar escalas diferentes em x e y pode ser interessante), etc.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Sabe aqueles comandos que eu não usei? Eles servem pra criar novas partículas de outro tipo, ou no equivalente ao "</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">step_event</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">" ou no equivalente ao "</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">destroy_event</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">" (Não TEM que ser de outro tipo, mas imagine o que acontece se uma partícula cria outra(s) igualzinha a cada step). Tem situações em que é interessante ter partículas criadas no ponto em que tem outra partícula. Por exemplo, uma chuva de meteoros em que os meteoros são partículas e as caudas são formadas por outras partículas. Ou fogos de artifício, como no código que vem com o manual. Ou um poder tão poderoso que suas partículas soltam faíscas! Sei lá, sempre tem alguma coisa.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Existem outros tipos de definição pra cores e alpha (recomendo brincar com o</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">part_type_color_hsv()</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> ou </span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">part_type_color_mix()</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> pra vários tons da mesma cor, fica legal), mas não dá pra usar todos eles no mesmo sistema: você escolhe um tipo e pronto. Eu escolhi os mais simples.</span><br />
<span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;">Existem mais opções, mais comandos. Você pode escolher a depth do sistema como um todo, pode criar as partículas mais novas ATRÁS das já existentes (quando a cor muda, isso faz MUITA diferença), pode definir o quanto um defletor tira do</span><i style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px; margin: 0px; padding: 0px;">momentum</i><span style="background-color: #eaf2f7; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; line-height: 18.200000762939453px;"> da partícula, pode fazer um monte de coisas.</span><br />
<dl class="codebox" style="background-color: white; border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; border-top-left-radius: 7px; border-top-right-radius: 7px; border: 1px solid rgb(201, 210, 216); margin: 0px; padding: 0px;"><dd style="margin: 0px; padding: 0px;"><code style="color: black; display: block; font-family: Courier, CourierNew, sans-serif; font-size: 0.9em; height: auto; line-height: 1.3em; margin: 2px 0px; max-height: 200px; overflow: auto; padding: 5px;"><span style="color: green; margin: 0px; padding: 0px;"><br /></span></code><code style="display: block; height: auto; margin: 2px 0px; max-height: 200px; overflow: auto; padding: 5px;"><span style="font-family: Times New Roman; margin: 0px; padding: 0px;">Fonte: http://gmbr.forumeiros.com/t23691-tutorial-particulas</span></code><code style="display: block; height: auto; margin: 2px 0px; max-height: 200px; overflow: auto; padding: 5px;"><span style="font-family: Times New Roman; margin: 0px; padding: 0px;">Por: Saim</span></code><code style="display: block; height: auto; margin: 2px 0px; max-height: 200px; overflow: auto; padding: 5px;"><span style="font-family: Times New Roman; margin: 0px; padding: 0px;"><br /></span></code><code style="display: block; height: auto; margin: 2px 0px; max-height: 200px; overflow: auto; padding: 5px;"><span style="font-family: Times New Roman; margin: 0px; padding: 0px;"><br /></span></code><div style="color: #536482; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12.571428298950195px; line-height: 18.200000762939453px;">
</div>
</dd></dl>
KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-79179990377254634682012-11-08T11:01:00.002-08:002012-11-09T20:54:40.649-08:00TIM vira TELEFÔNICA com seu plano Liberty Controle<b>A PEGADINHA</b><br />
Pessoal um aviso para aqueles que procuram informação sobre o <b>Liberty Controle da TIM </b>é pura enganação. Uma mulher irá ligar para você dizendo que você foi selecionado em uma lista de clientes TIM para ir a um plano melhor, onde supostamente será tudo de bom. A mulher vai falar super rápido de modo que você não entenda nada.<br />
<br />
O plano Liberty Controle faz você vir para o pós pago você foi "selecionado" porque provavelmente deve gastar de forma trimestral na compra de créditos com a TIM e não mensal, seja como for a pegadinha mora ai, tira da comodidade do pré pago onde você não tem nenhuma obrigação judicial com a TIM e o coloca na forma de pagante regular e ai amigo se você não pagar R$ 29,90 mensalmente para TIM seu nome vai para o SPC.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/Dx4zDkcxi-c?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<b>COMO REALMENTE FUNCIONA O LIBERTY CONTROLE ?</b><br />
Seu celular vira pós pago e ao colocar R$29,90 a parte que corresponde a R$ 19,90 é para pagar a TIM de ligação de TIM para TIM ilimitado supostamente "de graça" e R$10,00 apenas, serve para você utilizar outros serviços como ligação para fixo ou acesso a internet. É ridículo, pois eles tem a cara de pau de dizer que há vantagens de pré pago nisso já que se você quiser, pode adicionar mais créditos nesses 10 reais para continuar ligando para fixo ou acessando a internet, eles tem a coragem de dizer que deu para você como bônus esses R$10,00 para usar os demais serviços.(NOSSA! GRANDE VANTAGEM COMO SÃO CARIDOSOS)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/rQNZQZTLxKk?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<b>COMO VOLTAR AO PRÉ PAGO</b><br />
Embora a mulher do telemarketing diga que você pode voltar para o pré pago isso não é verdade, se você tentar retorna irão falar que não é possível contrariando o código do consumidor e irão fazer de tudo para te manter nesse plano até mesmo chegarão ao absurdo de desligarem na sua cara, irão desligar o menu de mudança de plano de seu celular dando o seguinte recado "Essa opção não está habilitada para seu plano" e por fim falarão que após o pagamento da primeira fatura você poderá mudar o plano, só mentiras e mais mentiras vemos ai o reflexo da telefônica que de tão suja teve que se fundir com a vivo para ter moral com seus clientes, pois todo mundo odiava ela Mas estes os caminhos que você pode seguir:<br />
<br />
Ligue para 1331 e registre uma reclamação junto a Anatel marque e guarde com carinho o protocolo de atendimento fique esperto com caneta ou um gravador nos próximos 5 dias, pois a operadora deve entrar em contato com você nesse tempo. Caso não o faça volte a Anatel e fale o protocolo eles irão lhe instruir o que deve fazer e se tudo for comprovado irão multar a TIM.<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/qPcqPyHVFeg?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<br />
<b>PLANO B</b><br />
Outra coisa o código do consumidor no artigo 49 diz: <i style="background-color: white; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; text-align: justify;">"o consumidor pode desistir do contrato, no prazo de sete dias a contar de sua assinatura ou do ato de recebimento do produto ou serviço, sempre que a contratação de fornecimento de produtos e serviços ocorrer fora do estabelecimento comercial, especialmente por telefone ou a domicílio."</i><br />
<br />
Logo você pode entrar com um processo contra a TIM e pedir uma indenização por transtorno, danos morais, calunia e tudo o que o seu advogado disser, não tenha preocupação com dinheiro geralmente na justiça o consumidor é quem ganha e o dinheiro dará para pagar o advogado e sobrará um pouco para você e lembre-se de fazer um acordo com o advogado onde o advogado só é pago se ele ganhar a causa.<br />
<div class="separator" style="clear: both; text-align: center;">
<br /><iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/oyTzH93Ghe4?feature=player_embedded' frameborder='0'></iframe></div>
<br />
<b>LIÇÃO QUE TIRAMOS DISSO </b><br />
Bom e o que aprendemos com tudo isso? Nunca chegará em sua casa alguém e falará: <i>"Moço tenho um milhão aqui no meu bolso e quero dar para você" </i>sempre que alguém ligar para ti e disser : O senhor estaria interessado ou gostaria de ver nosso plano ou você foi contemplado, em fim, qualquer outra coisa que não seja um conhecido seu DESLIGUE NA CARA!!! Não perca seu tempo escutando, pois nada cai do céu e estão tentando te enganar, sai fora antes que seja tarde.<br />
<br />
Outra coisa que queria pedir a quem chegou até aqui lendo, evite entrar em promoções de TIM, Sprite, Posto Ipiranga e demais besteirol... Promoção de verdade é você achou ganhou ou escreve seu nome e numero de telefone em um papel e colocar em um Baú para ser sorteado. Não essas promoções de hoje em dia onde você pega código de uma tampinha de garrafa e tem que fazer um cadastro dando seu Nome Completo, CPF, RG, Rua, Numero do sapato e o caçamba em um site estranho para só então você entrar com o numero da tampinha para ai ver se talvez seja contemplado em um sorteio.<br />
<br />
Já vi TIM casas, Tim torcedor, TIM Alegria, TIM TV LED e até hoje ninguém sabe quem ganhou as tv led da TIM, pra mim era só um chamarisco para enganar as pessoas na suposta promoção, você poderia mandar uma mensagem para 7777 e pagaria mais R$1,99 para arriscar ganhar 10 mil reais junto da TV led e isso tinha que ser todo dia, pois todo dia tinha um suposto sorteio.<br />
<br />
Fiquem espertos e espero ter ajudado.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://1.gvt0.com/vi/2JgiH_aBdZE/0.jpg" height="266" width="320"><param name="movie" value="http://www.youtube.com/v/2JgiH_aBdZE&fs=1&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="http://www.youtube.com/v/2JgiH_aBdZE&fs=1&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
<br />KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com6tag:blogger.com,1999:blog-4756556018778668864.post-44203172622044899852012-10-28T12:31:00.003-07:002012-10-30T08:21:02.655-07:00SoS Neko<div style="text-align: left;">
</div>
<ol>
<li><span style="font-size: x-large;">Sobre termos TI</span></li>
</ol>
<br />
SoS Neko é um game para a plataforma Android criado para aprofundar meu conhecimento na linguagem java e na elaboração de games. A ideia consiste na criação de um jogo mais complexo que os atuais oferecidos pelo GooglePlay. Hoje no Google Play os games oferecidos não tem enredo, são monótonos, ainda mais os brasileiros. Geralmente é quebra cabeça, jogo da velha e coisas simples. Então esta sendo elaborado minha própria Enginer para se criar games mais interativos.<br />
<br />
2. <span style="font-size: x-large;">O Game</span><br />
O game conta a historia de Neko-chan um Neko que recebe o pedido de ajuda de uma princesa que está aprisionada em seu castelo pela terrível Bruxa Ivone a perversa ao ver isso Neko-chan se embrenha em meio a floresta para salva-la enfrentando vários perigos e desafios.<br />
<br />
3. <span style="font-size: x-large;">O Enredo e Personagens</span><br />
O enredo embora simples e fraco segue a historia dos games mais prestigiados do mundo como Zelda e Super Mario Bros foi baseado no game SoS Castelo para nitendinho.<br />
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic1FBD4cs7EdIly1B4MimMd-MeMz5UecYdMOgW2AnYNNF1WKh4cjrfjSFw8UuRFsg45fsbvkVE9BaEngcUBnLlJ0cC1tgVjdzy_L49CbJv8cLK99FPmIKuW4QLnEkHUmKn-Rc-FpMMLHvu/s1600/neko.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic1FBD4cs7EdIly1B4MimMd-MeMz5UecYdMOgW2AnYNNF1WKh4cjrfjSFw8UuRFsg45fsbvkVE9BaEngcUBnLlJ0cC1tgVjdzy_L49CbJv8cLK99FPmIKuW4QLnEkHUmKn-Rc-FpMMLHvu/s1600/neko.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Personagem principal Neko-chan</td></tr>
</tbody></table>
<br />
<br />
<br />
Neko-chan vem da linguagem japonesa onde Neko significa gato já no ocidente Neko ficou conhecido como a fisionomia de uma pessoa com orelhas de gato. Neko-chan faz uso de uma espada e não possui poderes<br />
<br />
Durante suas aventuras irá enfrentar varios inimigos como aranhas, dragões e plantas vivas além de zumbis e demais monstros com sua espada magica.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNpvEv8C-vOhOteDB6cQrXZQ_NGgETmgZWGB1MSbzh3PGiM6iQFt5mXMIF9Gly9zZiZ2hrzQJndEdjc1dpilc4n3sesY_3_cevP3dk3_CxE6yeOqERhP-Meoi2qpeAlDdzr81OWyFrCBq9/s1600/princesa.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNpvEv8C-vOhOteDB6cQrXZQ_NGgETmgZWGB1MSbzh3PGiM6iQFt5mXMIF9Gly9zZiZ2hrzQJndEdjc1dpilc4n3sesY_3_cevP3dk3_CxE6yeOqERhP-Meoi2qpeAlDdzr81OWyFrCBq9/s320/princesa.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Princesa Priscila</td></tr>
</tbody></table>
<div style="text-align: center;">
Princesa Samanta foi aprisionada pela terrível bruxa Ivone em seu próprio castelo, usando seu computador emitiu um pedido de ajuda para a rede de computadores de </div>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><br />
\<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauhraer0Ke16cKqaoGID72ihSAvRIT3Rmq6GciOsq3IMIMlz9Gtc5m0c-gOoiQmwW0-Gvm08_GRn7cEPNGtVNGBFgIGuPLhgUoK-aA6km3_0u_yMyl6MGOUVj4GbhGxaOKJQNUO50NH3B/s1600/Menu.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img alt="" border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhauhraer0Ke16cKqaoGID72ihSAvRIT3Rmq6GciOsq3IMIMlz9Gtc5m0c-gOoiQmwW0-Gvm08_GRn7cEPNGtVNGBFgIGuPLhgUoK-aA6km3_0u_yMyl6MGOUVj4GbhGxaOKJQNUO50NH3B/s400/Menu.jpg" title="" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Menu iniciar do game</td></tr>
</tbody></table>
O menu é simplificado conta apenas com o botão iniciar uma nova partida, carregar que continua de onde parou e sobre que fala sobre o criador e nosso site.<br />
<div>
<br />
<span style="font-size: 13px; text-align: center;">Conforme for fazendo o game vou melhorando o texto.</span></div>
KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-49524238862525715932012-10-28T11:16:00.000-07:002012-10-28T11:16:26.074-07:00ObrigadoSalve pessoal ! Se é que alguém segue essa birosca, antes de começar a falar gostaria de agradecer aos comentários da minha ultima postagem "Fatec de Ourinhos é um lixo" porque mostra que não estou sozinho e que o problema não é somente aqui. O pior de tudo é que aqui em Ourinhos eles falam que a Faculdade é a melhor de todas as Fatec, porque saiu na revista que só eles conhecem que os alunos estão felizes e progredindo e mimimi. Não sei aonde eles vêem isso, há um abandono colossal dos alunos da faculdade, hoje em dia pelo menos aqui em Ourinhos a concorrência por uma vaga é quase nula é uma vaga para duas pessoas. Mas é aquilo né o diploma abre portas, seria bom fazer só para ter o diploma, porque para se trabalhar em uma empresa seria e sem diploma você nem passa da porta. Se acham que estou mentindo só faz uma visitinha ao site infojobs e vê se as carreiras com melhor salario não exige superior completo.<br />
<br />
Falando em faculdade... Tranquei a faculdade há alguns meses e desde então venho fazendo o meu primeiro projeto o SoS Neko um game para a plataforma Andróid 2.2. quem quiser dar uma olhada ele se encontra<br />
aqui. Ou pode clicar no botão SoS Neko do lado direito do Blog ali do lado ----><br />
<br />
Só para finalizar a quem for fazer Fatec faça sabendo que irá aprender muito pouco, quase nada, foca no diploma tampe o nariz e siga em frente. Boa sorte a todos.KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-69120962434010001592012-07-01T10:39:00.000-07:002012-07-01T10:39:54.396-07:00Internet Ourinhos Banda Larga Que Não Sobe<br />
<div class="MsoNormal">
Na cidade que se diz ter uma das melhores faculdades de
tecnologia do Estado de São Paulo sofre uma carência por intenet de qualidade,
entre os mais conhecidos provedores estão a Speedy a Tdkom e a Cabonet.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Speedy</b></div>
<div class="MsoNormal">
Quem opta pela telefônica é obrigado a assinar um telefone
mesmo que este não possa ser usado para ligações, após você fazer esse pedido
dai é que irão ver se tem disponibilidade de colocar speedy ou não em seu
aparelho.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Não podiam ver isso antes? Claro que podem, mas não o fazem
puramente para ferrar o consumidor o empurrando uma linha telefônica desnecessária
, agora que você obteve uma linha telefônica eles querem mais é que você se
dane, passa a fazer de tudo para que você permaneça com essa linha mesmo que
você peça para cortar eles irão criar um monte de bloqueios e desculpas irão
prolongar o máximo possível essa linha em sua casa para chupar o seu dinheiro
até você não pagar mais e eles sujarem seu nome.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Cabonet</b><br />
Ótima internet péssimo preço e cobertura.
A Cabonet oferece uma boa internet, mas
cobra um valor fora da realidade do município pouco mais de 120 reais para se
ter canais que pegam na parabólica como o canal do boi, tv escola e tv plenário
se já não bastasse o preço péssimo sua cobertura é grotesca em mais 6 anos na
cidade não saiu das áreas nobres como o Centro e o Jardim Paulista. Recentemente
falou que chegou a Vila Odilon eu só
acredito vendo.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>TDKOM</b><br />
Seu preço é bom e sua cobertura é mediana o único problema da Tdkom é a internet
que oscila de mais por se tratar de uma internet via rádio qualquer sinal,
barreira ou ruído torna sua internet inavegável. Em minha opinião a tdkom
poderia melhorar em muito buscando novas tecnologias como o winmax ou a nova
rede p2p onde todo cliente se torna uma base. Seu serviço de atendimento ao
consumidos também não é as das melhores.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Demais Internet Via Radio ou 3G:</b><br />
Tem outros provedores de internet via radio, mas com preços maiores do que a da
TDKOM e com banda muito inferior da mesma forma estão a internet 3G é cara e com sistema de cota então nem compensa. <o:p></o:p></div>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com2tag:blogger.com,1999:blog-4756556018778668864.post-42795973883271623442012-04-15T04:01:00.001-07:002012-04-15T04:03:29.331-07:00O que faz um analista de sistemas?<div class="MsoNormal">Essa é a pergunta de muitas pessoas e quase ninguém a responde tudo o que sabem fazer é ir á Wikipédia copiar colar e acha que sabe o que faz um analista de sistema, pois bem. Eu vou falar o que realmente faz um analista de sistemas.<o:p></o:p></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">Ele é quem cria toda a documentação de um software se for comparar o analista de sistemas com a construção civil ele seria o arquiteto e programador o pedreiro o Analista de Sistemas ganha bem mais porque é ele quem projeta tudo. Ele ira desenhar usando álgebra relacional como será o banco de dados e com diagrama de classes e objetos como será o programa tudo o que o programador faz é ver o que o analista projetou e por em ação.<o:p></o:p></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">O analista é quem visita o negocio do contratante vê onde estão às áreas funcionais da empresa chamadas departamentos e nisso verifica o que poderia ser transpassado para um software, faz também reuniões com empregados e chefes para ver o que eles gostariam que fosse automatizado. <o:p></o:p></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">Elabora testes para verificar se o software tem erro e muitos mais coisas dificilmente ele programa, tem noções básicas de programação, mas ele quase nunca ponha a mão na massa ele é quem pensa em tudo o tipo de linguagem que será usado, se a programação será em cascata entre varias coisas.<o:p></o:p></div><div class="MsoNormal"><br />
</div><div class="MsoNormal">É isso ai até outro post inútil :D<o:p></o:p></div>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com1tag:blogger.com,1999:blog-4756556018778668864.post-51237601196757249032011-11-26T02:47:00.000-08:002013-09-03T16:28:49.219-07:00Fatec de Ourinhos um LIXO<span class="Apple-style-span" style="font-size: large;">Eu tinha um sonho, quem não os tem? Meu sonho era simples de um dia fazer uma faculdade, aprender uma profissão e conseguir um emprego na areá que escolhi. Imaginava que a faculdade era um templo do saber, onde era impossível não se aprender sobre as coisas, pois teria professores que iram lhe auxiliar para tal. Eu iria aprender uma profissão e se eu não soubesse, bastava pedir ajuda que meu professor me ajudaria *---*</span><br />
<span class="Apple-style-span" style="font-size: large;"><br />
</span><br />
<span class="Apple-style-span" style="font-size: large;">Quanta inocência... Acabei por me deparar com um bando de vagabundos que nem sabe do que estão falando, professores de banco de dados que baixam slide da internet e jogam para você ver e depois mandam você se virar para aprender. Se vai perguntar algo as respostas são sempre as mesmas:</span><br />
<div style="text-align: center;">
<span style="font-size: large;"><br /></span>
<span style="font-size: large;">1. Você já deveria saber</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<span class="Apple-style-span" style="font-size: large;"> Bom, se já deveria saber para que serve a faculdade? Dá logo um diploma para mim já que supostamente tenho que chegar na faculdade sabendo de tudo.</span><br />
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">2. Isso expliquei na semana passada </span><br />
<span class="Apple-style-span" style="font-size: large;"><br /></span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="font-size: large;">Sim explicou, mas quando tentei fazer sozinho apareceram dúvidas, pense você aprendendo a dirigir um carro, te explico uma unica vez como engatar as marchas, como acelera e tudo o que precisa saber. Daí passa uma semana e quero que você saia dirigindo você vai conseguir? Você irá ter dúvidas?</span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">3. Eu vou ver isso certinho e depois te trago uma solução</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">E nunca mais trás, se você pergunta ele diz: Trago na próxima aula e nada</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">O método de aula de alguns professores são uma merda, tinha uns que se preocupavam com coisas que não lhe diz respeito. Em uma dessas aulas quase fiquei doido, aula de fluxo grama que era até fácil fazer, mas a professora encasquetou com minha lógica de programação. Dizia que estava ruim a lógica e eu nervoso, poxa estou aqui para ver para onde vai o fluxo do programa e essa mulher quer que eu faça um super código no terceiro ciclo de faculdade que diga-se de passagem é uma merda. Eu até poderia fazer, mas não era um item obrigatório e ela não era professora de programação.</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMX8xMFzj3PqiPxthr9fHx_ItRrXomTKoEabzEciGIG4RjC8j97FNg5L1G5sH9GhhWc9lGh1GRSLfJt3zfYZdLW9uJD4iF2wt4a2uE9kWJhuSEUovdSksFSpB0N7t7fw4nnnHn8FrcHCbs/s1600/314427_121259037982166_121233167984753_125670_1318128029_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="126" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMX8xMFzj3PqiPxthr9fHx_ItRrXomTKoEabzEciGIG4RjC8j97FNg5L1G5sH9GhhWc9lGh1GRSLfJt3zfYZdLW9uJD4iF2wt4a2uE9kWJhuSEUovdSksFSpB0N7t7fw4nnnHn8FrcHCbs/s400/314427_121259037982166_121233167984753_125670_1318128029_n.jpg" width="400" /></a></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">Durante o tempo que fui a faculdade só sofri e perdi dinheiro... Na cantina da faculdade parecia um bar de prostitutas de tão caro que era a comida e não tinha qualidade nos salgados feitos. Lá a coca cola custava R$ 6,00 no super mercado R$ 3.00 tudo super faturado uma xicrinha ridícula de café 1.50 extorsão na maior cara de pau.</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;">Minha condução era uma moto e unicamente a moto, tinha de ir embaixo de chuva, os professores queriam mais que a gente se fodesse, está com gripe? Foda-se vem pra aula ou fica com falta. Está com dor de dente? Oh coitado!!! Vai se lascar ou vem pra aula ou fica com falta e se ficar abaixo de 75% de vindas nas aulas já era perdeu o semestre inteiro.</span></div>
<div style="text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Kk9I3qZUf9EIE_DlJ6EwU4OIc1PXq0ekoaWBjV8vfQkoOyPRMUqSv5jEghHHdUMGsd2BhrxPCsI_0BnU-wCzBvxH5EDqQCKAQ5ir_etq4CU84uetpp5iDGfxGpHdgPsMzXtKJzHVP3Zy/s1600/321515_277401338971950_262724747106276_896730_2111864580_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span class="Apple-style-span" style="font-size: large;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Kk9I3qZUf9EIE_DlJ6EwU4OIc1PXq0ekoaWBjV8vfQkoOyPRMUqSv5jEghHHdUMGsd2BhrxPCsI_0BnU-wCzBvxH5EDqQCKAQ5ir_etq4CU84uetpp5iDGfxGpHdgPsMzXtKJzHVP3Zy/s320/321515_277401338971950_262724747106276_896730_2111864580_n.jpg" width="256" /></span></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;">Minha dica para quem for presta vestibular para qualquer FATEC busque as disciplinas e estude elas, pois você precisa chegar </span><span style="font-size: large;">lá </span><span style="font-size: large;">sabendo. Poucos professores irão te ajudar e jamais apoie professores em greve. Eles estão ganhando mais do que merecem e se aumento de salario mudasse alguma coisa o Brasil seria o melhor país do mundo já que nossos deputados tem os melhores salários. Então não se deixe ser usado</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDSVB0FKS5FQgygYZWgah32Vdm2YwFtyCpNSCqE_2TwovhiqB9Rbcz3SBqdca2mh8i2dpLKTpIpAQLNAF4zD9TrMa-Dbf58AvrKHwl6JakwFGq2-YnM9fNNjIda7ePJC4TIlbQxa-T8fR9/s1600/313596_181985145221624_151170734969732_375153_2012595825_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDSVB0FKS5FQgygYZWgah32Vdm2YwFtyCpNSCqE_2TwovhiqB9Rbcz3SBqdca2mh8i2dpLKTpIpAQLNAF4zD9TrMa-Dbf58AvrKHwl6JakwFGq2-YnM9fNNjIda7ePJC4TIlbQxa-T8fR9/s320/313596_181985145221624_151170734969732_375153_2012595825_n.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;">Por fim eu desisti da faculdade e meus parabéns para quem conseguiu concluir-la. Pois segundo os padrões dela não estou apto a ser um programador e segundo o mercado uma pessoa sem diploma não serve para nada, então só me resta voltar para meu hooby preferido desenvolver games para celulares e continuar a ganhar meu dinheiro quietinho sem um diploma mesmo =/</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<span class="Apple-style-span" style="font-size: large;"><br />
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com9tag:blogger.com,1999:blog-4756556018778668864.post-56883774588380320122010-10-11T07:09:00.000-07:002010-10-11T07:09:10.514-07:00Ourinhos 1 litro de lagrimasOurinhos 10 de Outubro de 2010. <br />
<br />
Como eu já venho dizendo Ourinhos caiu no esquecimento é uma cidade estagnada e regressiva quanto ao quesito evolução. A cidade cresce lentamente a passos de tartaruga em quanto suas mentes ficam presas no passado.<br />
<br />
Semana retrasada eu vi algo que me chamou a atenção, um grupo intitulado Shalden colocou alguns cartazes pela cidade avisando que iria haver um evento em Ourinhos, falava-se que iria ter uma homenagem a cultura oriental intitulada ”Festival da Primavera” contaria com desfiles, teatro, shows, vários estandes, etc... A população de Ourinhos vive dizendo que na cidade nunca tem eventos e imaginei que seria um grande sucesso. A entrada era apenas 1 quilo de alimento fui sem pestanejar, mas foi ridículo o chamado “Festival de Primavera”.<br />
<br />
Eu não sabia o que era pior a propaganda enganosa do grupo Shalden ou o povo Ourinhense que vive reclamando que não tem nada aqui em nossa cidade e quando tem não comparecem, foi um verdadeiro vexame em ambos os sentidos, tanto da população Ourinhense não ter aparecido, quanto à do organizador Shalden que prometeu festividades o dia todo e só teve estandes vazios.<br />
<br />
As comidas típicas que deveriam ser Japonesas foram substituídas por X-Salada, batata frita cachorro quente e coca-cola, segundo o cartaz era proibido à venda de bebidas alcoólica no local, mas os comerciantes vendiam, bem pouco, mas vendiam. O pagamento de 1 quilo de alimento não havia quem recebesse e mesmo que tivesse eu me negaria a pagar, porque vendo aquilo lá me perguntei se esse alimento iria realmente para a caridade.<br />
<br />
Fiquei pasmo o evento deveria concentrar um grande grupo de pessoas e se tivesse 10 era muito. Os comerciantes reclamavam da falta de gente e os visitantes reclamavam da falta de eventos, fui lá seco para comer um yakisoba provar as comidas típicas do oriente, mas não tinha quem as fizesse. <br />
<br />
Lá em baixo no único estande aberto conversei com o dono que indagou: “Ontem ainda estava pior que hoje. Hoje pelo menos têm umas 10 pessoas”. Com pena do rapaz que não estava conseguindo vender nada comprei um mangá (“Gibi”) que é mais um livro e representava bem a nossa cidade e as pessoas que apostam nela trazendo eventos aqui. O Livro se intitula: 1 Litro de Lagrimas.<br />
<br />
Segue a baixo imagens do evento:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXJnfMz36ZuZRutaaWjGWomCfdzzt5OUeUZaIvCNMc-uFEb-bvoEVcasgUm4aJwfUBXmqxVDYnAyCpZ5fcSe6RbI0Xgtdjkh1EtG4-T34pakAi7l6D0jAlaIMjfIUU3iBacUNvJHI33gD8/s1600/10-10-10_114305.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXJnfMz36ZuZRutaaWjGWomCfdzzt5OUeUZaIvCNMc-uFEb-bvoEVcasgUm4aJwfUBXmqxVDYnAyCpZ5fcSe6RbI0Xgtdjkh1EtG4-T34pakAi7l6D0jAlaIMjfIUU3iBacUNvJHI33gD8/s320/10-10-10_114305.jpg" style="cursor: move;" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKCKuxZjJIIosFTqbLhXd_vd0ZSYsNdltmryIiiQz8DYOmXbZ44eXWFxTzrhCG9m2ppA3WcOuI4-pZihSDJPULAGnUs1G-zhjCiiMrRjtnLIIHIxFsxWb5zImIOnURscqbQxFFr02iWYli/s1600/10-10-10_114325.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKCKuxZjJIIosFTqbLhXd_vd0ZSYsNdltmryIiiQz8DYOmXbZ44eXWFxTzrhCG9m2ppA3WcOuI4-pZihSDJPULAGnUs1G-zhjCiiMrRjtnLIIHIxFsxWb5zImIOnURscqbQxFFr02iWYli/s320/10-10-10_114325.jpg" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNjOsw0tQ1wRZEKEsmrCWedJJCBowld8akss2yC8dGSeCcdkspBtA3xmU47EssulZie6SYJbuc375aXM6xItMK-Mkmwv9riYOwTt1Gu94MNQMGu-jxjsEA3Fqwg40s_yDwyVmjBbwryYUp/s1600/10-10-10_114452.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNjOsw0tQ1wRZEKEsmrCWedJJCBowld8akss2yC8dGSeCcdkspBtA3xmU47EssulZie6SYJbuc375aXM6xItMK-Mkmwv9riYOwTt1Gu94MNQMGu-jxjsEA3Fqwg40s_yDwyVmjBbwryYUp/s320/10-10-10_114452.jpg" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGenP1-TcNvp-6Q0VauTna025bnw2a2RgZhopUNReX9PVThZrqvWFDKW4n_6dFc78mJyXPQTr3wG3vBXXL_WhiJhLs5dD90ZzVCxa91Sg7m1oPXOiAUB6wF8a869bmk55xzmfDVX_FMTvo/s1600/10-10-10_114507.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGenP1-TcNvp-6Q0VauTna025bnw2a2RgZhopUNReX9PVThZrqvWFDKW4n_6dFc78mJyXPQTr3wG3vBXXL_WhiJhLs5dD90ZzVCxa91Sg7m1oPXOiAUB6wF8a869bmk55xzmfDVX_FMTvo/s320/10-10-10_114507.jpg" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrU0hIMoKZy_SKqI4MrF-t-oezAj59j2pieFXibLvkggEwEK4FBIYUW-MtAQi9nqLlQ5n6j4vmQoIk1tiJXiABWLYpQBuu8tzjQDMdXYEvhT9eBJ-5MdrJKka6zW3k3He68hgjGQAtGJC0/s1600/10-10-10_114530.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrU0hIMoKZy_SKqI4MrF-t-oezAj59j2pieFXibLvkggEwEK4FBIYUW-MtAQi9nqLlQ5n6j4vmQoIk1tiJXiABWLYpQBuu8tzjQDMdXYEvhT9eBJ-5MdrJKka6zW3k3He68hgjGQAtGJC0/s320/10-10-10_114530.jpg" width="320" /></a></div><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4nQV8cJoDO-a4KOYEB6KhqvjMtr35EwHDlBkuZkTSrhoW9ubmQWObDVv60gI8kG4qEawk7_L5_XpT7hX1ZAUVz93rldhHywSFhP3UCyeBse2LEe4n7Jkz7U3oJePWBtvZm8FFtxFA707n/s1600/10-10-10_121129.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4nQV8cJoDO-a4KOYEB6KhqvjMtr35EwHDlBkuZkTSrhoW9ubmQWObDVv60gI8kG4qEawk7_L5_XpT7hX1ZAUVz93rldhHywSFhP3UCyeBse2LEe4n7Jkz7U3oJePWBtvZm8FFtxFA707n/s320/10-10-10_121129.jpg" width="320" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6csu_NWeo_eLOIzsdaBfUUhy0s8O_zIYkC8b7kYRLf4zegc-I1iDbjxyjLr9Zio3hmHq1Jqqa8d2wyAouKoe3ac3Y4uijE9r8FNHbc2wU5YblcoawcOOqn3vVcB3y5kUpCRjlfopCkc13/s1600/10-10-10_121204.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6csu_NWeo_eLOIzsdaBfUUhy0s8O_zIYkC8b7kYRLf4zegc-I1iDbjxyjLr9Zio3hmHq1Jqqa8d2wyAouKoe3ac3Y4uijE9r8FNHbc2wU5YblcoawcOOqn3vVcB3y5kUpCRjlfopCkc13/s320/10-10-10_121204.jpg" width="320" /></a></div><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNqDgypS4JD5s1TzVv32R-8Pbc8auGH4oofYOks8HSMmUGfU6YpUt-P79i4ahKudRjhgAHxJkqSTie52F-MIaei5HX_Jh8vLa-Pfh1aC1mtD_0R-IDkw-U7Br12gafFxZrZ3DBGQGSffZT/s1600/10-10-10_114249.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNqDgypS4JD5s1TzVv32R-8Pbc8auGH4oofYOks8HSMmUGfU6YpUt-P79i4ahKudRjhgAHxJkqSTie52F-MIaei5HX_Jh8vLa-Pfh1aC1mtD_0R-IDkw-U7Br12gafFxZrZ3DBGQGSffZT/s320/10-10-10_114249.jpg" width="320" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8jiIWVa5RnhkSxqwMdFXEIwbC7Opz0Srr2_f5cwgLWg9NXpOHHvjXdy-uSZm1DUXq9yx1r8ww5RuOxSyG7y27TQOEXKc9mTYREFmt0raqxECSFpgNbZieRiiD5hOk6c0PcXcztexA47E4/s1600/10-10-10_124518.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8jiIWVa5RnhkSxqwMdFXEIwbC7Opz0Srr2_f5cwgLWg9NXpOHHvjXdy-uSZm1DUXq9yx1r8ww5RuOxSyG7y27TQOEXKc9mTYREFmt0raqxECSFpgNbZieRiiD5hOk6c0PcXcztexA47E4/s320/10-10-10_124518.jpg" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpzy6y_l8tSXqDHGaFals1V2Gopxy-v4D-c2zlNjf2g7kOC9cQFaA0DqmGLq1s0m1rPANZvFTRJ7x6mxsy14Na9pahjgtU6ouosQPZp8XW8MB0RKpMmswDP6EUzQcMApar5TOJ5xl_trUh/s1600/flyer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpzy6y_l8tSXqDHGaFals1V2Gopxy-v4D-c2zlNjf2g7kOC9cQFaA0DqmGLq1s0m1rPANZvFTRJ7x6mxsy14Na9pahjgtU6ouosQPZp8XW8MB0RKpMmswDP6EUzQcMApar5TOJ5xl_trUh/s320/flyer.jpg" width="230" /> </a></div><div class="separator" style="clear: both; text-align: center;">http://www.shalden.com/flyer.html</div>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-57205129639189825542009-12-06T20:52:00.001-08:002009-12-13T03:49:19.539-08:00Enem sistema de Lixo<p>Esse fim de semana fiz o Enem apenas para não perder meus suados 35 reais, porque esperar a devolução do dinheiro, seria o mesmo que esperar que porcos voassem. Antigamente o Enem servia para medir o ensino no pais, atualmente não passa de um mercado, um meio de pegar dinheiro do povo com a promessa de facilitar sua entrada na faculdade.</p> <p>A segunda prova do Enem foi feito as pressas de qualquer jeito, textos inteiros de cadernos de português e historia transcritos em 90 perguntas, esperando que respondêssemos uma pergunta sem relação alguma com o texto. </p> <p>E quanta ironia quando li o tema da redação : “O individuo frente a ética“ eu quase gargalhei na sala, ética que falta aos criadores da prova, ética que falta ao Enem cujo o idealizador nem possui um sistema de devolução do dinheiro caso haja falha. Fazendo propaganda mentirosa, que as perguntas que cairão no Enem seria com o cotidiano do aluno, é normal no meu cotidiano ano precisar de uma formula matemática para descobrir o peso de um satélite frente a órbita de Júpiter. Todos precisam disso, você mesmo já deve ter usado isso alguma vez essa formula, talvez você salve a vida do planeta terra algum dia descobrindo o peso de um satélite na orbita de Jupter. É algo que todos precisão realmente saber no cotidiano. <br />Segue a baixo exemplos da prova do Enem : </p> <p><strong><font size="4">Questão 1</font></strong> </p> <p><b>O baiano toca berimbau porque só tem uma corda. Se tivesse mais [cordas], não conseguiria... </b></p> <p><b> <br />Ex-Coordenador do curso de Medicina da UFBA sobre povo da Bahia</b></p> <p><b></b></p> <p>A citação acima, trata-se de um protesto verbal feito por um coordenador de curso na <a href="http://desciclo.pedia.ws/wiki/UFBA">UFBA</a>, no jornal <a href="http://desciclo.pedia.ws/wiki/Folha_de_S%C3%A3o_Paulo">Folha de São Paulo</a>, após a colocação medíocre que a instituição que gerenciava recebeu do ranking do <a href="http://desciclo.pedia.ws/index.php?title=ENADE&action=edit&redlink=1">ENADE/MEC</a>. A quem esta fala pode ser atribuída em sua oração?</p> <p>A - cultura baiana, apresentada pelo berimbau, assim como o axé e o carnaval que poderiam ser igualmente representados </p> <p><b></b></p> <p>B - Ao Nosso Senhor do Bonfim, que deu lugar a Santa Paciência, pois nem ela suportou a "leseira" típica dos baianos </p> <p>C - Ao intelecto super desenvolvido dos baianos, tendo a ex-dançarina Carla Perez como intelectual de vanguarda deste estado  </p> <p>D - A engenhosidade do baiano para se esquivar do trabalho e espírito empreendedor, ao ganhar dinheiro com serviço pela metade  </p> <p> </p> <p><b>Questão 02</b></p> <p><b></b></p> <p><b>Leia o seguinte trecho da poesia modernista de Carlos Drummond de Andrade;</b></p> <p><b></b></p> <p><b></b></p> <p><b>Mundo, mundo, vasto mundo,</b></p> <p><b>Se eu fosse vagabundo,</b></p> <p><b>Seria pedinte, não peão.</b></p> <p><b></b></p> <p><b>Mundo, mundo, vasto mundo,</b></p> <p><b>Mais caro que meu cheiro nas axilas,</b></p> <p><b>É o preço do Sabão. <br /></b></p> <p>Parte inferior do formulár<b>(Carlos Drummond de Andrade, Poesia de 1900 e guaraná com rolha.) </b></p> <p><b></b></p> <p><b>A qual personagem do nosso atual contexto contemporaneamente, presente no nosso dia-a-dia, freqüentemente visto diariamente em nosso cotidiano, esta poesia retrata? </b></p> <p>A - Trata-se de um engenheiro graduado por uma UniEsquina </p> <p>B - É um motoboy, mutuário da casa própria, pela Caixa Econômica</p> <p>C - É um corinthiano.</p> <p>D - Todas as alternativas estão corretas </p>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com1tag:blogger.com,1999:blog-4756556018778668864.post-92113335977573920522009-04-21T05:38:00.001-07:002009-04-21T05:38:57.400-07:00Quem diria<p>O programa do windos funfa xD</p> KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com2tag:blogger.com,1999:blog-4756556018778668864.post-48901200470807402662008-11-08T16:03:00.000-08:002008-11-14T11:08:04.500-08:00CAPITULO 1 - O SENHOR DOS ANÉIS DE CEBOLA<!--[if gte mso 9]><xml> <o:officedocumentsettings> <o:relyonvml/> <o:allowpng/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:hyphenationzone>21</w:HyphenationZone> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>PT-BR</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast;} p {mso-style-noshow:yes; mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabela normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} </style> <![endif]--> <p class="MsoNormal" style="text-align: center; page-break-before: always; page-break-after: avoid;" align="center"><u><span style="font-size: 14pt; color: black;">A Cambada do Anel escrita por klanpaia<o:p></o:p></span></u></p> <p class="MsoNormal"><span style="color: black;">Introdução<o:p></o:p></span></p> <p><span style="color: black;">O Mundo mudouuu... Posso sentir no peido, posso sentir no cheiro, posso sentir no vento, muito do que não existia, não existe mais e aqueles que não lembram, não querem se lembrar.<br /><br />Tudo começou com a forjadura dos grandes anéis de cebola, 3 Anéis foram dados aos Elfos inteligente, bem estudados e liberais, 7 Anéis foram dados aos anões vagabundos, imprestáveis e dorminhocos e nove, NOVE ! Anéis foram dados aos humanos safados, trambiqueiro e passadores de pernas um nos outros.<br /><br />Pois estes anéis de cebola tinham a força e o poder para controlar, extorquir e achacar estes reinos. <o:p></o:p></span></p> <p><span style="color: black;">Mas todos eles foram enganados... No reino de Murdor no alto da montanha do cabação na Matriz Apostólica Católica de São Bento o senhor Saradon forjou um anel às escondidas e neste anel ele colocou toda a sua bondade, humildade e sabedoria.<br /><br /><strong><u>Um anel para todos atrair se a juntar e na normalidade os aprisionar...</u></strong><br /><br />Um a um as cidades dos povos depravados da idade média foram encobertas pela luz, uma ultima aliança entre os elfos homossexuais e os homens corruptos marcharam na encosta do viado para impedir o trabalho do pastor.<br /><br />Gritavam palavras de ordem como vai cata caqui e pega na minha bengala os povos promíscuos estavam perto da vitória, mas o poder do anel não podia ser desfeito e o pastor sentou a paulada na turma e acertou o rei de ComDor o jogando-o na encosta do viado. Seu filho, Cuzildo, lhe roubou a espada e cortou os dedos do pobre pastor que perdeu seu anel de cebola e sumiu no ar.<br /><br />Cuzildo teve a chance única de destruir o anel, mas preferiu guarda-lo para vendê-lo na loja de penhores da Tia Nilda, no trajeto de volta uma cambada abordou o pobre Cuzildo lhe roubando seu tênis o helmo e os 350 reais que ele iria colocar na poupança para render juros, não satisfeitos jogou o Cuzildo no rio fazendo-o perder o precioso anel de cebola.<br /><br />A História virou mito o mito virou gibi e o que deveria ser esquecido acabou se perdendo, alguns minutos se passaram e o anel de cebola achou um novo portador uma criatura Gordon que morava na caverna do chulé, durante 500 anos o anel de cebola consumiu a criatura Gordon lhe dando uma vida extremamente grande. O anel de cebola ficou aguardando o momento certo para dar um pé na bunda da criatura e achar um novo portador que tivesse uma casa mais cheirosa, até que apareceram rumores na coluna de fofocas sobre casamentos e fidelidade matrimonial no leste do continente.<br /><br />Assim o anel viu que sua hora havia chegado e pisou na bola fugindo da criatura gordon em quanto ele cagava no banheiro, mas o que o anel não esperava é que ele seria encontrado pelo safado mais safado do mundo Biba Bolseiro um Rubert.<br /><br />E assim começa a saga do anel :<br /><br /><strong>Condado dos Ruberts 60 anos depois :</strong><br /><br />Na montanha do morro dos Ruberts se vê uma pessoa estranha sobre uma carroça, aos prantos xingando e falando merda, trajando robe, chapéu pontudo e barba cinzenta era ninguém mais que<strong> Gaydalf um velho amigo de Biba Bolseiro.</strong><br /><br />Anda caralho !!! Mula filho duma égua. – Esbraveja Gaydalf em quanto coçava seu saco – Castigo de vida !!! Filho da puta, anda caralho.<strong><span style="font-weight: normal;"><o:p></o:p></span></strong></span></p> <p><span style="color: black;">Uma Rubert que estava atravessando a rua escuta os desabafos do velho Gaydalf e comenta em voz alta<br /><br />--- Nossa, que homem mais boca suja.<br /><span style=""> </span><br />Gaydalf olha pra mulher e educadamente faz um comentário nada ortodoxo.<br /><br />--- Minha senhora, porque não vai toma no seu cu? Vai cuidar da sua vida!!! Velha lazarenta já não me basta os problemas com essa mula, tenho de agüentar mais uma ?<br /><br />A mulher assustada abaixa a cabeça e empurra seu filho<br /><br /><span style=""> </span>--- Nossa!! Vamos embora filho. Gaydalf acompanha com sua cabeça a mulher andando fazendo um ultimo comentário para que ela escutasse<br /><br />--- Oh gente lazarenta, toma no rabo dessa turma!<br /><br />Gaydalf volta a andar com sua velha carroça soltando um rangido tão alto de suas rodas que se poderia escutar por todo o condado. As pessoas olhavam para Gaydalf com cara feia de raiva e Gaydalf em troca olhava com um olhar sereno de sínico e safado, segurando a risada em quando fumava seu cachimbo e afagava sua longa barba. Sua carroça por mais barulhenta que fosse, acabou sendo seguida por muitas crianças Ruberts que sabiam da fama de Gaydalf em trabalhar com fogos de artifício. Pediam para Gaydalf soltar um traque ou uma bombinha, mas o único rojão que escutaram foi os peidos de Gaydalf que deixou um mal odor para traz encobrindo as crianças que rapidamente fugiram para suas casas deixando o Gaydalf prosseguir seu caminho. Sorrateiramente surge um Rubert por de traz das arvores era Fronha Bolserio sobrinho de Biba Bolseiro. Fronha avista Gaydalf dando risada segurando um litro de pinga de velho barreiro.<o:p></o:p></span></p> <p><span style="color: black;"><span style=""> </span>--- Está atrasado.<span style=""> </span>Brincou Fronha que já conhecia o velho Gaydalf --- O quê ? Você é minha mãe agora é? – Retrucou Gaydalf que volta a falar --- Para sua informação um magro nunca se atrasa, ele sempre chega um pouco mais tarde mediante a hora combinada --- Após essas palavras um olha para o outro com cara de tonto e começam a Rir<br /><br />--- HAHAHAHAAH É muito bom te ver Gaydalf - Disse Fronha a Gaydalf que se afasta dando espaço no banco para Fronha se sentar.<br /><br />--- <span style=""> </span>Tá, acredito.... Sente-se<br /><br />Fronha Pula no banco e começa um dialogo com o velho Gaydalf<br /><br /><strong>- </strong><span style=""> </span>Então... Porque veio?<br /><br /><strong>-</strong> Não iria vir, mas estou fugindo dos meus credores<br />e o convite do seu tio foi à luz na minha vida miserável.<o:p></o:p></span></p> <p><span style="color: black;">Gaydalf responde em quanto balançava a cabeça... Os Rubertz não saem muito do condado e somente os jovens queriam saber sobre as novidades do mundo externo os mais velhos super conservadores se restringi as novidades unicamente do condado. Gaydalf havia sido convidado para o aniversario de Biba Bolseiro e de seu Herdeiro Fronha Bolseiro, não era comum de Gaydalf aceitar esses convites ainda mais quando era explorado sendo obrigado a soltar fogos de graça, mas desta vez era especial Biba Bolseiro iria completar onzenta e um anos 111 (Um atrás do outro) .<br /><br />Gaydalf viu nesse convite algo especial, algo mágico, sim, era a possibilidade de fugir dos cobradores que o perseguia por não pagar suas contas. Fronha continua a conversar com o <span style=""> </span>Gaydalf .<br /><br />--- E ai qual as novidades do mundo externo? Pergunta Fronha todo sorridente ao Gaydalf que por sua vez da uma cuspida ao lado da carroça<br /><br />--- O de sempre traições, chifres, político rouba, político é descoberto, político não vai preso... Nem sei por que descobrem se não vai fazer nada, larga ele roubar. Morte, violência, estupro, aquecimento global ta uma desgraça.<br /><br />--- Nossa tão ruim assim?<br /><br />--- Mas não se preocupe meu amigo, poucos sabem do condado dos Ruberts e o petróleo q há nele.<br /><br />Havia Grandes jazidas de petróleo por todo o condado Fronha e Biba sabiam que se descobrissem isso o condado estaria condenado e pediu ao velho Gaydalf que guardasse segredo. Gaydalf jurou que nunca contaria a ninguém, mas<br />no fim se descobre que ele é quem queria explora o petróleo e o povoado dos Ruberts<o:p></o:p></span></p> <p><strong><span style="color: black;">---</span></strong><span style="color: black;"> Você não contou á ninguém né ?<br /><br /><strong>---</strong> Claro que não, sou um homem de palavra, além disso, eu quero explora as jazidas, ainda não tenho dinheiro para montar o primeiro poço.<br /><br /><strong>---</strong> Você só não contou porque quer ser o primeiro a explorar e não porque é um homem de palavra, você prometeu Gaydalf !!!<br /><br /><strong>---</strong>Prometi que não iria contar, mas não disse nada de explorar. Conversamos isso uma outra hora....<br /><br />Gaydalf corta todo o condado com sua velha carroça passando por de baixo das arvores, atropelando um gato, contornando a antiga plantação de maconha do velho Burgo Bolseta, subindo morros e descendo montanhas, passando pelas planícies em quanto joga conversa fora. Ao passar pelo riacho molhado o rangido da carroça para, mas mesmo assim as pessoas olham de jeito feio para Gaydalf.<br /><br /><span style=""> </span>---Não entendo... As pessoas me olham com uma cara de bunda sem lavar.<br /><br /><strong>--</strong>-Muitas delas ainda se lembram do escândalo que você e o tio fizeram no natal há 7 anos.<br /><br /><strong>---</strong>Se está se referindo a suruba com aquelas crianças eu estava bêbado e pensava que eram Mulheres Rubets. Seu tio fez a maior parte da cagada e jogou o pepino nas minhas costas.<br /><br /><strong>---</strong>E como está o processo?<span style=""> </span><br /><br />---Estou empurrando com a barriga, cozinhando em banha Maria no final não<br />vai acontecer nada, sou rico... E recentemente estou entrando na política vou ficar intocável aprenda uma coisa Fronha, neste mundo ou você é rico ou é culpado.<br /><br />--- Hummm... Bem foi um prazer te rever Gaydalf<br /><br /><strong>---</strong> Acredite o prazer foi todo seu.- Fronha desce da carroça e começa a andar acenando para traz<br /><br />--- Te vejo na festa Gaydalf<br /><br />--- Se você não ficar cego até lá vai me ver com certeza - Grita Gaydalf ao seu amigo.<o:p></o:p></span></p> <p><span style="color: black;">No boteco ali perto as línguas já corriam soltas o velho feitor pau mandado de Biba Bolseiro estava discutindo com seus amigos fofoqueiros, ninguém sabia plantar banana e pepino como o velho feitor, quando o assunto era legumes e frutas de duplo sentido ele era a autoridade máxima no assunto. Ao seu lado seu filho puxa saco e a sua frente três amigos bêbados sendo um o afiador de enxada do condado sua língua era mais afiada que as facas que ele amolava e mais bronzeada que seu próprio corpo de tanto que falava mal dos outros.<br /><br />– Esse tal Biba bolseiro é um tremendo sacana filho da puta e prostituidor de crianças se eu pudesse enfiava as enxadas que eu afio na borga dele. Disse o afiador de enxadas ao Feitor em quando enchia sua cara e comia uma coxinha.<br /><br />--- Você é um idiota deveria estar pensando em plantar cenouras em tempo de fofocar sobre o bondoso Biba. - Disse o feitor em defesa do Biba. --- Se ele não prostituisse as pessoas nunca que a Lucileine<span style=""> </span>Bolseta treparia com você...<br /><br /><span style=""> </span>Biba Bolseiro tinha a fama de ser prostituidor de pessoas ele era um velho safado, mesmo tendo onzenta e um anos ainda atraia moças e rapazes até sua casa os cafetizando.<br /><br />--- Você só o protege porque trabalha para ele !!!<o:p></o:p></span></p> <p><span style="color: black;">--- Besteira!!! – Exclamou o feitor - Mesmo que eu não trabalhasse para ele eu sempre ficarei do lado do Sr Biba Bolseiro!!!<o:p></o:p></span></p> <p><span style="color: black;">A discussão se prolonga até a chegada de um mensageiro que entrega um bilhete ao Sr Feitor dizendo:<span style=""> </span>“Caro senhor feitor é com grande tristeza e pesar que estou te despedindo. Suas bem feitorias não serão esquecidas e sempre terá um lugar especial em meu coração... Com tudo, não poderei pagar o seu trabalho deste mês então vá se lascar.<span style=""> </span><br />Atenciosamente de seu estimado amigo e patrão<span style=""> </span>SR Biba Bolseiro ^~”<br /><br />---- Sabe de uma coisa senhor amolador acho que você tem razão.... Aquele velho puto do Biba Bolseiro não vale o chão que pisa...<o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman","serif"; color: black;">Gaydalf se dirige ao centro do condado aonde se encontra o Biba Bolseiro, mas mal chega e já se depara com uma placa nada convidativa que dizia “Vá embora cambada de filhos da puta!” <span style=""> </span>bate na porta e escuta uma ofensa que vem de dentro o mandando ir embora e o chamando de filho da puta. Gaydalf ergue seu chapéu pontudo e coça sua cabeça imaginando o que fazer para o puto do Bilba Bolseiro abrir a porta e em um estalo ele engrossa sua voz a deixando extremamente sex e diz:<br /><br />--- Aqui é um moreno alto e musculoso a procura dos prazeres da carne!<br /><br />--- Em um piscar de olhos ou nem isso a porta se abre e dela sai Biba Bolseiro olhando pros lado com os olhos esbugalhados e tamanha foi à decepção ao se deparar com Gaydalf.<span style=""> </span>O sorriso de Biba rapidamente sumiu de seu rosto e falsamente cumprimenta seu velho amigo...<span style=""><br /></span><br /><strong>--- </strong>Gaydalf !!!!.... A quanto tempo velho amigo?<br /><br /><strong>---- Não tanto quanto eu queria... Mas </strong>realmente faz muito tempo Biba<br /><br /><span style=""> </span>--- Onde está o moreno alto e musculoso? – Pergunta Biba Bolseiro ainda com alguma esperança em seu olhar.<br /><strong><br />---</strong> Não tem moreno nenhum... Fiz isso para que me abri-se a porta mais rápida.<br /><br /><strong>---</strong> Não brinque com os meus sentimentos Gaydalf, meu coração já não é a mesma coisa<br /><br /><strong>---- </strong>Você é que esta ficando burro Biba que pessoa em sã consciência iria bater na sua porta para procurar prazeres? Um velho acabado que nem pinto tem mais.<br /><br /><strong>---</strong> Bem, vou lhe servir algo para beber o que você quer? Água ou água gelada ?<br /><br /><strong>---</strong> Não quero nada, mas aceito um pouco de água gelada<br /><br /><strong>---</strong> Esta bem, vou encher de água esta garrafa e colocar para gelar vai levar umas duas<br /> horinhas você não está com pressa está?<br /><br /><strong>---</strong> Nem um pouquinho...<br /><br />Gaydalf tira seu chapéu e o coloca em um cabide se dirige a melhor poltrona que tinha na sala sentando-se nela logo em seguida retira seu velho sapado encardido revelando um fétido cheiro de chulé que encarniça toda a sala. </span>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com7tag:blogger.com,1999:blog-4756556018778668864.post-47904947075993296982008-06-20T13:55:00.000-07:002008-06-20T14:20:45.206-07:00Oficializado o Projeto Naruto<p class="MsoNormal">Hoje foi oficializado o inicio do projeto Naruto que teve o nome mudado para<span style=""> </span>Vilarejo do Naruto e acabou por ter um nome semi inglês Village do Naruto, No game oficial se manterá<span style=""> </span>Vilarejo. O projeto será Open Source GNU usando Delphi + Delphix ou no caso UnDelphix que é uma melhoria o projeto contará com um editor de mapas e uma enginer.</p> <p class="MsoNormal">Tudo será hostiado pela Google Codes segue a baixo descrição do projeto :</p><p class="MsoNormal">O projeto Village do Naruto consiste em criar um game simples do desenho animado Naruto utilizando Dephi + <a href="http://code.google.com/p/village-do-naruto/wiki/UnDelphix">UnDelphix</a> durante o projeto estarei escrevendo um livro em pdf explicando todo o desenvolvimento do aplicativo com linguagem simples sem muito termos técnicos. </p><p>Minha intenção é ensinar iniciantes a criarem seus games 2D, </p><p>Para fazer parte do grupo entre em contato pelo orkut que é mais certeza de você entrará no grupo ou pelo e-mail klanpaia@hotmail.com e leia o leia-me.pdf que esta na seção de downloads. </p><p class="MsoNormal"> </p> <p class="MsoNormal">Link Oficial do projeto:<br /><a href="http://code.google.com/p/village-do-naruto/">http://village-do-naruto.googlecode.com<br /></a> </p> <p class="MsoNormal">Link do fundador do projeto:<br /><a href="http://www.orkut.com.br/Profile.aspx?uid=12739223475660487589">http://www.orkut.com.br/Profile.aspx?uid=12739223475660487589</a></p>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-85345642481494814002008-06-14T08:58:00.000-07:002008-06-14T09:11:47.640-07:00Cancelado Super Marios Escróti<span style="font-weight: bold;">D</span>ecidi cancelar o Game super Mario Escróti e iniciar um novo sobre Naruto, bem, pq cancelar o Super Mario ?<br /><br />O Super Mario estava usando tecnologia desatualizada no caso Delphix que exigia mais linhas de código e mais tempo para faze-lo sendo que ja existe componentes melhores e mais atualizados, então mudei de componente, mas o fôlego para fazer o game acabou e agora irei fazer algo novo e mais simples.<br /><br /><span style="font-weight: bold;">P</span>orque Naruto? Embora eu não goste muito deste anime, notei que existe um publico grande e que estão em busca de Games com este título um conhecido meu fez um game em Rpg Maker com 30 MB mal feito do cassete sem história e ja teve na primeira semana de publicação mais de mil downloads. Imagine o meu que usará código e será no estilo hentai, quantos downloads não ira ter e o melhor será menor e com uma boa historia :)<br /><br />Agora é esperar pra ver se funciona me desejem sorte o/KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-30573447570442678392008-04-06T12:28:00.000-07:002008-04-06T13:30:32.450-07:00Super Mario Escróti Show<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxPJ8LVf0hcniG94st12jNRhllVOMsh7tkUtBzaZEuk73Rr10VwkdRKpkNi9-aJkyKqUZn1oe5LWuLykACzmpRt7AP-9msdEgWuYnCqUEf093On9e4pPt1B5eIEzWNlfv64dqTW9a-zjte/s1600-h/imagem2.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxPJ8LVf0hcniG94st12jNRhllVOMsh7tkUtBzaZEuk73Rr10VwkdRKpkNi9-aJkyKqUZn1oe5LWuLykACzmpRt7AP-9msdEgWuYnCqUEf093On9e4pPt1B5eIEzWNlfv64dqTW9a-zjte/s320/imagem2.JPG" alt="" id="BLOGGER_PHOTO_ID_5186230777266253522" border="0" /></a><br /><span style="font-weight: bold;">Super Mario Escróti Show<br /><br />É</span> o nome dado a um protótico de jogo que estou criando o game é sobre o Super Mario (DANNN) que finalmente derrota seu arque-rival Bowser, mas já de saco cheio começa a falar besteiras palavras de baixo<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjSNX35BZT2rjMkNWtMyHPYQUAPqjNtCBl6inR6hJWTqoM2Tc3zz-q9Tt3VnTR1Ljiowm-5Eh1s6qOObepSekFJkgBT_rWk1nIX4QmNfJRZutbOT5np3FmIJhOz3QpGEHSUzPndDXqctI0/s1600-h/imagem.JPG"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjSNX35BZT2rjMkNWtMyHPYQUAPqjNtCBl6inR6hJWTqoM2Tc3zz-q9Tt3VnTR1Ljiowm-5Eh1s6qOObepSekFJkgBT_rWk1nIX4QmNfJRZutbOT5np3FmIJhOz3QpGEHSUzPndDXqctI0/s200/imagem.JPG" alt="" id="BLOGGER_PHOTO_ID_5186231039259258594" border="0" /></a> calão e obscenidades para a pobre princesa.<br /><br /><div style="text-align: left;"><span style="font-weight: bold;">N</span>a outra ponta Lula, seus assessores dizem a ele que um grupo de manifestastes estão querendo sua cabeça e estão invadindo o palácio do planalto. Lula sem pensar 2 vezes pula pela janela quebrando tudo e não dando tempo de seus amigos avisarem que era apenas uma brincadeira de abril.<br /></div><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOZS3A_YSCyrAxtB0JMwKBxUv1pV7emRrFuv284lFobu1l7J4592YU7yBLE2__SvA8PJJ-14kzJuvyWS-TCvXV53dvmjms47C6Hd4jjfgi12lzSyH-T2rNg2BZu4Z85MxDJoAK3C7T0Z8P/s1600-h/imagem.PNG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 226px; height: 169px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOZS3A_YSCyrAxtB0JMwKBxUv1pV7emRrFuv284lFobu1l7J4592YU7yBLE2__SvA8PJJ-14kzJuvyWS-TCvXV53dvmjms47C6Hd4jjfgi12lzSyH-T2rNg2BZu4Z85MxDJoAK3C7T0Z8P/s320/imagem.PNG" alt="" id="BLOGGER_PHOTO_ID_5186231271187492594" border="0" /></a><br /><span style="font-weight: bold;">F</span>inalmente une os 2 mundos Lula se encontra encurralado (pelo menos é o que ele acha) em um beco sem saída e diante disso entra por um cano de cor verde saindo no mundo de Mario lula acaba acidentalmente seqüestrando a princesa Peach .<br /><br /><span style="font-weight: bold;">A </span>presença de Lula causa desequilíbrio no mundo do Mario fazendo os antigos Tropa Koopas virar políticos corruptos e mario outra vez tem que salvar o dia aos palavrões....<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCMjGzaKdDkf_w4NDCNmuH831UDDlCCIrr0OyKL02XB2lu0HGh3HW-s_pSxvLA5nK5m98wxavdQW55fsul4EOWBBN-N9fyeTYVgxPELGd2k2B408jaVQgmNUbFFSOvQuBu9wEMetaA95lQ/s1600-h/imagem2.PNG"><img style="margin: 0px auto 10px; display: block; text-align: left; cursor: pointer; width: 270px; height: 202px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCMjGzaKdDkf_w4NDCNmuH831UDDlCCIrr0OyKL02XB2lu0HGh3HW-s_pSxvLA5nK5m98wxavdQW55fsul4EOWBBN-N9fyeTYVgxPELGd2k2B408jaVQgmNUbFFSOvQuBu9wEMetaA95lQ/s400/imagem2.PNG" alt="" id="BLOGGER_PHOTO_ID_5186231606194941698" border="0" /></a><br /><br />Jogue esta emocionante aventura EM BREVE<br /><span style="font-weight: bold;"></span>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0tag:blogger.com,1999:blog-4756556018778668864.post-74679053141218985882007-06-03T02:33:00.000-07:002008-04-06T13:36:06.076-07:00KlanPaia<span style="font-weight: bold;">Seja bem vindo ao meu bloog :P<span style="font-weight: bold;"></span><br /></span>KlanPaiahttp://www.blogger.com/profile/09383349770899971711noreply@blogger.com0