<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-18651756</id><updated>2026-10-23T16:06:07.467+02:00</updated><category term="BelgaTV"/><category term="Personal"/><category term="Chapuzas"/><category term="Fin del mundo"/><category term="Curiosidades"/><category term="Linux"/><category term="Videojuegos"/><category term="Tweet"/><category term="Quejas"/><category term="Valencia"/><category term="Xbox 360"/><category term="blender"/><category term="Fútbol"/><category term="Por fin una buena noticia"/><category term="anime"/><category term="Apple"/><category term="Chanchullos"/><category term="Críticas de cine"/><category term="Críticas de juegos"/><category term="Microsoft"/><category term="PS3"/><category term="Software Libre"/><category term="ps4"/><category term="tutoriales"/><category term="Política"/><category term="Wii"/><category term="Nintendo NX"/><category term="xbox one"/><category term="manga"/><category term="Sketchfab"/><category term="android"/><category term="Bélgica"/><category term="Ubuntu"/><category term="xbox series x"/><category term="crunchyroll"/><category term="Noticias"/><category term="Críticas de anime"/><category term="Tres canciones nightcore"/><category term="devblog"/><category term="evo"/><category term="xbox"/><category term="profecías"/><category term="Nintendo"/><category term="inseguridad"/><category term="pc"/><category term="Compras del año"/><category term="p2p"/><category term="Fotos"/><category term="PC Fútbol"/><category term="Windows"/><category term="spanishrevolution"/><category term="Compras 2024"/><category term="retro"/><category term="privativo pero gratis"/><category term="Críticas de mangas"/><category term="Google"/><category term="Sword Art Online"/><category term="Tres openings"/><category term="mangas del mes"/><category term="SGAE"/><category term="Búsquedas de la semana"/><category term="proyecto isekai"/><category term="EVO Japan"/><category term="Muerte a MSN Messenger"/><category term="PSP"/><category term="Tres waifus"/><category term="España"/><category term="Batallitas retro"/><category term="Colección de Postales"/><category term="SNES"/><category term="Sony"/><category term="Tres trailers"/><category term="belgaFM"/><category term="el karma me adora"/><category term="popup parade"/><category term="Brasil"/><category term="Compras mangas"/><category term="game boy"/><category term="mangas 2025"/><category term="wtf"/><category term="Gamecube"/><category term="Historias de la Universidad Politécnica"/><category term="Wii U"/><category term="e-sports"/><category term="estadísticas blog"/><category term="figuras ánime"/><category term="krystal"/><category term="ps5"/><category term="F1"/><category term="Mi colección de G.I. Joe"/><category term="That Time I Got Reincarnated as a Slime"/><category term="ankha"/><category term="gameplay"/><category term="lina"/><category term="mangas de la semana"/><category term="n64"/><category term="slayers"/><category term="Bandai Namco"/><category term="Granblue fantasy"/><category term="div games studio"/><category term="re:zero"/><category term="Dragon&#39;s Dogma"/><category term="Genshin Impact"/><category term="UPV"/><category term="Zelda"/><category term="EVO Japan 2019"/><category term="Space Kokoro Doki Doki Club"/><category term="Ya se vende"/><category term="aisha"/><category term="breath of fire ii"/><category term="goblin slayer!"/><category term="psx"/><category term="tensura"/><category term="Aquella vez que me convertí en Slime"/><category term="High Elf Archer"/><category term="Minecraft"/><category term="ariel"/><category term="atelier"/><category term="dark arisen"/><category term="erufu"/><category term="frases de mangas"/><category term="mac"/><category term="rejugando"/><category term="retro-mac"/><category term="shion"/><category term="street fighter"/><category term="tanya"/><category term="windows 9X"/><category term="Consolas"/><category term="ETA"/><category term="Game Boy Advance"/><category term="Katt"/><category term="Midna"/><category term="Nier"/><category term="Nintendo 3DS"/><category term="Ys"/><category term="capcom"/><category term="frieren"/><category term="gawr gura"/><category term="in/spectre"/><category term="kde"/><category term="macos"/><category term="pickups manga del mes"/><category term="ranma"/><category term="square enix"/><category term="tales of"/><category term="twilight princess"/><category term="vlog"/><category term="Copyleft"/><category term="EVO Japan 2018"/><category term="Fedora"/><category term="Inocentada"/><category term="Tales of Symphonia"/><category term="Tira cómica"/><category term="aprendiendo python"/><category term="atelier ryza"/><category term="breath of fire"/><category term="dana 2024"/><category term="datos curiosos"/><category term="evo japan 2020"/><category term="memorias de un exgamer"/><category term="miHoYo"/><category term="mushoku tensei"/><category term="opensuse"/><category term="opera"/><category term="rejugando breath of fire ii"/><category term="sega"/><category term="street fighter v"/><category term="sylvie"/><category term="xenoblade"/><category term="Alfafar"/><category term="Animal Crossing"/><category term="Backstabbed in a Backwater Dungeon"/><category term="CD&#39;s comprados"/><category term="Carrefour"/><category term="Compras 2025"/><category term="Diferencias"/><category term="Firefox"/><category term="Fotos 3DS"/><category term="How NOT to Summon a Demon Lord"/><category term="Inquisición"/><category term="Ivrea"/><category term="Megadrive"/><category term="Microsoft adora GNU"/><category term="No compraré DRM"/><category term="Personajes que nos marcaron"/><category term="Rent-A-Girlfriend"/><category term="SteamLink"/><category term="Super Nintendo"/><category term="Tensei Shitara Slime Datta Ken"/><category term="Umm... sexy"/><category term="alita"/><category term="bromas"/><category term="censura"/><category term="godot"/><category term="hololive"/><category term="hyperkin"/><category term="iPhone"/><category term="kimetsu no yaiba"/><category term="last recollection"/><category term="overlord"/><category term="pegi"/><category term="playstation 4"/><category term="reparaciones"/><category term="retron sq"/><category term="rimur tempest"/><category term="selectavisión"/><category term="steam"/><category term="steins;gate"/><category term="tanya degurechaff"/><category term="twitter"/><category term=".net"/><category term="Antena3"/><category term="Ataque a los titanes"/><category term="Atlus"/><category term="Baloncesto"/><category term="Blackberry"/><category term="Bugs"/><category term="Calidad gráfica consolas retro"/><category term="Capcom arregla tu web de una vez"/><category term="Chainsaw Man"/><category term="Desarrollo de videojuegos"/><category term="Dot TK = mal servicio"/><category term="El clarín del General Failure"/><category term="Flyff"/><category term="Fnac"/><category term="Gimp"/><category term="Humor"/><category term="Jarabe de Palo"/><category term="Juevos viejunos guays"/><category term="Kotoko Iwanaga"/><category term="Miss Kobayashi’s Dragon Maid"/><category term="Modificaciones del blog"/><category term="Nights of azure"/><category term="NihongoGamer"/><category term="Novell"/><category term="PC Liga"/><category term="París"/><category term="Persona 5"/><category term="Rimuru"/><category term="SGAE = MacGiver"/><category term="Sebas Game Station"/><category term="Shining (saga)"/><category term="So I&#39;m a Spider so what?"/><category term="Tales of Xillia"/><category term="Tekken"/><category term="Tekken 7"/><category term="Trailer de la vergüenza"/><category term="Vodafone"/><category term="XNA"/><category term="actores de voz"/><category term="asciialiens"/><category term="carteles motivacionales"/><category term="claymore"/><category term="dango soccer"/><category term="danmachi"/><category term="death end re;quest"/><category term="destripando la serie"/><category term="doblaje"/><category term="dreamcast"/><category term="ebay"/><category term="evercade"/><category term="evo 2019"/><category term="evo 2020"/><category term="final fantasy"/><category term="gally"/><category term="god eater 3"/><category term="gog.com"/><category term="gunnm"/><category term="halo"/><category term="hype"/><category term="iTunes"/><category term="jackass"/><category term="joy of tech"/><category term="konosuba"/><category term="metaphor: refantazio"/><category term="moiré"/><category term="nazuna"/><category term="neptunia"/><category term="oni"/><category term="portada"/><category term="rejugando tales of grace"/><category term="s3rl"/><category term="seafile"/><category term="shangri-la frontier"/><category term="star ocean"/><category term="tales of grace"/><category term="threads"/><category term="uzaki chan"/><category term="valve"/><category term="vida útil de juegos"/><category term="vtuber"/><category term="youtube"/><category term="2k games"/><category term="3djuegos"/><category term="Anda ya"/><category term="Análisis de tiendas"/><category term="Apparently Disillusioned Adventurers Will Save the World"/><category term="Attack on titans 2"/><category term="Avatar"/><category term="Bethesda"/><category term="Billgates"/><category term="Censura Blogger"/><category term="Crunchyroll Anime Awards"/><category term="Críticas de comida"/><category term="Críticas de cómics"/><category term="Críticas de dibujos"/><category term="Dango y Hamster"/><category term="Dell"/><category term="Eiyuden Chronicle: Hundred Heroes"/><category term="El amigo americano"/><category term="Europa"/><category term="FIFA 17"/><category term="FIFA 98"/><category term="FSM"/><category term="FX Interactive"/><category term="Fabiniku"/><category term="GB Studio Magazine"/><category term="GTA IV"/><category term="Google+"/><category term="Guilty gear"/><category term="HD-DVD vs Blu-Ray"/><category term="Happy Console Gamer"/><category term="Jahy"/><category term="Jon Stewart"/><category term="Jump Force"/><category term="Lista"/><category term="Llavero Alphonse"/><category term="Los diarios de la boticaria"/><category term="Luxemburgo"/><category term="Maomao"/><category term="Meet Linux"/><category term="Mega Drive Mini"/><category term="Mitsuri kanroji"/><category term="Mortal Kombat"/><category term="Mortal Kombat 11"/><category term="Nezuko Kamado"/><category term="Nier Automata"/><category term="Nintenderos"/><category term="Nintendo DS"/><category term="Onyx Equinox"/><category term="Osu! Tatakae! Ouendan"/><category term="Otherworlder"/><category term="Ouya"/><category term="PC Fútbol 8"/><category term="PSOE"/><category term="Palestina"/><category term="Patentes del software"/><category term="Persona"/><category term="Persona 3"/><category term="Persona 3 Reload"/><category term="Podemos"/><category term="Polònia"/><category term="Praey for the gods"/><category term="Prensa seria"/><category term="Rajoy"/><category term="Rap"/><category term="Rebajas"/><category term="Recore"/><category term="Recuerdos"/><category term="Reincarnated as a sword"/><category term="Reyes magos"/><category term="Rimur"/><category term="Rimuru Tempest"/><category term="SPAM"/><category term="Sebas Moncho&#39;s Asteroid"/><category term="Skeleton Knight in Another World"/><category term="Spectrum"/><category term="Star Ocean V"/><category term="Steve Ballmer"/><category term="Super Mario 64"/><category term="Sátira"/><category term="TNSE"/><category term="Telefonía móvil"/><category term="That Time I Got Reincarnated as a Slime ISEKAI Chronicles"/><category term="That Time I Got Reincarnated as a Slime banpresto"/><category term="The Apothecary Diaries"/><category term="The Rising of The Shield Hero"/><category term="Theme Park"/><category term="Thw Dawn of The Witch"/><category term="Tux"/><category term="Ubuntu Feisty Fawn"/><category term="Una de espías"/><category term="Unity"/><category term="VR Chat"/><category term="Vendetta"/><category term="Vgchartz"/><category term="Vivienda"/><category term="Xrd Rev 2"/><category term="Ys VIII"/><category term="Zero Two"/><category term="ainz ool gown"/><category term="akira"/><category term="analogue"/><category term="analogue pocket"/><category term="analogue3d"/><category term="anime box"/><category term="arms"/><category term="astrofísica"/><category term="atelier lydie &amp; suelle"/><category term="atelier sophie"/><category term="atelier yumia"/><category term="audio"/><category term="avance"/><category term="bangladesh"/><category term="barrapunto"/><category term="bases de datos"/><category term="bash"/><category term="blazblue"/><category term="blazblue: cross tag battle"/><category term="blockbuster"/><category term="blogger"/><category term="borja pavón"/><category term="bravely default 2"/><category term="breath of fire iv"/><category term="catra"/><category term="chromebook"/><category term="clare"/><category term="compile hearts"/><category term="comunicado"/><category term="configuración equipo"/><category term="conspiraciones"/><category term="corpus documentario"/><category term="corr"/><category term="cripto-monedas"/><category term="cyberpunk 2077"/><category term="cyberpunk: Edgerunners"/><category term="darksiders"/><category term="darksiders iii"/><category term="darling in the franxx"/><category term="death stranding"/><category term="descargas digitales"/><category term="devir"/><category term="dinamic"/><category term="dinamic multimedia"/><category term="dixie"/><category term="django"/><category term="dragon ball fighterz"/><category term="dragon quest"/><category term="drumsy"/><category term="ea"/><category term="ebooks"/><category term="ecc"/><category term="eiyuden chronicle"/><category term="entrando en el &quot;lore&quot;"/><category term="epic"/><category term="espacio exterior"/><category term="especulación"/><category term="estanterías"/><category term="evo 2018"/><category term="f-zero"/><category term="fable"/><category term="fales of graces f"/><category term="fantasian"/><category term="fifa 16"/><category term="figuritas"/><category term="final fantasy vii"/><category term="fire force"/><category term="forza horizon 4"/><category term="francia"/><category term="fumination"/><category term="galapagos rpg"/><category term="gantz"/><category term="gate"/><category term="gatia"/><category term="gb studio"/><category term="gears of war"/><category term="gpl"/><category term="gta 3"/><category term="gta v"/><category term="gunnm last order"/><category term="gunvalkyrie"/><category term="hackers"/><category term="half life 2"/><category term="he Great Jahy Will Not Be Defeated!"/><category term="heritage auctions"/><category term="heroclix"/><category term="hestia"/><category term="hinata tachibana"/><category term="hobby consolas"/><category term="howto"/><category term="hybrid heaven"/><category term="idea factory"/><category term="ikea"/><category term="illusion"/><category term="intelPhone"/><category term="irrelevante"/><category term="japón"/><category term="joeur de grenier"/><category term="jonu media"/><category term="joueur de grenier"/><category term="jujutsu kaisen"/><category term="karan"/><category term="karl jobst"/><category term="kill la kill"/><category term="king of fighters"/><category term="king of fighters XIV"/><category term="kojima"/><category term="konfabulator"/><category term="kyokousuiri"/><category term="la jefa"/><category term="limited Run"/><category term="listillos"/><category term="luto"/><category term="lylatwars"/><category term="mac mini"/><category term="madden"/><category term="made in abyss"/><category term="makima"/><category term="marbella vice"/><category term="maverick"/><category term="milin"/><category term="milin nava"/><category term="millim"/><category term="millim nava"/><category term="minus8"/><category term="mode9"/><category term="modelos 3d de 2024"/><category term="modelos del año"/><category term="modern vintage gamer"/><category term="monolith soft"/><category term="motivacional"/><category term="msdos"/><category term="mvg"/><category term="my dress up darling"/><category term="nagatoro"/><category term="nasa"/><category term="nelke"/><category term="neo-geo"/><category term="nights of azure 2"/><category term="ninja gaiden"/><category term="no me rayes nagatoro"/><category term="noeve grafx"/><category term="oracle"/><category term="p4w3r"/><category term="perfect dark"/><category term="pipas"/><category term="plagio"/><category term="playstation 5"/><category term="pos vale pos bueno pos me alegro"/><category term="programación"/><category term="ps2"/><category term="psvita"/><category term="qr"/><category term="raspberry pi"/><category term="rebecca"/><category term="redes sociales"/><category term="regalo_lectores"/><category term="repros"/><category term="retrotink"/><category term="revistas de videojuegos"/><category term="rodolfo marscarpone"/><category term="rule of rose"/><category term="ryuko matoi"/><category term="saofd"/><category term="sasel"/><category term="scott pilgrim"/><category term="secret of mana"/><category term="sexy cosplay doll"/><category term="shadow"/><category term="shadow warriors"/><category term="sharepoint"/><category term="she-ra"/><category term="shenmue"/><category term="shenmue 2"/><category term="shogo"/><category term="skyrim"/><category term="smash bros."/><category term="soulcalibur"/><category term="soulcalibur vi"/><category term="spinecard"/><category term="splatoon"/><category term="splatoon 2"/><category term="spy x family"/><category term="sql"/><category term="stadia"/><category term="starfox"/><category term="stromae"/><category term="suikoden"/><category term="sí soy una araña"/><category term="tachibana"/><category term="terrorismo"/><category term="the elder scrolls"/><category term="the initiative"/><category term="the witcher"/><category term="the witcher 3"/><category term="timos"/><category term="tiny hellwing"/><category term="tira de ecol"/><category term="to your eternity"/><category term="tokyo mirage sessions #fe"/><category term="troyano casero"/><category term="twitter-topic"/><category term="ubisoft"/><category term="ultramarinos"/><category term="unrwa"/><category term="vandal"/><category term="vhs"/><category term="videoclip"/><category term="virtualbox"/><category term="virtuanestor"/><category term="vivi"/><category term="vr"/><category term="vrchat"/><category term="wata games"/><category term="welcome to the nhk"/><category term="wikipedia"/><category term="xfce"/><category term="ys xi"/><category term="yuri on ice"/><category term="¿qué tiene de malo intentar ligar en una mazmorra?"/><category term="チェンソーマン"/><category term="ファ美肉"/><category term="マキマ"/><category term="岩永琴子"/><category term="橘 日向"/><category term="異世界美少女受肉おじさんと"/><category term="紫苑"/><category term="虚構推理"/><category term="転生したらスライムだった件"/><title type='text'>El general Failure, leo tu disco duro</title><subtitle type='html'>Blog independiente de un informático pro-Linux.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.elgeneralfailure.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3011</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-18651756.post-5278682277559100593</id><published>2026-09-12T10:40:44.191+02:00</published><updated>2026-09-12T10:40:44.304+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><category scheme="http://www.blogger.com/atom/ns#" term="godot"/><title type='text'>[DIV2/Godot] Replicando el sistema de combates de Breath of Fire 2</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Últimamente he estado jugando al Brave Battle Saga de Mega Drive (Genesis en América), un juego cuyo sistema de combates me ha recordado mucho al Breath of Fire 2 de SNES. Así que me picó el gusanillo y me propuse programar un sistema de combates parecido y en esta entrada lo enfocaremos desde dos frameworks distintos: DIV2 (para programar juegos en MS-DOS) y Godot 4.7 para .NET (multiplataforma).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Ahora bien, para los incautos, que sepáis que en esta entrada hay muuucha IA (decisiones, generación de gráficos y audios) y no habrá código fuente explicado, porque el proyecto, pese a ser sólo un combate, ha acabado siendo enorme (en el caso de DIV2, el PRG ocupa más de 5.200 líneas). Lo que sí podéis hacer es leer los &lt;i&gt;readmes &lt;/i&gt;de sendos proyectos que he subido en GitHub (&lt;a href=&quot;https://github.com/LeHamsterRuso/BOF2LikeGodot&quot;&gt;https://github.com/LeHamsterRuso/BOF2LikeGodot&lt;/a&gt; y &lt;a href=&quot;https://github.com/LeHamsterRuso/BOF2LikeDIV2&quot;&gt;https://github.com/LeHamsterRuso/BOF2LikeDIV2&lt;/a&gt;), donde explico de forma global la arquitectura del proyecto y para qué sirve cada cosa.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En el caso de DIV2, al estar todo el código fuente en el mismo fichero, he escrito también un fichero &quot;.md&quot; de unas 500 líneas que detalla cómo funciona el código y está escrito en castellano exprésamente (&lt;a href=&quot;https://github.com/LeHamsterRuso/BOF2LikeDIV2/blob/main/PRG/BOF2.md&quot;&gt;https://github.com/LeHamsterRuso/BOF2LikeDIV2/blob/main/PRG/BOF2.md&lt;/a&gt;)... Por cierto, los assets de la versión de DIV2 son autogenerados con un script de parsing (es decir, un script que pilla los assets de Godot y los bakea a imagen/sonido, generando los ficheros FPG necesarios, más info&amp;nbsp;&lt;a href=&quot;https://github.com/LeHamsterRuso/BOF2LikeDIV2/tree/main/tools&quot;&gt;https://github.com/LeHamsterRuso/BOF2LikeDIV2/tree/main/tools&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Lo primero es lo primero, enfocar un escenario para el &quot;poc&quot; (proof of concept) y para ello pregunté a varias inteligencias artificiales cual era, en Breath of Fire 2, el combate preferido o memorable según los jugadores y la crítica, para intentar replicar dicho combate. Y bueno, si lo que queréis ver es cómo ha quedado y no leer todo esto, pues os animo a ir directamente al final de esta entrada.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Valga decir que he jugado bastante al Breath of Fire 2, por lo que lo conozco bastante bien: Lo compré de lanzamiento, me hice todos los finales y lo he vuelto a jugar varias veces a lo largo de mi vida. Con esto dicho, a mi memoria vienen varios combates épicos:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;En el prólogo tenemos dos reseñables: El primero contra Gonghead, donde Ryu niño intenta salvar a su hermana y acaba rescatado por Ganer; El combate en la cueva contra Barubary, donde nos aniquila de un golpe; El primero resulta interesante porque saltan eventos (Yua nos va curando y Ganer nos salva), pero desde el punto de vista práctico, no lanzamos magias y estamos solos, por lo que no podemos aprovechar todas las mecánicas del sistema de combates.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIRfzrR4ifrIfetxkrUdXwxNWxYGvWK66-oxinVvPuDTVS7kkXOuqpcvyYRrwKtPV4PxxEivI41vAQDPgCDNnytvUvrziHFlYFb-vE6g5JgVd-nYTSK5uiyXxMBkY9dg5keYpgzj_fDDHby2lpRlwlDEMPsCzemDQk8PjlgBaYXloZOutu45Iu/s960/GgU9dAlXgAADpsO.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIRfzrR4ifrIfetxkrUdXwxNWxYGvWK66-oxinVvPuDTVS7kkXOuqpcvyYRrwKtPV4PxxEivI41vAQDPgCDNnytvUvrziHFlYFb-vE6g5JgVd-nYTSK5uiyXxMBkY9dg5keYpgzj_fDDHby2lpRlwlDEMPsCzemDQk8PjlgBaYXloZOutu45Iu/w640-h360/GgU9dAlXgAADpsO.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;En el inicio de la aventura tenemos el combate contra Baba y contra Katt, pero tenemos el mismo problema, son combates donde Ryu se enfrenta solo a ellos, sin compañeros en la party. No obstante, el de Katt es muy interesante puesto que, además de producirse en un coliseo y esto siempre es épico, saltan eventos en los que Katt lanza frases aleatorias (algunas incluso son guiños a personajes de Clint Eastwood). También está el combate contra las tres arpías, que sería una buena opción (tenemos a Bow en la party y saltan eventos de diálogo).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwfP4sKuqSBt4WNG3dyK8qPx-6AlYB271w3Luj6vXkx4JcSIHUlWIgUeOaMeT-rusejMw5WO0ZY2eJgCUZmMQOvLqd139-naSNZE-Xxho9GGK9tcTmylxVZYsxLnv1bnj3ilS1h6DFDC8jqZbwX0MTz19E19o09An2SNBvUQHugPvXy2RFeXSx/s960/vlcsnap-2025-01-23-02h28m35s287.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwfP4sKuqSBt4WNG3dyK8qPx-6AlYB271w3Luj6vXkx4JcSIHUlWIgUeOaMeT-rusejMw5WO0ZY2eJgCUZmMQOvLqd139-naSNZE-Xxho9GGK9tcTmylxVZYsxLnv1bnj3ilS1h6DFDC8jqZbwX0MTz19E19o09An2SNBvUQHugPvXy2RFeXSx/w640-h360/vlcsnap-2025-01-23-02h28m35s287.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEamTdTyvPY9Q_VsGekRB8opwK1Ig67s7-FZmlICZrrVQfPSzZxnkPvR9eEp0JSngW00JZICVwDZeMmh1qPdFUpAOfszG9fPeBul-CXmPoGlZ3Crfbz1OcZ-Mf1vq3a4PK_07jFJlNxJmJux7F71tf5gaznQWs63fzplAe288vRDQnZM8GSM0o/s960/vlcsnap-2025-01-23-02h35m09s028.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEamTdTyvPY9Q_VsGekRB8opwK1Ig67s7-FZmlICZrrVQfPSzZxnkPvR9eEp0JSngW00JZICVwDZeMmh1qPdFUpAOfszG9fPeBul-CXmPoGlZ3Crfbz1OcZ-Mf1vq3a4PK_07jFJlNxJmJux7F71tf5gaznQWs63fzplAe288vRDQnZM8GSM0o/w640-h360/vlcsnap-2025-01-23-02h35m09s028.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Ya en la parte avanzada en la historia tenemos el combate contra Tiga, el &quot;noviete&quot; de Katt, pero también es a descartar puesto que es un 1 vs 1 y encima tiene vida infinita (el combate está programado para ser una derrota obligatoria por exigencias del guion); Y el combate contra Ganer, donde dependiendo del resultado la historia diverge, pudiendo obtener finales distintos.&lt;/li&gt;&lt;li&gt;Y por último, ya en la fase final tenemos la revancha con Barubary y el enfrentamiento final contra Deathevn, que son probablemente las dos batallas más épicas, puesto que tenemos que hacer alarde de todo nuestro potencial mágico. Además, en el de Barubary se nos da a elegir entre pelear solo contra él o con la party, en plan &quot;chicos, dejádmelo a mí, esto es personal&quot; y el mero hecho de que exista esa opción ya nos muestra el mimo con lo que cuidaban los JRPG en la época de los 16 bits.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;Respecto a las IA, esta ha sido su respuesta:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Google: El combate contra Deathevan, el duelo individual contra Barubary, la pelea contra Ray y la pelea contra Augus. La pelea contra Ray es interesante, pero no la consideraría memorable... aunque es cierto de que se trata de uno de los pocos duelos de dragón vs dragón que existen en la saga de Breath of Fire; En cambio, la pelea contra Augus, el director del coliseo, me parece interesante, porque se produce al inicio del juego, es uno de los primeros jefes difíciles y en ella tenemos a Ryu y Rand en la party (y opcionalmente a Katt, según los eventos).&lt;/li&gt;&lt;li&gt;Grok: Sorpresivamente Grok me propuso los mismos combates más el de Kuwadora, pero priorizando el duelo contra Barubary antes que el de Deathevan. El combate contra Kuwadora es interesante por varios motivos: Transcurre en la mitad del juego, su combate se divide en fases, tiene vigor &quot;infinito&quot; (por lo que siempre ataca primero) y cuando lo programaron le dejaron varios bugs (nunca pasa a su &quot;fase 3&quot; por programar mal la gestión de números negativos en una rutina de ensamblador).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRvS-QerRzTfNY4PWuY8IuTRTgytk7prnDNNsKACLRgsLKh4I8PIxPJRqN8VI7qJfgj0CQt4uvXHjHvDq_WCWm5vl8RHdicRYimpW7ryTbqO1R31eKhg0hZv7aVpMk1_CoDIeRRuW0i5ft42rCi6nC4wVrDmDQBNNKEXMI8ftVPe_dzs6KaFPx/s2316/Captura%20de%20pantalla%202025-03-17%20a%20las%201.19.50.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1736&quot; data-original-width=&quot;2316&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRvS-QerRzTfNY4PWuY8IuTRTgytk7prnDNNsKACLRgsLKh4I8PIxPJRqN8VI7qJfgj0CQt4uvXHjHvDq_WCWm5vl8RHdicRYimpW7ryTbqO1R31eKhg0hZv7aVpMk1_CoDIeRRuW0i5ft42rCi6nC4wVrDmDQBNNKEXMI8ftVPe_dzs6KaFPx/w640-h480/Captura%20de%20pantalla%202025-03-17%20a%20las%201.19.50.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;ChatGPT: Por su lado ChatGPT me sorprende para bien. A los típicos Barubary y Deathevan, le suma el Golden Fly (una mosca que tenemos que capturar a mitad del juego), el trío de las arpías y boses como Terapin, Trubo y Augus. La del Golden Fly no la vi venir. Terapin es una especie de hormiga reina gigante y azul, que, al más puro estilo reina alien, pobló el pozo de Captian de facehugger y creons. Por su lado Trubo era el Guardia Imperial del clan de los monos de Highfort (la ciudad natal de Sten).&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwrawHBvjdjyFQAXjUC7HPyiCFPoNzukDhmtjgatUV_Dy4VF-JEEUM7vpLOKGCbQfECW2k0T93LxWocnrZYus5D80MSn5VlBHZumdgCWBfsOVRB_O9BUSC2QVMeuJvXihhoL8Pwj53FnDZUDsXJh7G8_vb6ws2_nPxSTsfGJ4RmJt-a9qkDeGh/s1340/vlcsnap-2025-01-26-20h04m39s709.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1168&quot; data-original-width=&quot;1340&quot; height=&quot;558&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwrawHBvjdjyFQAXjUC7HPyiCFPoNzukDhmtjgatUV_Dy4VF-JEEUM7vpLOKGCbQfECW2k0T93LxWocnrZYus5D80MSn5VlBHZumdgCWBfsOVRB_O9BUSC2QVMeuJvXihhoL8Pwj53FnDZUDsXJh7G8_vb6ws2_nPxSTsfGJ4RmJt-a9qkDeGh/w640-h558/vlcsnap-2025-01-26-20h04m39s709.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyJzHi6p4-JrBkJ6qE3rK5HxGnk6sIbp4pVyMxq_KNh-3dDCAfp5hbIgJ0k0g2v6DBhFmhihML6NaJDpMZ_wl9BDpERYSi4TJsHH8b4Z9gMrzTV4W8x4xtnH-9q3c64Ljv2qn2qLCttvOoFYpBfoUTWDqfvvJNxsd9KYl32VZqsZDJhTBkd6YM/s1340/vlcsnap-2025-01-26-20h04m51s964.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1168&quot; data-original-width=&quot;1340&quot; height=&quot;558&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyJzHi6p4-JrBkJ6qE3rK5HxGnk6sIbp4pVyMxq_KNh-3dDCAfp5hbIgJ0k0g2v6DBhFmhihML6NaJDpMZ_wl9BDpERYSi4TJsHH8b4Z9gMrzTV4W8x4xtnH-9q3c64Ljv2qn2qLCttvOoFYpBfoUTWDqfvvJNxsd9KYl32VZqsZDJhTBkd6YM/w640-h558/vlcsnap-2025-01-26-20h04m51s964.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1UK92IiMB9JlPbaj-G8_5Lz_cXcfsFy1_pKgzisvlyqjVvmE5p2rJGw4THgQ0INuASBZB6APx7tnY1pwKefKbyuo9tJ19spQO8u90pDQKW3FRmu8US2XPWZPhpbNIQfg9zgwcbhyphenhyphen_AYqjFu3nf1spLYJ_gpUT1XXbDR-yU8FaJyZ_MfjMLsyr/s2316/Captura%20de%20pantalla%202025-03-17%20a%20las%201.14.40.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1736&quot; data-original-width=&quot;2316&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1UK92IiMB9JlPbaj-G8_5Lz_cXcfsFy1_pKgzisvlyqjVvmE5p2rJGw4THgQ0INuASBZB6APx7tnY1pwKefKbyuo9tJ19spQO8u90pDQKW3FRmu8US2XPWZPhpbNIQfg9zgwcbhyphenhyphen_AYqjFu3nf1spLYJ_gpUT1XXbDR-yU8FaJyZ_MfjMLsyr/w640-h480/Captura%20de%20pantalla%202025-03-17%20a%20las%201.14.40.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Deepseek: En cuanto a Deepseak, a los ya típicos combates contra Barubary y Deathevan, propone también el combate contra Terapin.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Uff... cuantas opciones. Los combates contra Deathevan y&amp;nbsp;Barubary son interesantes, pero me da miedo que tenga que implementar demasiadas cosas para un simple tutorial. Visto lo visto, creo que me quedaré con el combate contra Augus.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0I8OF_PPgHfGdEYf2Pl5p57y9jHlDwD9hFq8qQ6TLHPW7NVMwzdNfHYNp7ghqbPFxPGeynHmShgQfGCSDTsIgjpkG109ftmyyc2GdownFRNiLf3XddiKMsKzp96pOegJ3L_AMydRwuV2Ie2VpaC5fmgLUlxzpS5vM0WvEaTZaAfaLbT_Afk_c/s960/vlcsnap-2025-01-23-02h37m54s647.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0I8OF_PPgHfGdEYf2Pl5p57y9jHlDwD9hFq8qQ6TLHPW7NVMwzdNfHYNp7ghqbPFxPGeynHmShgQfGCSDTsIgjpkG109ftmyyc2GdownFRNiLf3XddiKMsKzp96pOegJ3L_AMydRwuV2Ie2VpaC5fmgLUlxzpS5vM0WvEaTZaAfaLbT_Afk_c/w640-h360/vlcsnap-2025-01-23-02h37m54s647.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En ese combate deberíamos de estar entre los niveles 7 y 10, por lo que necesitaré verificar qué magias y stats tienen Ryu, Rand y Katt en esos niveles. Ahora bien, el primer problema que identifico es que stats en Breath of Fire 2 es que son semi-aleatorios.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Por un lado se definen una serie de franjas:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Ryu en el nivel 1 debe de tener: 30 HP, 10 MP, 20 STR, 16 STA, 16 AGI, 8 WIS y 12 LUCK.&lt;/li&gt;&lt;li&gt;Ryu en el nivel&amp;nbsp; 25 debe de tener: 209 HP, 53 MP, 84 STR, 64 STA, 71 AGI, 77 WIS y 74 LUCK.&lt;/li&gt;&lt;li&gt;Esto nos da que en cada nivel debería de crecer +7,083 HP, +2,667 MP, +2 AGI, +2,291 AGI, +2,875 WIS y +2,583 LUCK.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Ahora bien, las consolas de 16 bits y los decimales no se llevan muy bien y queda muy raro decir que has subido +7,083 HP. Para facilitar los cálculos, se metía alguna variación aleatoria, del estilo subir entre 6 y 8 HP, por ejemplo... y el sistema del juego iba cuadrando las subidas de nivel para que al llegar a las franjas (niveles 25, 40, etc...) los valores convergieran de forma aproximada a los valores esperados.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Otra cosa graciosa de este sistema es que las magias también se desbloqueaban por nivel, algo bastante común en los JRPG de aquella época y que poco a poco hemos ido substituyendo en juegos modernos por sistemas de perks costumizables en árboles de habilidades.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Una cosa graciosa con estos dos sistemas de franjas y aprendizaje de magias daba como lugar que personajes como Katt podían aprender a usar Firebolt en el nivel 11... pero no tenía suficiente puntos de magia para usarla hasta el nivel 25 aproximadamente. Es decir, podías llegar hasta la segunda mitad del juego sin poder lanzar un magia que aprendió Katt justo al inicio.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Bueno, con todo esto dicho, ya tenemos definido el rango de nuestra demo:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;El enemigo será Augus (&lt;a href=&quot;https://bof.fandom.com/wiki/Augus_(Boss)&quot;&gt;https://bof.fandom.com/wiki/Augus_(Boss)&lt;/a&gt;).&lt;/li&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Según las wikis, sus stats son:&amp;nbsp;&amp;nbsp;680 HP, 16 AP, 43 OFF, 18 DEF, -1 MAGIC VULN, 12 AGI, 28 LUCK, puede atacar doble en el mismo turno, puede conjurar Cure 1 y dropea Herb (hierbas medicinales), 150 puntos de experiencia y 300 monedas.&lt;/li&gt;&lt;/ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Nuestra party será Ryu, Rand y Katt, todos de nivel 9.&lt;/li&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Ryu debería de tener aprox: 90 HP, 24 MP, 41 STR, 32 STA, 34 AGI, 31 WIS, 33 LUCK y debería de poder conjurar TimeWarp, Cure 1 (Heal en GBA) y Cure 2 (Restore en GBA).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Rand debería de tener aprox: 130 HP, 40 MP, 48 STR, 42 STA, 17 AGI, 33 WIS, 24 LUCK y debería de poder conjugar Cure 1 (Heal en GBA) y CurePsn (Purify en GBA).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Y por último Katt debería de tener aprox: 87 HP, 9 MP, 53 STR, 25 STA, 55 AGI,&amp;nbsp; 19 WIS, 41 LUCK y no debería de poder conjurar ninguna magia (aunque en la versión de GBA puede conjurar Slow).&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Sobre las magias:&lt;/li&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Cure 1 (Augus, Ryu y Rand), también conocida como Heal en la versión de GBA, sirve para curar vida: Consume 4 AP y reestablece 40 HP.&lt;/li&gt;&lt;li&gt;&amp;nbsp;TimeWarp (Ryu) no consume puntos de magia, pero no se puede usar en combate (sirve únicamente para pasar de noche al día y del día a la noche) y sólo puede usarse en el mapapundi, que no implementaremos en esta demo.&lt;/li&gt;&lt;li&gt;Cure 2 (Ryu), también conocida como Restore en GBA, es una magia de curación más potente que Cure 1 / Heal: Consume 12 AP y reestablece 100 HP.&lt;/li&gt;&lt;li&gt;CurePsn (Rand) sirve para quitar los estados alterados (veneno, zombie, etc) y consume 8 AP.&lt;/li&gt;&lt;/ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Además de todo esto, los personajes tienen habilitades únicas y su efecto depende de distintos factores:&lt;/li&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;&amp;nbsp;Ryu tiene la habilidad única Gust, que le permite recargar vida sin consumir puntos de AP. Su éxito depende de la cantidad de HP que tengamos en ese instante. Cuanto menos porcentaje de vida tengamos, será más probable ejecutar esta habilidad con éxito: Si fallamos, sólo &quot;recargaremos&quot; un punto de HP; Si tenemos éxito recuperaremos entre un 10% y un 50% de nuestros HP (cuanto menos vida tengamos, más alto será el porcentaje).&lt;/li&gt;&lt;li&gt;Rand tiene Wake, que permite resucitar un compañero muerto. Su porcentaje de éxito es del 50% aprox, pero intentarlo varias veces suele ser más barato que consumir un LifePL (que si la memoria no me falla tiene un precio de 500 monedas). Realmente su tasa de éxito depende del atributo Gust (&quot;agallas&quot;).&lt;/li&gt;&lt;li&gt;Katt tiene Dare, que, en caso de éxito, permite provocar al enemigo para que éste centre sus ataques en ella. Tiene una tasa de éxito del 100%, pero funciona siempre a menos que te enfrentes a ciertos jefes finales de mazmorra o enemigos especiales que cuentan con inmunidad total a las provocaciones o alteraciones de comportamiento por fases. Augus, por ejemplo, es una de esas excepciones y la habilidad de Dare no le hace efecto.&lt;/li&gt;&lt;/ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Los contra-ataques:&lt;/li&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Ryu y Katt son los dos únicos personajes jugables del juego que pueden realizar contra-ataques al ser atacado. Remarco lo de jugables, puesto que también pueden ejecutarlos determinados enemigos y, por suerte, Augus no es uno de esos.&lt;/li&gt;&lt;li&gt;Cabe destacar que sólo pueden activarse como respuesta a ataques de típico físico y no a magias. Su porcentaje de éxito (el que se produzca o no el evento de contra-ataque) depende de cada personaje:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;La tasa de probabilidad de Ryu es de 1 entre 8, o lo que es lo mismo, del 12,50%. Es decir, cada 100 ataques físicos Ryu debería de haber realizado 12,50 contra-ataques aprox.&lt;/li&gt;&lt;li&gt;La tasa de probadilidad de Katt es de 1 entre 16, o lo que es lo mismo, del 6,25%. Esto se ve que se hizo aposta para que los jugadores no abusaran de &quot;Dare&quot;.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Las agallas. Los puntos de &quot;Guts&quot; suelen ser los grandes desconocidos de este juego:&lt;/li&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;&amp;nbsp;Cuando un personaje recibe un golpe mortal que debería dejarlo inconsciente (0 HP), el juego realiza una tirada oculta de probabilidad basada en su valor de Guts. Si la tirada tiene éxito, el personaje sobrevive al impacto y resucita instantáneamente con 1 HP, mostrando una animación especial de su sprite levantándose con furia.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;La probabilidad máxima (7 llamas de guts) es del 25%. Cuantas más llamas de Guts tengas, más cercano estarás del 25% de éxito en esa tirada.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Por un lado los puntos de guts varían según el nivel del personaje y se representan con 7 llamas en la pantalla del estado del personaje. No obstante, al igual que los otros parámetros, realmente son valores que van del 0 al 255 (un byte) y su representación gráfica es una regla de 3. En el nivel 9 Ryu debería de tener unos 128 puntos de Guts (4 llamas), Rand 90 puntos (2 llamas) y Katt unos 75 puntos (2 llamas).&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Es decir, si teines 75 puntos como es el caso de Katt, tu probabilidad de &quot;resucitar&quot; tras un golpe letal es del 7,35%&amp;nbsp;(75/255*100*0,25) y si tienes 255 puntos tu probabilidad será del 25% (255/255*100*0,25).&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Por otro, varían en función del combate:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Si un personaje muere en combate, su valor de Guts se reduce a 0 inmediatamente. Si el personaje resucita durante esa misma batalla, lo hará sin llamas de Guts.&lt;/li&gt;&lt;li&gt;Sufrir un daño masivo o un golpe crítico por parte de un enemigo puede disminuir temporalmente el valor de agallas del personaje afectado.&lt;/li&gt;&lt;li&gt;No existen condiciones que permitan ganar puntos de Guts (como hacer críticos al enemigo o realizar un contra-ataque).&lt;/li&gt;&lt;li&gt;Al terminar el combate, el valor temporal de Guts se restablece automáticamente a su valor base permanente.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&amp;nbsp;Habilidades como Wake, de Rand, tienen una bonificación en función de los puntos de Guts que tenga en ese momento. La fórmula para obtener la probabilidad de éxito es: (128 + Guts de Rand)/256. Esto significa que será más fácil revivir personajes con Wake siempre que Rand no haya muerto antes durante el combate.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Otro punto &quot;desconocido&quot; para la mayoría de usuarios es la condición, que tiene cuatro valores: Poor, Normal, Good y Super.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;En personajes como Ryu y Katt influyen, por ejemplo, en la tasa de activación de contra-ataques:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Poor -&amp;gt; 1 a 16 (valor por defecto de Katt)&lt;/li&gt;&lt;li&gt;Normal -&amp;gt; 1 a 8 (valor por defecto de Ryu)&lt;/li&gt;&lt;li&gt;Good -&amp;gt; 1 a 4 (25%)&lt;/li&gt;&lt;li&gt;Super -&amp;gt; 1 a 2 (50%)&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Influye en la probabilidad de evasión, de críticos y de ser afectados por estados alterados.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Uf... vaya tela. Tremenda especificación acabamos de largar en esta parrafada. Pero aún no hemos acabado:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Los combates son por turnos, pero en cada turno el orden de acción de los personajes depende de sus puntos de agilidad. Es decir, en cada turno tendrás que seleccionar las acciones de toda tu party (Ryu ataca al enemigo A, Rand recarga vida, Katt usa Dare...) pero en cuanto definas la última acción de tu grupo es cuando empezará la ronda y, tanto el orden de ejecución de tus personajes como el de la CPU dependerá de los puntos de agilidad de cada uno. Si tuvieramos un personaje con agilidad máxima (255), un enemigo con agilidad 128 y un compañero de agilidad 20, el orden de ejecución será 255, 128 y 20 en todos los turnos. Esto difiere de juegos como Brave Battle Saga o Final Fantasy VII, donde hay una barra de tiempo y los personajes con una agilidad absurdamente alta pueden atacar varais veces más que un personaje de agilidad baja. Por ejemplo, en estos dos juegos que acabo de mencionar, un personaje de agilidad 255 seguramente habría atacado 12 veces más que el de agilidad 20.&lt;/li&gt;&lt;li&gt;Además de atacar, hacer uso de habilidades únicas y mágias, los combates tienen permiten consumir ítems (de ataque y de curación) y seleccionar auto (auto-atacar) y huir (que contra jefes tienen 0% de éxito). Pero también tienen otras opciones ocultas como &quot;defenderse&quot; o &quot;cambiar estrategia&quot; (que cambia el posicionamiento de los miembros del equipo) que son accesibles pulsando R y L respectivamente en el menú de selección durante el combate.&amp;nbsp;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Defender reduce el daño en un 50% e incrementa la probabilidad de contra-ataque de Ryu y Katt, llegando a duplicarla e incluso tripicarla en función del contexto. Es decir, que si tienes a Ryu o a Katt en condición Super y los pones a defender, es muy probable que devuelvan con contra-ataques todo el dáño físico que reciben. Y si pones en vanguardia a Katt y ejecutas Dare, muy seguramente será siempre atacada por los enemigos.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Existen otros parámetros que hemos mencionado pero no descrito:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;WIS (Inteligencia), afecta al daño que ejerces con lanzando conjuros/magias. Aunque diga que Cure 1 cura 40 puntos de vida, ese es el valor máximo que puedes curar en función del valor de WIS.&lt;/li&gt;&lt;li&gt;LUK (Suerte) es una stat &quot;rota&quot;, no sirve para nada y el juego nunca la emplea. Debería de utilizarse en el sistema de chamanes, pero no es el caso por errores de código (tiene varios el juego) y no influye tampoco para el dropeo de ítems, ni en en la prevención de estados (como caer envenenado o ser dormido) y no se emplea tampoco para calcular críticos, ni para calcular si tienes éxito para huir. Para la mayoría de personajes de la party, sólo sirve para el daño de los ataques normales: Cuando se calcula el daño, hay varios rangos posibles (Low / Mid / High). Dentro de cada rango el juego elige entre varios multiplicadores, y cuanto más alto sea el Luck del atacante, más probabilidad tiene de salir el multiplicador más alto. En enemigos influye en la probabilidad de hacer un ataque &quot;Slammed&quot; (el crítico/especial de los enemigos). En Bow incluso pasa una cosa curiosa, se utiliza el luck del enemigo para alterar la precisión del habilidad de Shot / Snipe. Es decir, en vez de mirar la suerte de Bow, el juego mira la suerte del que va a recibir el disparo: A más suerte, menor será la precisión de Bow con su habilidad.&lt;/li&gt;&lt;li&gt;STA (Stamina) sirve para mitigar el daño físico en los combates.&lt;/li&gt;&lt;li&gt;DEF (Defensa) es la defensa TOTAL, contando stamina y los valores defensivos de tu equipamiento (armadura/casco/escudo).&lt;/li&gt;&lt;li&gt;De la misma forma, STR (fuerza) es el daño físico de tu personaje, pero OFF (ataque) es la suma de STR con el daño físico que ejerce tu arma.&lt;/li&gt;&lt;li&gt;Antes he dicho que el turno de quién ataca primero es de la agilidad: Mentí como un bellaco. Realmente este valor depende de VIGOR y se calcula con &quot;Agilidad + Bonos de chamán - Peso total de equipamiento&quot; y está restringido para tener valor mínimo 0 y máximo 511. En la práctica, VIGOR atrapa valores entre el 0 y el 511 y los personajes con más agilidad suelen ser los personajes con más vigor. En caso de empate (mismo punto de vigor), el orden se decide por la posición de la party del personaje (el personaje en posición 1 ataca antes que el de posición 2, el 2 antes que el 3 y el 3 antes que el 4). La fórmula varía para los enemigos: Agilidad + número al azar entre el 0 y el 7. En caso de empate de Vigor entre un personaje del jugador y un enemigos, siempre atacan antes los personajes de los jugadores.&lt;/li&gt;&lt;li&gt;VIGOR, OFF y DEF son los únicos stats que tienen valores entre 0 y 511. El resto de campos ocupan un sólo byte (de 0 a 255).&amp;nbsp;&lt;/li&gt;&lt;li&gt;Los ítems de ataque y curación son realmente &quot;magias&quot;, pero con otro nombre. Herb en el fondo es Cure 1, por ejemplo, pero de un sólo uso, sin quitar puntos de AP y sin ser afectados por WIS.&lt;/li&gt;&lt;li&gt;Existen 4 tipos de estrategia: Scramble (ataque), Normal, Defense y Parallel... y a pesar de sus nombres, los modificadores que aportan son bastante engañosos. Por ejemplo, &quot;Normal&quot; penaliza bastante a casi toda la party para que el líder sea la estrella y Parallel no aplica modificadores idénticos a todos los miembros del grupo de vanguardia o a todos los miembros del grupo de defensa:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Scramble añade un 20% de ataque en las posiciones 1 y 2, pero también reciben un 20% más de daño. La posición 4 recibe una penalización del 5% en ataque, pero también recibe un 10% menos de daño. La posición 3 no recibe modificadores.&lt;/li&gt;&lt;li&gt;La normal aplica un bonificador de 30% de ataque en la posición 1, pero recibe también un 30% más de daño. En la posición 2 recibe una penalización del 5% de ataque, pero recibe una bonificación del 10% en defensa. La posición 3 recibe una penalización del 10% de ataque, pero una bonificación del 15% de defensa. La posición 4 recibe una penalización del 25% de ataque, pero también una bonificación del 25% de defensa.&lt;/li&gt;&lt;li&gt;Defense aplica penalizaciones del 17% de ataque en las posiciones 2 y 3, pero a su vez las bonifica un 20% en defensa, mientras que en la posición 4 recibe una penalización del 25% de ataque y una bonificación del 25% en defensa. La posición 1 no recibe modificadores.&lt;/li&gt;&lt;li&gt;Por último, Parallel, aplica un bonificador del 20% en ataque y una penalización del 20% de defensa; la posición 2 no recibe modificadores; la posición 3 recibe una penalización del 10% de ataque y una bonificación del 15% de defensa y la posición 4 recibe una penalización del 17% de ataque y una bonificación del 20% de defensa.&lt;/li&gt;&lt;li&gt;Sea cual sea la táctica, la probabilidad de recibir un ataque debería ser:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Posición 1: 50%&lt;/li&gt;&lt;li&gt;Posición 2: 31%&lt;/li&gt;&lt;li&gt;Posición 3: 12%&lt;/li&gt;&lt;li&gt;Posición 4: 6%&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Con estos números parece que Normal es peor que Scramble, pero nada más lejos de la realidad, si calculamos cálculos de ratio de modificadores ofensivos/defensivos, el que tiene mejor ratio sería Normal (1,026), Parallel (1,021), Defense (1,018) y por último Scramble (1,012). Pero claro, como todos los personajes tienen stats distintas, el ratio da absolutamente igual y lo que te importa es poder usar una estrategia que sea acorde a los puntos fuertes y débiles de tu parte. Por ejemplo, en una táctica donde manejamos a Ryu, Katt y Rand, conviene usar Scramble.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Flipando, ¿verdad? Es increíble la cantidad de detalles que no salen explicados en el manual de instrucciones. Tenemos ya las reglas definidas y ahora nos haría falta fabricar los assets:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8pEgjai35VzfZyhWUKAeuXf64TkNotni45eREcQttrkg8aXS4Z32ydXbspmITbZ4Zo-5ftkWl_DAZ8ZSvwZAqEvLU01Uwl2_mI3FqTjhmGvJEwRHYGnlxo7KcytnmqhHevj2bbVYWg4k2spAQkYvMh5Fgvmjp65sBpDOwWybK_RboEP9yIoS/s960/vlcsnap-2025-01-23-02h37m54s647.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;960&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8pEgjai35VzfZyhWUKAeuXf64TkNotni45eREcQttrkg8aXS4Z32ydXbspmITbZ4Zo-5ftkWl_DAZ8ZSvwZAqEvLU01Uwl2_mI3FqTjhmGvJEwRHYGnlxo7KcytnmqhHevj2bbVYWg4k2spAQkYvMh5Fgvmjp65sBpDOwWybK_RboEP9yIoS/w640-h360/vlcsnap-2025-01-23-02h37m54s647.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Si nos fijamos en la escena, nos haría falta:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Modelar o dibujar el escenario de combate. En este caso es el despacho de Augus.&lt;/li&gt;&lt;li&gt;Dibujar una interfaz (las ventanas).&lt;/li&gt;&lt;ul&gt;&lt;li&gt;La ventana principal de combate donde vemos los miembros de nuestra party, sus puntos de vida, de magia, una barra de vida su nivel.&lt;/li&gt;&lt;li&gt;Una popup con la selección de comandos.&lt;/li&gt;&lt;li&gt;Una popup con los diálogos que salen durante el combate.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Modelar o dibujar a los personajes:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Augus.&lt;/li&gt;&lt;li&gt;Katt.&lt;/li&gt;&lt;li&gt;Ryu.&lt;/li&gt;&lt;li&gt;Rand.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Dibujar las partículas de las magias y habilidades:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Cure 1 y Cure 2.&lt;/li&gt;&lt;li&gt;CurePsn.&lt;/li&gt;&lt;li&gt;Gust.&lt;/li&gt;&lt;li&gt;Dare.&lt;/li&gt;&lt;li&gt;Wake.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Música del combate, música de victoria y efectos de sonido.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ahora analicemos las reglas de gestión a implementar para un combate, que básicamente es enumerar todo lo que he explicado arriba, pero con reglas claras y concisas. Ahora bien, me ha salido un documento gigantesco de casi 3.000 líneas que tendréis disponible en mi GIT (&lt;a href=&quot;https://github.com/LeHamsterRuso/BOF2LikeGodot/blob/main/Conception/Functional-Specification.md&quot;&gt;https://github.com/LeHamsterRuso/BOF2LikeGodot/blob/main/Conception/Functional-Specification.md&lt;/a&gt;), pero digamos que estos son los puntos más importantes a destacar:&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Las entidades&lt;/h2&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Tenemos dos, Personaje (jugable) y Enemigo, ambas bastante parecidas:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Character {&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 40px; text-align: left;&quot;&gt;&amp;nbsp; ID, Name, Level&lt;br /&gt;&amp;nbsp; HP, MaxHP&lt;br /&gt;&amp;nbsp; AP, MaxAP&lt;br /&gt;&amp;nbsp; Str, Stmna, Agi, bWis, bLuck, Guts&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // básicos&lt;br /&gt;&amp;nbsp; Off, Def, Vigor, Wis, Luck&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // derivados&lt;br /&gt;&amp;nbsp; Condition (0-255) → visual: Ill/Poor/OK/Good/Super&lt;br /&gt;&amp;nbsp; ElementalResistances[0..3]&lt;br /&gt;&amp;nbsp; Equipment&lt;br /&gt;&amp;nbsp; FormationPosition (1-4)&lt;br /&gt;&amp;nbsp; StatusEffects[]&lt;br /&gt;&amp;nbsp; Skills[]&lt;br /&gt;&amp;nbsp; CanCounter : bool&lt;br /&gt;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;Enemy {&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-left: 40px; text-align: left;&quot;&gt;&amp;nbsp; ID, Name&lt;br /&gt;&amp;nbsp; HP, MaxHP&lt;br /&gt;&amp;nbsp; AP, MaxAP&lt;br /&gt;&amp;nbsp; Off, Def, Agi, Wis, Luck&lt;br /&gt;&amp;nbsp; MagicSusceptibility (Ms)&amp;nbsp; &amp;nbsp;// -3 a +4&lt;br /&gt;&amp;nbsp; ElementType&lt;br /&gt;&amp;nbsp; StatusImmunities&lt;br /&gt;&amp;nbsp; Actions[]&lt;br /&gt;&amp;nbsp; AI&lt;br /&gt;&amp;nbsp; Rewards (Exp, Zenny, Items)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;- Básicos: Str, Stmna, Agi, bWis, bLuck, Guts&amp;nbsp;&lt;/p&gt;&lt;p&gt;- Derivados:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Off = [Str + poder de arma + bonos chamán + equipo]&amp;nbsp;×2 si Pwr.Up o Rotting (máx. 511)&amp;nbsp;&lt;/li&gt;&lt;li&gt;Def = [Stmna + poder armadura/escudo/casco + bonos]&amp;nbsp;÷2 si Def.Dn / ×1.2 si Def.Up (máx. 511)&amp;nbsp;&lt;/li&gt;&lt;li&gt;Vigor = [Agi + bonos chamán + equipo] (máx. 511) − peso de armadura&amp;nbsp;÷2 si Agi.Dn&amp;nbsp;&lt;/li&gt;&lt;li&gt;Wis = [bWis + bonos chamán + equipo] ×2 si Wis.Up&amp;nbsp;&lt;/li&gt;&lt;li&gt;Luck = [bLuck + bonos de equipo]&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Flujo de combate:&lt;/h2&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Fase 0 – Inicio de ronda&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Actualizar Condition de todos los miembros del party.&lt;/li&gt;&lt;li&gt;Procesar status de fin de ronda anterior (Rotting → Zombie, etc.).&lt;/li&gt;&lt;li&gt;Comprobar quién puede actuar.&amp;nbsp; &amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Fase 1 – Selección de acciones del party&lt;/li&gt;&lt;ul&gt;&lt;li&gt;El jugador elige acción y objetivo para cada personaje que pueda actuar.&lt;/li&gt;&lt;li&gt;Se puede cambiar formación en cualquier turno con Swch (actualiza Risk Levels inmediatamente).&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Fase 2 – Selección de acciones enemigas&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;Cada enemigo ejecuta su AI y guarda su acción + objetivo.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Fase 3 – Cálculo del orden de ejecución&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Calcular Vigor de todos los combatientes vivos.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Si &quot;humano&quot;: [Agi + bonos chamán + equipo] (máx. 511) − peso de armadura ÷2 si Agi.Dn.&lt;/li&gt;&lt;li&gt;Si &quot;enemigo&quot;:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;BOSS: Agi&amp;nbsp;÷2 si Agi.Dn.&lt;/li&gt;&lt;li&gt;Por defecto:&amp;nbsp;(Agi + rand(0, 7)) ÷2 si Agi.Dn.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Ordenar de mayor a menor Vigor.&lt;/li&gt;&lt;li&gt;Aplicar reglas de empate: Party pos. 1 → 2 → 3 → 4 → Enemigos.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Fase 4 – Resolución de acciones (Turno A → Turno B)&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;FOR each Action in TurnOrder:&lt;/code&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;IF Actor no puede actuar (p. ej. acaba de morir) → CONTINUE&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;ValidateAction()&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;ExecuteAction()&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;ApplyDamage / Healing / Status&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;Mostrar números y animaciones&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;// Eventos inmediatos entre Turno A y Turno B&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;CheckDeath()&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;CheckCounterAttack()          // solo ataques físicos enemigos&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;CheckWakeUpFromSleep()&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;CheckBattleEnd()&lt;/code&gt;&lt;/li&gt;&lt;li&gt;&lt;code class=&quot;language-text&quot; style=&quot;background-color: transparent; color: black; font-family: monospace; font-size: 10pt;&quot;&gt;Actualizar objetivos de acciones pendientes&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;li&gt;Fase 5 – Fin de ronda&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Si el combate continúa → volver a Fase 0.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Acción de defenderse&lt;/h2&gt;&lt;p&gt;// 1. El personaje renuncia a su acción en esta ronda&lt;br /&gt;No realiza ningún ataque ni hechizo este turno.&lt;br /&gt;&lt;br /&gt;// 2. Durante toda la ronda, el daño que reciba se reduce según el tipo:&lt;br /&gt;&lt;br /&gt;Si el daño es físico (normal o especial físico):&lt;br /&gt;&amp;nbsp; Damage = Damage × uno de los siguientes valores (aleatorio):&lt;br /&gt;&amp;nbsp; &amp;nbsp; { 0.85 , &amp;lt;0.75 , 0.65 , &amp;lt;0.50 }&lt;br /&gt;&lt;br /&gt;Si el daño es mágico o especial defendible:&lt;br /&gt;&amp;nbsp; Damage = Damage × uno de los siguientes valores (aleatorio):&lt;br /&gt;&amp;nbsp; &amp;nbsp; { 0.95 , 0.85 , 0.75 , 0.65 }&lt;br /&gt;&amp;nbsp; (Cuanto más alto sea el Wis del defensor, más probabilidad tiene de obtener el multiplicador más bajo)&lt;br /&gt;&lt;br /&gt;// 3. Casos en los que Defense NO tiene efecto:&lt;br /&gt;Si el ataque está marcado como “indefendible” (Undefendable):&lt;br /&gt;&amp;nbsp; Damage no se modifica.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ataque físico de la party:&lt;/h2&gt;&lt;p&gt;Pwr = Off_atacante - Def_objetivo&lt;br /&gt;si Pwr &amp;lt; 0 → Pwr = 0&lt;br /&gt;&lt;br /&gt;si Pwr &amp;lt; 63:&amp;nbsp; &amp;nbsp; &amp;nbsp;Damage = LowRangeTable(Pwr, Luck)&lt;br /&gt;si 63 ≤ Pwr &amp;lt; 99: Damage = Pwr × {0.85, 0.90, 0.97, 1.03}&amp;nbsp; &amp;nbsp;(Luck)&lt;br /&gt;si Pwr ≥ 99:&amp;nbsp; &amp;nbsp; &amp;nbsp;Damage = Pwr × {0.58, 0.64, 0.70, 0.76}&amp;nbsp; &amp;nbsp;(Luck)&lt;br /&gt;&lt;br /&gt;si puede ser Special y éxito → Damage ×= 2&lt;br /&gt;&lt;br /&gt;si objetivo usa Defense → Damage ×= DefendPhysical()&amp;nbsp; &amp;nbsp;// {0.85, &amp;lt;0.75, 0.65, &amp;lt;0.50}&lt;br /&gt;&lt;br /&gt;Damage ×= attack_modifier(riesgo atacante)&lt;br /&gt;Damage ×= defend_modifier(riesgo defensor)&lt;br /&gt;&lt;br /&gt;Aplicar elementos&lt;br /&gt;si Pwr.Dn → Damage ×= 7/8&lt;br /&gt;&lt;br /&gt;Damage = MAX(1, MIN(999, floor(Damage)))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ataque físico de los enemigos:&lt;/h2&gt;Pwr = Off_atacante - Def_objetivo&lt;br /&gt;&lt;div&gt;si Pwr &amp;lt; 0 → Pwr = 0&lt;br /&gt;&lt;br /&gt;si Pwr &amp;lt; 63:&amp;nbsp; &amp;nbsp; &amp;nbsp;Damage = LowRangeTable(Pwr, Luck)&lt;br /&gt;si 63 ≤ Pwr &amp;lt; 99: Damage = Pwr × {0.85, 0.90, 0.97, 1.03}&amp;nbsp; &amp;nbsp;(Luck)&lt;br /&gt;si Pwr ≥ 99:&amp;nbsp; &amp;nbsp; &amp;nbsp;Damage = Pwr × {0.58, 0.64, 0.70, 0.76}&amp;nbsp; &amp;nbsp;(Luck)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;// Ajuste exclusivo de enemigos&lt;br /&gt;Damage = Damage + (Luck_enemigo × {1/8, 2/8, 3/8, 4/8}) + Random(0,1)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;si puede ser Special y éxito → Damage ×= 2&lt;br /&gt;&lt;br /&gt;si objetivo usa Defense → Damage ×= DefendPhysical()&amp;nbsp; &amp;nbsp;// {0.85, &amp;lt;0.75, 0.65, &amp;lt;0.50}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #fcff01;&quot;&gt;// Los enemigos siempre tienen Risk = 0, por lo que no aplican attack_modifier&lt;br /&gt;Damage ×= defend_modifier(riesgo del defensor)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Aplicar resistencias elementales (si el ataque tiene elemento)&lt;br /&gt;&lt;br /&gt;si el atacante tiene Pwr.Dn → Damage ×= 7/8&lt;br /&gt;&lt;br /&gt;Damage = MAX(1, MIN(999, floor(Damage)))&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Magia&lt;/h2&gt;&lt;p&gt;// 1. Cálculo del daño base (igual para todos)&lt;br /&gt;BaseDamage = SpellPower + Random(0..7)&lt;br /&gt;&lt;br /&gt;// 2. Si el objetivo es un ENEMIGO:&lt;br /&gt;Damage = BaseDamage × (1.0 + Ms × 0.04)&lt;br /&gt;&lt;br /&gt;&amp;nbsp; Donde Ms (Magic Susceptibility) del enemigo puede ser:&lt;br /&gt;&amp;nbsp; -3 → ×0.88&lt;br /&gt;&amp;nbsp; -2 → ×0.92&lt;br /&gt;&amp;nbsp; -1 → ×0.96&lt;br /&gt;&amp;nbsp; &amp;nbsp;0 → ×1.00&lt;br /&gt;&amp;nbsp; +1 → ×1.04&lt;br /&gt;&amp;nbsp; +2 → ×1.08&lt;br /&gt;&amp;nbsp; +3 → ×1.12&lt;br /&gt;&amp;nbsp; +4 → ×1.16&lt;br /&gt;&lt;br /&gt;// 3. Si el objetivo es un PERSONAJE del party:&lt;br /&gt;Damage = BaseDamage&lt;br /&gt;(No se aplica el modificador de Ms)&lt;br /&gt;&lt;br /&gt;// 4. Well Cast (solo cuando el lanzador es del party)&lt;br /&gt;Si el hechizo es de daño y se produce Well Cast:&lt;br /&gt;&amp;nbsp; Damage = Damage × 1.5&lt;br /&gt;&lt;br /&gt;// 5. Aplicar elementos&lt;br /&gt;Si el objetivo es enemigo → aplicar debilidades/resistencias del tipo del enemigo&lt;br /&gt;Si el objetivo es del party → aplicar resistencias elementales del equipamiento&lt;br /&gt;&lt;br /&gt;// 6. Defensa&lt;br /&gt;Si el objetivo está usando Defense y el hechizo es defendible:&lt;br /&gt;&amp;nbsp; Damage = Damage × uno de {0.95, 0.85, 0.75, 0.65}&lt;br /&gt;&lt;br /&gt;// 7. Límite final&lt;br /&gt;Damage = MAX(1, MIN(999, floor(Damage)))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Estados alterados principales&lt;/h2&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Poison:&amp;nbsp;No daña en combate, pero te coloreaba morado. Restaba 1 HP por paso en el mapa.&lt;/li&gt;&lt;li&gt;Sleep: El personaje no actúa. Se despierta con daño físico&lt;/li&gt;&lt;li&gt;Rotting:&amp;nbsp;Tras 1 ronda completa → Zombie&lt;/li&gt;&lt;li&gt;Zombie:&amp;nbsp;Puede atacar aliados. Al final del combate → Dead&lt;/li&gt;&lt;li&gt;Pwr.Up:&amp;nbsp;Off ×2 (máx 511)&lt;/li&gt;&lt;li&gt;Pwr.Dn:&amp;nbsp;Daño físico × 7/8&lt;/li&gt;&lt;li&gt;Def.Up: Def ×1.20 (máx 511)&lt;/li&gt;&lt;li&gt;Def.Dn: Def&amp;nbsp;÷2.&lt;/li&gt;&lt;li&gt;Agi.Dn:&amp;nbsp;Vigor ÷2&amp;nbsp;&lt;/li&gt;&lt;li&gt;Agi.Up: Estaba bugeado en SNES (no hacía nada), pero lo corrigieron en GBA. Aplica Vigor x2 (máx 511).&lt;/li&gt;&lt;li&gt;Hushed:&amp;nbsp;Impide magia&lt;/li&gt;&lt;li&gt;Curse:&amp;nbsp;Fuerza Condition a ILL&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Los modelos 3D&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;Y con todos estos ingredientes me puse a trabajar en los gráficos. Ahora bien, no me calenté la cabeza, hice con Blender el escenario 3D y delegué en Meshy.AI la generación de los personajes (entrada NO patrocinada). Respecto al escenario, aunque lo modelé yo, también delegué en Meshy para su texturización.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Usar IA para generar modelos 3D tiene sus contras. Además del debate moral sobre saber de dónde han sacado los datos para entrenar los modelos, está el tema de la optimización. Como podréis observar cada personaje tiene unos 15.000 polígonos, lo cual sería inviable si hiceramos un JRPG de verdad (con sus aldeas y sus NPC paseando y comprando), pero en nuestro contexto es viable teniendo en cuenta que la escena sólo tendrá 4 personajes y un escenario simple. Otro punto importante es el RIG, como podréis observar en la demo, éste hace agua para cualquiera que sepa modelar en 3D.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Además está el tema de la comodidad: A mí me gusta modelar en 3D, es una de mis aficiones, pero cada modelo me puede llevar varias semanas. Hacer una demo con 4 personajes que apenas me dará visibilidad, que sólo la modelación me puede llevar meses y que encima no puedo comercializar, pues fue una de las motivaciones por las que me hico apostar por Meshy.AI (repito, entrada NO patrocinada).&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRTUZsvXRtsyQMXDGu0d7NKwKSAaKDgTZqWCk-DgJ0-w__z6FPYku9PYcohBHE_PExBkv2aetxBV5agLInh8b1DOP3NQsl0OigFjXHh8qR8LIkKqjkbNOY_RNc7hyphenhyphenNf1y1Iye-q-sTyeIz52e8R6rW0EAeGrdifH-YAogAXWFgukJhmNOSgNbU/s1092/Captura%20de%20pantalla%202026-09-12%20095638.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;829&quot; data-original-width=&quot;1092&quot; height=&quot;486&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRTUZsvXRtsyQMXDGu0d7NKwKSAaKDgTZqWCk-DgJ0-w__z6FPYku9PYcohBHE_PExBkv2aetxBV5agLInh8b1DOP3NQsl0OigFjXHh8qR8LIkKqjkbNOY_RNc7hyphenhyphenNf1y1Iye-q-sTyeIz52e8R6rW0EAeGrdifH-YAogAXWFgukJhmNOSgNbU/w640-h486/Captura%20de%20pantalla%202026-09-12%20095638.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRE_tLAENzUVHKCBYZaofz5ulCyDpbhgqVeXF5IF08Vg9sHistKpbs3S41_TEfsYWZQL8oZjwgWjk1R-gfzwqW7WdMhaG236g2i_M2U6IO_dwLspACqSfuTrSYeIjAnHko7AbDcdYwrzimzOl8snbBWs3W0TzPrXkpuINr_9B9eu6uHuWuC3w9/s1087/Captura%20de%20pantalla%202026-09-12%20095704.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;835&quot; data-original-width=&quot;1087&quot; height=&quot;492&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRE_tLAENzUVHKCBYZaofz5ulCyDpbhgqVeXF5IF08Vg9sHistKpbs3S41_TEfsYWZQL8oZjwgWjk1R-gfzwqW7WdMhaG236g2i_M2U6IO_dwLspACqSfuTrSYeIjAnHko7AbDcdYwrzimzOl8snbBWs3W0TzPrXkpuINr_9B9eu6uHuWuC3w9/w640-h492/Captura%20de%20pantalla%202026-09-12%20095704.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL1MioBZiakeR7pNLlkcagjePjc5qPbVCEVR8fJm6REUTW7uCW7kd0ezyeDXug4nIJs1d0QJd1uOGBxwMdrzA8IZ2fzUdI3Dqw2aAVZ3CPNJFJleVXQlId-vsPV76On6umCUV8PJ-vJElyPtmCC1GALtArcGuuKUfthAdQtEChi92HR-b5bSs3/s1085/Captura%20de%20pantalla%202026-09-12%20095854.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;826&quot; data-original-width=&quot;1085&quot; height=&quot;488&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL1MioBZiakeR7pNLlkcagjePjc5qPbVCEVR8fJm6REUTW7uCW7kd0ezyeDXug4nIJs1d0QJd1uOGBxwMdrzA8IZ2fzUdI3Dqw2aAVZ3CPNJFJleVXQlId-vsPV76On6umCUV8PJ-vJElyPtmCC1GALtArcGuuKUfthAdQtEChi92HR-b5bSs3/w640-h488/Captura%20de%20pantalla%202026-09-12%20095854.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzGXLBeVRyEox31M2teo66s4Xmn-N0Y9yAmq5-iJm3-1Z2eLJdYoGjvuGEkXNE1GRWkPc5jNpQ0a1K8WliOWi4lxVO3M9YDwYX8ia-HAImm3vMdi3YEpNoRbNP3EuqyYUQVWVCIoT3RDvgePCQuJdoht1KCIC7A6MqZxrHP3i9t1spIB4-gzFy/s1072/Captura%20de%20pantalla%202026-09-12%20095916.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;793&quot; data-original-width=&quot;1072&quot; height=&quot;474&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzGXLBeVRyEox31M2teo66s4Xmn-N0Y9yAmq5-iJm3-1Z2eLJdYoGjvuGEkXNE1GRWkPc5jNpQ0a1K8WliOWi4lxVO3M9YDwYX8ia-HAImm3vMdi3YEpNoRbNP3EuqyYUQVWVCIoT3RDvgePCQuJdoht1KCIC7A6MqZxrHP3i9t1spIB4-gzFy/w640-h474/Captura%20de%20pantalla%202026-09-12%20095916.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBEvEYHR7yDAPDtjwx-ryE8ZXas2RQgXFEXTB_K3UhAVjQpUfNyCS8BuFCDvVszgWMKsISlLt12ItttRJTy80-NxLnGZt12kh-GCb-13Mrmeydt-hjgjvhUebzf_x7wE3X1mQblDXewZWa624_wpvEPlpY9PWw5TYg5TpNEsDVwiB8qfwOXBIK/s1323/Captura%20de%20pantalla%202026-09-12%20100036.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;842&quot; data-original-width=&quot;1323&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBEvEYHR7yDAPDtjwx-ryE8ZXas2RQgXFEXTB_K3UhAVjQpUfNyCS8BuFCDvVszgWMKsISlLt12ItttRJTy80-NxLnGZt12kh-GCb-13Mrmeydt-hjgjvhUebzf_x7wE3X1mQblDXewZWa624_wpvEPlpY9PWw5TYg5TpNEsDVwiB8qfwOXBIK/w640-h408/Captura%20de%20pantalla%202026-09-12%20100036.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Las meoldías&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp;Para la música he tirado de Suno, utilizando prompts como:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- &quot;classic SNES rock, 16-bit boss battle, fast shredding guitar riff intro, heavy palm-muted power chords, layered guitar harmonies, tight drums, groovy bassline, raw SNES sound chip, energetic and thrusting, short and repetitive, instrumental&quot; para el tema principal;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- &quot;16-bit SNES RPG victory fanfare, upbeat and cheerful, triumphant brass and synth melody, playful sound, short looping jingle, energetic and rewarding, retro SNES samples, light and joyful, instrumental, Treasures Won vibe&quot; para la música de victoria;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- &quot;16-bit SNES RPG game over theme, somber and melancholic, sad piano and soft strings, emotional and defeated atmosphere, slow tempo, retro sound, poignant melody, instrumental, Give Me a Chance vibe&quot; para el Game Over.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;La demo&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Y con todos estos elementos, os presento cómo han quedado ambas versiones:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/5Cpp4kzQ5QY&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/ydTod95VIYU&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;





</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/09/div2godot-replicando-el-sistema-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/5278682277559100593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/5278682277559100593'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/09/div2godot-replicando-el-sistema-de.html' title='[DIV2/Godot] Replicando el sistema de combates de Breath of Fire 2'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIRfzrR4ifrIfetxkrUdXwxNWxYGvWK66-oxinVvPuDTVS7kkXOuqpcvyYRrwKtPV4PxxEivI41vAQDPgCDNnytvUvrziHFlYFb-vE6g5JgVd-nYTSK5uiyXxMBkY9dg5keYpgzj_fDDHby2lpRlwlDEMPsCzemDQk8PjlgBaYXloZOutu45Iu/s72-w640-h360-c/GgU9dAlXgAADpsO.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-3372542120059494028</id><published>2026-06-28T12:56:02.803+02:00</published><updated>2026-06-28T14:45:41.102+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ainz ool gown"/><category scheme="http://www.blogger.com/atom/ns#" term="anime"/><category scheme="http://www.blogger.com/atom/ns#" term="manga"/><category scheme="http://www.blogger.com/atom/ns#" term="overlord"/><title type='text'>Jugadores perdidos, héroes falsos y muertos inquietos: Arqueología del lore en Overlord</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Overlord es una serie de anime, manga y novelas ligeras que ha capturado la atención de muchos, pero su verdadero tesoro radica en el vasto y complejo &lt;i&gt;lore&lt;/i&gt;&amp;nbsp;(información, historias, trasfondos y detalles que conforman el universo de una obra de ficción)&amp;nbsp;que la acompaña. Aunque el anime ofrece una visión general, es en el manga, las novelas ligeras e incluso la novela web original donde se revelan detalles profundos y fascinantes que enriquecen el universo de Overlord: Desde las intrincadas historias de fondo hasta las relaciones sutiles, como la de Tuare y Ninya, hasta la existencia de varias oleadas de jugadores, el &lt;i&gt;lore&lt;/i&gt; de Overlord es un universo en sí mismo, lleno de misterios y descubrimientos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Inspirada por un short del canal Nazarick Archives (h&lt;a href=&quot;ttps://www.youtube.com/@NazarickArchives&quot;&gt;ttps://www.youtube.com/@NazarickArchives&lt;/a&gt;), o de las anécdotas triviales encontradas en sitios como &lt;a href=&quot;http://overlord.fandom.com&quot;&gt;overlord.fandom.com&lt;/a&gt;&amp;nbsp;u&amp;nbsp;&lt;a href=&quot;http://overlordmaruyama.fandom.com&quot;&gt;overlordmaruyama.fandom.com&lt;/a&gt;, la siguiente entrada pretende satisfacer la curiosidad del aficionado a la saga, aquel que ha visto las cuatro temporadas del anime, la OVA y que considera conocer todos los secretos de Nazarick. Y es que, El trasfondo argumental de Overlord, es uno de los más intrigantes, cautivadores, ocultos y geniales que existen.&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPOnstYE2tGdWm9MXrAyqcmapynB_iRz1rlwGbhcVXboq1b1ziYqIT4Ql_zSA9F0hHgOD4l_GfDGHqIRrwsufs9xdJee7TQXJZEI747hxKqp8Y4q7PmjM1JfXWyjMeE0xqr3ChCW_F_pmqgjTp4HL0tOZ_vEJNgXsnjiUYWg6l9r3CJUnvJZ0p/s1500/81jAeEw48hL._SL1500_.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1500&quot; data-original-width=&quot;987&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPOnstYE2tGdWm9MXrAyqcmapynB_iRz1rlwGbhcVXboq1b1ziYqIT4Ql_zSA9F0hHgOD4l_GfDGHqIRrwsufs9xdJee7TQXJZEI747hxKqp8Y4q7PmjM1JfXWyjMeE0xqr3ChCW_F_pmqgjTp4HL0tOZ_vEJNgXsnjiUYWg6l9r3CJUnvJZ0p/w422-h640/81jAeEw48hL._SL1500_.jpg&quot; width=&quot;422&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Portada de la novela 16 de Overlord (versión inglesa).&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;(Las llaman &quot;ligeras&quot;, pero cada una tiene como 500 páginas).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Un guion elaborado y muy revisado.&amp;nbsp;&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Aunque parezca lógico, nunca está de más resaltar que todo el trasfondo de Overlord no ha sido escrito en un proceso inmediato, no nació así de la noche a la mañana. Kugane Maruyama, el autor original, es un gran aficionado a Dungeons &amp;amp; Dragons que comenzó a escribir Overlord en 2010 bajo el pseudónimo Muchimuchi Puririn en el popular sitio web japonés Shōsetsuka ni Narō (traducido como “Vamos a ser novelistas”, &lt;a href=&quot;https://ncode.syosetu.com/n4402bd/&quot;&gt;[enlace]&lt;/a&gt;). Allí, su obra llamó la atención de Enterbrain (la empresa detrás de RPG Maker), quien adquirió los derechos para publicar las conocidas novelas ligeras que acabaron saliendo a la venta en julio de 2012.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgToVaXZnZitf2euJlgD68QwbZaMYei7O3Elnf9mWZhnTUHB6soOJ2TrWmwcUKQF6li6CRVe3GtS6mGDN0WMmQREdm5c9rNyaZmR82embL0Q1rXcIgyvn2rvSSYDJCTE1j7GwU8ma89SBlx3tNxxcBd3PGTNVqG3IoFlM4iRh5pH7JU4sjQQoj3/s2868/IMG_8433.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1268&quot; data-original-width=&quot;2868&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgToVaXZnZitf2euJlgD68QwbZaMYei7O3Elnf9mWZhnTUHB6soOJ2TrWmwcUKQF6li6CRVe3GtS6mGDN0WMmQREdm5c9rNyaZmR82embL0Q1rXcIgyvn2rvSSYDJCTE1j7GwU8ma89SBlx3tNxxcBd3PGTNVqG3IoFlM4iRh5pH7JU4sjQQoj3/w640-h282/IMG_8433.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5VORuYKHCQMxp9KaPKz8PscZjehGWoMG4QyHGdC2uJcI4Mz3Tt_jqkaRYyvJbBclWCoH5sPXZ8P20GYsIxJUVvx17aoBySdVE8mk9UxGXJnQVnVnfU-8Fbby1qkXeNCwe3uLDE9V53bod_S-NHFCJuk6CjaXhGw1WHZhNoOPgzQEYc8hHIqkV/s3158/IMG_8434.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1165&quot; data-original-width=&quot;3158&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5VORuYKHCQMxp9KaPKz8PscZjehGWoMG4QyHGdC2uJcI4Mz3Tt_jqkaRYyvJbBclWCoH5sPXZ8P20GYsIxJUVvx17aoBySdVE8mk9UxGXJnQVnVnfU-8Fbby1qkXeNCwe3uLDE9V53bod_S-NHFCJuk6CjaXhGw1WHZhNoOPgzQEYc8hHIqkV/w640-h236/IMG_8434.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;El autor se pasaba 5 horas al día en el club de literatura... jugando al rol.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Es importante mencionar que Enterbrain formaba parte de Kadokawa y que en 2013 se llevó a cabo una importante reestructuración corporativa para unificar todas sus editoriales bajo una sola entidad, denominada Kadokawa Corporation. La novela obtuvo un éxito moderado en su lanzamiento (aunque no excepcional), debido en gran medida a la sólida base de aficionados que ya poseía de la plataforma Shōsetsuka ni Narō. Sin embargo, gracias al boca a boca en cada nuevo volumen se experimentó un aumento en las ventas. No sólo las ventas no menguaban en cada nuevo volumen... ¡subían!&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Ante el auge de la novela ligera, Kadokawa encargó al mangaka Satoshi Ōshio la adaptación al manga (publicada en 2014 en la revista Kadokawa Mensual Comp) y a Madhouse la creación del anime (estrenado en 2015). El anuncio del anime impulsó considerablemente las ventas de los libros y en 2022 ya alcanzaban las 14 millones de copias vendidas (menos que las 30 millones de Sword Art Online, pero más que las 13 millones de Re:Zero,&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/List_of_best-selling_light_novels?utm_source=chatgpt.com&quot;&gt;[enlace]&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En conclusión, la obra de un autor influenciado por Dungeons &amp;amp; Dragons evolucionó desde una web novel aficionada hasta convertirse en una franquicia revisada y publicada por importantes empresas de la industria japonesa, como Enterbrain, Kadokawa y Madhouse, lo que permitió una mayor profundización y desarrollo de su trasfondo.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Para ilustrar este punto, os presento el proceso creativo de adaptación de la novela ligera al manga. Este extracto pertenece al tomo 4 de la versión española del manga (publicado por ECC en enero de 2018). Como podréis apreciar, el proceso no se limitaba a &quot;tengo una novela, dibújala&quot;, si no que ya durante el &lt;i&gt;story-boarding&lt;/i&gt; se le iba preguntando a Maruyama sobre detalles futuros del guion.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjep7OQGk1KHehyphenhyphencLvvi6sVkZv7QTvxlAno-fBJOCxTcdokuVGkY-Uf0eiuX3nVkzA7tY-D6JN0Wg_LI4DMG5tmp4VskPfOlMBqirVtA7znziKZHRyxsv2Dbw1rgZaxZUUfHuIqylfx4ieBmCnJjgZ0OfWnSiskBR1YbVkc0bys4Q0-RN3vQkBZ/s3434/IMG_8458.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3434&quot; data-original-width=&quot;2757&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjep7OQGk1KHehyphenhyphencLvvi6sVkZv7QTvxlAno-fBJOCxTcdokuVGkY-Uf0eiuX3nVkzA7tY-D6JN0Wg_LI4DMG5tmp4VskPfOlMBqirVtA7znziKZHRyxsv2Dbw1rgZaxZUUfHuIqylfx4ieBmCnJjgZ0OfWnSiskBR1YbVkc0bys4Q0-RN3vQkBZ/w321-h400/IMG_8458.jpeg&quot; width=&quot;321&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOSz8A9rfpZ4lOogoTb4ulmctS9BhuvvxG30O0vqdFvpWj8ZuHhTnMndmSgy6pu69WnyB1sQn10FZiAaD3V2vcQbNMZhaNvuDYbc4BX19g4djbJTp1C92JwPGOFnRvWs6_3K_gsybGgxpkjViB7WCpAa38gELBzpwzUjGV0BS4USREXan31DQ5/s3846/IMG_8459.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3846&quot; data-original-width=&quot;2546&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOSz8A9rfpZ4lOogoTb4ulmctS9BhuvvxG30O0vqdFvpWj8ZuHhTnMndmSgy6pu69WnyB1sQn10FZiAaD3V2vcQbNMZhaNvuDYbc4BX19g4djbJTp1C92JwPGOFnRvWs6_3K_gsybGgxpkjViB7WCpAa38gELBzpwzUjGV0BS4USREXan31DQ5/w265-h400/IMG_8459.jpeg&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZOhtK3mQkfCeGZh8Eh5j5G-kQJpF3jifK7U3yzt3-1bvwyeJKpNLO3JWwLwRvJcnXbP-7m5lslu0nrheGe7MCag4ypu_Vt-yoh_0MMyWtMB-fEARJO9BijLM-LleYneCVmYRvMeJA6ag-9QQKE8CA6zYbhFxTGJ2arnaaeKStiZ4EPEbDPeft/s3749/IMG_8460.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3749&quot; data-original-width=&quot;2667&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZOhtK3mQkfCeGZh8Eh5j5G-kQJpF3jifK7U3yzt3-1bvwyeJKpNLO3JWwLwRvJcnXbP-7m5lslu0nrheGe7MCag4ypu_Vt-yoh_0MMyWtMB-fEARJO9BijLM-LleYneCVmYRvMeJA6ag-9QQKE8CA6zYbhFxTGJ2arnaaeKStiZ4EPEbDPeft/w285-h400/IMG_8460.jpeg&quot; width=&quot;285&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-TM9SwpsuY0FfJnxE54tnv5d3xmpdp6FfWms3NJgBxMnWWI9ProscXU0g1WLZOBxPx6BchUTbaPBNknN93rJaegIjOkJuGkUbOOQ4zSb3ND-P1bJRjTKRsqANm1fLIKJMZ8qqo1lDmaIljPfTsvFzWtlIFHHvctWrqNwqWdXX-9jzJOSj8bXB/s4029/IMG_8461.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4029&quot; data-original-width=&quot;2886&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-TM9SwpsuY0FfJnxE54tnv5d3xmpdp6FfWms3NJgBxMnWWI9ProscXU0g1WLZOBxPx6BchUTbaPBNknN93rJaegIjOkJuGkUbOOQ4zSb3ND-P1bJRjTKRsqANm1fLIKJMZ8qqo1lDmaIljPfTsvFzWtlIFHHvctWrqNwqWdXX-9jzJOSj8bXB/w286-h400/IMG_8461.jpeg&quot; width=&quot;286&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;El guionista, Satoshi Ôshio, elabora la trama, la cual es posteriormente revisada por el autor de la novela, Kugane Maruyama. Tras seleccionar escenas de la novela original, se redacta el guion del manga. El autor de la novela lo revisa y corrige aquellos puntos que requieran matización.&lt;/li&gt;&lt;li&gt;El editor encargado y el dibujante, Hugin Miyama, se reúnen con el guion en mano: Una vez que se obtiene el guion con las correcciones del autor de la novela, se celebra una reunión. En ocasiones, el editor realiza un bosquejo para transmitir la imagen que tiene de la obra.&lt;/li&gt;&lt;li&gt;Hugin Miyama dibuja el boceto preliminar: El &lt;i&gt;mangaka&lt;/i&gt; dibuja el boceto preliminar basándose en la imagen acordada con el editor en la reunión. El editor le indica qué aspectos debe corregir y, simultáneamente, selecciona la tipografía de los diálogos y las narraciones, que encarga al responsable de la rotulación.&lt;/li&gt;&lt;li&gt;Se pasa el boceto a limpio y se realiza el dibujo base: Una vez corregido el boceto, se realiza el dibujo base. Cabe destacar que la cuarta viñeta de la página derecha en esta imagen difiere ligeramente de la versión final. Esto se debe a que se realizan experimentos para lograr un resultado más eficaz e impresionante.&lt;/li&gt;&lt;li&gt;Se da el acabado final a la obra: El acabado final se consigue mediante el entintado del dibujo, la aplicación de tramas y el relleno de espacios. Las letras que se encargaron en el paso 3 se incorporan a la obra terminada para obtener el producto final que disfrutará el lector.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_LFapiWLjrsyIzWEIkpGk5GRSr35naqh33MXE1Uv3aokSvT-BVhaJrv0IbO3-OfB54R-4eaflgCcO0bPxXi_rJ7vHcMPsaD_rhuYoAuMmXZd-4xuVPjOLhg9EvKz2TUFUQYeeRtwLCur2dDhG5h7cf1Ol_QUNKdfZ955gSPsNkL_7FTQADrRL/s1927/IMG_8436.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1927&quot; data-original-width=&quot;1649&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_LFapiWLjrsyIzWEIkpGk5GRSr35naqh33MXE1Uv3aokSvT-BVhaJrv0IbO3-OfB54R-4eaflgCcO0bPxXi_rJ7vHcMPsaD_rhuYoAuMmXZd-4xuVPjOLhg9EvKz2TUFUQYeeRtwLCur2dDhG5h7cf1Ol_QUNKdfZ955gSPsNkL_7FTQADrRL/w343-h400/IMG_8436.jpeg&quot; width=&quot;343&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Maruyama: -&amp;nbsp;“Bastan tres palabras para escribir &quot;cien mil soldados&quot;,&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;pero en el anime y en el manga hay que mostrarlo con dibujos.”&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Maruyama: -&amp;nbsp;“No recuerdo haber creado un personaje femenino tan mono.&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Me sorprendió lo guapa que es la Albedo del manga.”&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW9E5Z1PxMUfg1BARU3dyGdxFmt_UGoev225IAOkt6cv6rNTQeb50WlZ6veHWIxUet-mMmRfIrH-dDCQCfPUqIb0BRVF9TDpSWTXZJ5hEMd-Ep46Vh-jizKDn69X_ciI1Sx36aKyeHe8ZWb6UFac0ttg6EvgJdnyM51-ZTpnr4HYlrifKpQLSB/s1744/Estiletes.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;1744&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW9E5Z1PxMUfg1BARU3dyGdxFmt_UGoev225IAOkt6cv6rNTQeb50WlZ6veHWIxUet-mMmRfIrH-dDCQCfPUqIb0BRVF9TDpSWTXZJ5hEMd-Ep46Vh-jizKDn69X_ciI1Sx36aKyeHe8ZWb6UFac0ttg6EvgJdnyM51-ZTpnr4HYlrifKpQLSB/w640-h234/Estiletes.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;Maruyama, durante el desarrollo del manga: - &quot;Es complicado que (los estiletes de Clementine) puedan atravesar la armadura (de Momón), así que puede que lo mejor sea que vaya a por los ojos que quedan descubiertos con el casco.&quot; - Dicha decisión acabó sirviendo a su vez para el anime.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGjlJA7-q_tr5lFXHjusb3v8q7uuvCJ29Jvfo7fYusV5d_yOXGjLu8RVT7cnJAVYeZIPuE-Zho5de0UGGR-R-T3Ikg5VSnk9rdU0M4frvXNFqrRG4_lPVJVLrdm3OR2F8p1aO7jd6hHKET4DdFRUiMRwzPFm0sLYNbAvOd_IOXemNRJ4wMb4k/s3800/IMG_8449.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3800&quot; data-original-width=&quot;2351&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGjlJA7-q_tr5lFXHjusb3v8q7uuvCJ29Jvfo7fYusV5d_yOXGjLu8RVT7cnJAVYeZIPuE-Zho5de0UGGR-R-T3Ikg5VSnk9rdU0M4frvXNFqrRG4_lPVJVLrdm3OR2F8p1aO7jd6hHKET4DdFRUiMRwzPFm0sLYNbAvOd_IOXemNRJ4wMb4k/w198-h320/IMG_8449.jpeg&quot; width=&quot;198&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin4ZU7YvD79IgOmT0HNcJk98g2tpwio6mF_fqicZRMZU2EKzGOm8O_Ehh9fdwZUsnU_ap3JH7vdKoIIb8S7kImPrc_Q3dRaeFCvpANxkAZ7ysg8E6kECzYRZVZJINiXfehZh3MQmwHdeSD2vLoqxMhqNtcgoIvBXKNwt0w5ypg7JT2AXiNvpNw/s1701/Ainz%20Clementine.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;964&quot; data-original-width=&quot;1701&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEin4ZU7YvD79IgOmT0HNcJk98g2tpwio6mF_fqicZRMZU2EKzGOm8O_Ehh9fdwZUsnU_ap3JH7vdKoIIb8S7kImPrc_Q3dRaeFCvpANxkAZ7ysg8E6kECzYRZVZJINiXfehZh3MQmwHdeSD2vLoqxMhqNtcgoIvBXKNwt0w5ypg7JT2AXiNvpNw/w400-h226/Ainz%20Clementine.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;El anime y el manga tienen &lt;i&gt;story-boards &lt;/i&gt;distintos,&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;pero al estar Maruyama involucrado en ambos, el desarrollo de uno sirve para el otro.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Cabe reseñar que el manga empezó a publicarse bastante antes que el anime. No obstante, el éxito de éste segundo ha propiciado que la trama avance más rápido en el anime, haciendo que el último tomo publicado del manga hasta la fecha, el 19, acabe con la conquista de E-Rantel, mientras que el anime ha continuado con la OVA de El Reino Sagrado.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVWYyVi90i5sUqvsUj_fOv-QZqP-pam-8aH2HmkziN2P0e9onmnWBmoNI-Oa9qZTk9meBldW7V2WKt2ExNylK-q87yTaagBkqZNDajgqexxn2v0-d0PXkQQg8MA1-cwE2-D8CSQYdr5GYsJaGqXt2BS9Rieyv33AJgSUaWfQwqw11Eoelm3hdZ/s3294/IMG_8051.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3294&quot; data-original-width=&quot;2575&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVWYyVi90i5sUqvsUj_fOv-QZqP-pam-8aH2HmkziN2P0e9onmnWBmoNI-Oa9qZTk9meBldW7V2WKt2ExNylK-q87yTaagBkqZNDajgqexxn2v0-d0PXkQQg8MA1-cwE2-D8CSQYdr5GYsJaGqXt2BS9Rieyv33AJgSUaWfQwqw11Eoelm3hdZ/w500-h640/IMG_8051.jpeg&quot; width=&quot;500&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Foto realizada de la portada de la edición sencilla de la OVA de Overlord (Selecta Visión, 2025).&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Aún no hay fecha confirmada para la temporada 5 del anime, pero las aventuras de Ainz Ooal Gown continúan. Gracias a las novelas ligeras sabemos que aún quedan por descubrir varios arcos épicos y momentos clave, como los intensos combates contra las Escrituras Negras de la Teocracia de Slane, las delicadas negociaciones con el Reino Élfico, y el desarrollo de alianzas y conflictos que pondrán a prueba la astucia y poder de Nazarick. Además, nuevas amenazas emergen en el Nuevo Mundo que desafiarán la supremacía de Ainz y sus subordinados, ampliando aún más la complejidad y profundidad de esta saga.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Sin embargo, el objetivo de esta entrada no es anticipar el futuro de la obra, sino analizar lo que ya ha sucedido y que, en circunstancias habituales, no hemos logrado conectar.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Ninya (de las Espadas de la Oscuridad) se llama realmente Celicia y es la hermana menor de Tuare (la sirvienta humana rescatada por Sebas).&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ninya era una hechicera con el talento de aprender hechizos rápidamente. Formaba parte del grupo de Espadas de la Oscuridad (nombre creado como homenaje al Caballero Oscuro de los trece héroes, el cual portaba 4 espadas), un grupo de aventureros de E-Rantel (capital del reino de Re-Estize) que colaboraba con Momón y Nabe en el arco argumental “El Guerrero Oscuro” y que Ainz quería utilizar para impulsar la fama de Momón. Sin embargo, el grupo acaba siendo asesinado por Clementine. Cabe destacar que ninguno de los miembros del grupo conocía la verdadera identidad de Ninya y fue tras su muerte cuando se descubrió que se trataba de una mujer. Ocultó su género porque necesitaba dinero para buscar y rescatar a su hermana raptada y una de las normas de Espadas de la Oscuridad era que todos sus miembros debían ser varones.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJPpHa0IpHy6ic7fCRQSVTlw8NgLEKXGjAqkc7ezlV5AZp4ivSX5rhX_IRijrI4BjhZW40XGl8dbkV7a6iauBxTXfG15gxszXa4ERiltCDucxzXwTFnfBid9ZsUbwDj182k488ph5GCtSo9lpOgOeQI8uLk3xRw46UAQouRnTBmGKa92LwSL-M/s2060/IMG_8422.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2040&quot; data-original-width=&quot;2060&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJPpHa0IpHy6ic7fCRQSVTlw8NgLEKXGjAqkc7ezlV5AZp4ivSX5rhX_IRijrI4BjhZW40XGl8dbkV7a6iauBxTXfG15gxszXa4ERiltCDucxzXwTFnfBid9ZsUbwDj182k488ph5GCtSo9lpOgOeQI8uLk3xRw46UAQouRnTBmGKa92LwSL-M/w400-h396/IMG_8422.jpeg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_rM-NoKZNUqI55wW0geE2DM9u6biNpfN1eRmWlHdGo-b1JkReFj9z6dyXc_d7UORtsYytUv2KIhY8NDbFaahNflDIbgbmbVnZIk9zLujNkgRlsRlPWqwqdYGIqCz3CUjk2dhS04fwUNfJc0TQdHEmf6BXhdj8MLx4MC-hOd41ZSHDU-IvBv91/s2646/IMG_8423.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2646&quot; data-original-width=&quot;2425&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_rM-NoKZNUqI55wW0geE2DM9u6biNpfN1eRmWlHdGo-b1JkReFj9z6dyXc_d7UORtsYytUv2KIhY8NDbFaahNflDIbgbmbVnZIk9zLujNkgRlsRlPWqwqdYGIqCz3CUjk2dhS04fwUNfJc0TQdHEmf6BXhdj8MLx4MC-hOd41ZSHDU-IvBv91/w366-h400/IMG_8423.jpeg&quot; width=&quot;366&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;La razón del nombre de &quot;Espadas de la oscuridad&quot; y el objetivo principal del grupo.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93WycJuNhVhahDtJDriOCT-MRs976RH58riOnH-j37eSzojlX49U-TYvlMMgDk-ucZ_AiVg-oEpoZ6pB4qO_e_LWTzdqV-piNYK6s4ZIAZZU4QmK5ZMOdg4g-JgM4YgnutTKIS3sDS0m9CM2IwjRtKJzZ8_PmPthUH5ar4tMI4ZK2V_mc9OMw/s2836/IMG_8427.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1953&quot; data-original-width=&quot;2836&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93WycJuNhVhahDtJDriOCT-MRs976RH58riOnH-j37eSzojlX49U-TYvlMMgDk-ucZ_AiVg-oEpoZ6pB4qO_e_LWTzdqV-piNYK6s4ZIAZZU4QmK5ZMOdg4g-JgM4YgnutTKIS3sDS0m9CM2IwjRtKJzZ8_PmPthUH5ar4tMI4ZK2V_mc9OMw/w640-h440/IMG_8427.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;En el manga, a diferencia del anime, no se descubre el género de Ninya cuando ella muere.&lt;br /&gt;Sin embargo, en los glosarios se utiliza el femenino al referirse a ella.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Un dato desconocido es que, en la novela web original, Ninya era hombre y que nunca fue asesinado por Clementine. Pero esto cambió con las novelas ligeras, que posteriormente sirvieron de base para el anime y el manga. Otro dato desconocido que se revela en el juego “Mass for the Dead” es que Ninya es su nombre falso, siendo su nombre real Celicia Veyron (capítulo 1, episodio 3).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh7ktnJe7fj8aHGWT0FdTQtxxRgxSMfcwC0ZkmE_7_ZUluaW0bFRr7FM8RbFq4HFJzZC2Lfhaf6HeYRToKLkxaAxZOecfvu9vib8mzIqTTaDvzp7F24us-aHreeEiKjlD-qalFaW3aC6N11RaYqrBq27hrOFqAixGnzVy8nF05gk0zgpG6hAHP/s2048/EkM0cufU8AARb_B.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1536&quot; data-original-width=&quot;2048&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh7ktnJe7fj8aHGWT0FdTQtxxRgxSMfcwC0ZkmE_7_ZUluaW0bFRr7FM8RbFq4HFJzZC2Lfhaf6HeYRToKLkxaAxZOecfvu9vib8mzIqTTaDvzp7F24us-aHreeEiKjlD-qalFaW3aC6N11RaYqrBq27hrOFqAixGnzVy8nF05gk0zgpG6hAHP/w640-h480/EkM0cufU8AARb_B.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwhRHgOmmrmw8SVD7mmv-Tm7KN8vU4hL-_XFzPfWgehJUiTpPCQSsDHsbOG4Q9zKXi3wFGMMktegWXPC33y9NrTFAIxkTNGJRuvBNtkhL21wL6EJHETU_dx4JoGk6wv2NpUJpTJucK9rOEsNJf3TjdURV2BYpZlkSdHI0phyDLJMTU0Kxn6rVG/s2048/EkM0dxmUwAcY7Sf.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1536&quot; data-original-width=&quot;2048&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwhRHgOmmrmw8SVD7mmv-Tm7KN8vU4hL-_XFzPfWgehJUiTpPCQSsDHsbOG4Q9zKXi3wFGMMktegWXPC33y9NrTFAIxkTNGJRuvBNtkhL21wL6EJHETU_dx4JoGk6wv2NpUJpTJucK9rOEsNJf3TjdURV2BYpZlkSdHI0phyDLJMTU0Kxn6rVG/w640-h480/EkM0dxmUwAcY7Sf.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Tuare: &quot;Voy a intentar encontrar a mi hermana. Se rumorea que mi ciudad natal fue atacada (...).&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Celicia. Se llama Celicia Veyron. Su apodo es Celi&quot;.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Gracias al tuitero リクシア (&lt;a href=&quot;https://x.com/tillln/status/1315953334637920256/photo/3&quot;&gt;https://x.com/tillln/status/1315953334637920256/photo/3&lt;/a&gt;)&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En el arco de “Los Hombres en el Reino”, Sebas Tian, el mayordomo principal de la Gran Tumba de Nazarick, salva la vida de una joven moribunda que había sido abandonada por el burdel donde trabajaba. Acto seguido la lleva a su mansión, donde Solution Epsilon la cura, sana sus heridas y, como compensación, Sebas propone que Tuaren se convierta en la criada de la casa.&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/FUZtb5kj648&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Sin embargo, Solution sospecha de Sebas y alerta al ser supremo, Ainz Ooal Gown, de una posible traición. Ainz acude a la mansión para investigar, descubre a la sirvienta, pone a prueba la lealtad de Sebas y decide borrarle la memoria. No obstante, finalmente desiste al insistir Tuaren en querer recordar el nombre de su salvador. Durante este interrogatorio, se revela que su nombre completo es Tuareninya Veyron y Ainz se percata entonces que se trata de la hermana de Ninya.&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/xcucCmlOTrw&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/4lKX39W-P4E&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/M2mNqEBRCMY&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Más tarde y siempre en el mismo arco, Tuare es secuestrada por los Six Arms y acto seguido es rescatada por Sebas, Lockmyer, Climb y Brain Unglaus. Posteriormente es trasladarla a la Gran Tumba de Nazarick, donde es acogida como sirvienta. Hasta la fecha desconoce que su hermana menor, Cecilia, ha muerto. No obstante, siempre que piensa en ella le vienen a la mente malos recuerdos.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Sebas Tian es un dragón y posee el aspecto real del ser supremo Touch Me.&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Una de las características más destacables del mayordomo principal de Nazarick es su increíble fuerza. De hecho, en el arco argumental “Los Hombres en el Reino”, se evidencia rápidamente que posee una fuerza sobrehumana. Esto se debe a que, al igual que los demás NPC de Nazarick, no es humano, sino un dragontino.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRepQ9wPy9ioB53CI1jG-VIevpp_6F7aVzXSTn2lOeSxg9ivDrq5dPxpYhtVsOX5vkluJv1NW-keR54iLfb20EYw-mjdPyrvWMB2QMFH0_EIdmMATUSq9GetBuvSvR9ZeXnBu0ak_3_PywFgWYW2JoTtAf4adGljPcwkuwE3lwS5ocXMTn_fKs/s3024/IMG_8451.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2578&quot; data-original-width=&quot;3024&quot; height=&quot;546&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRepQ9wPy9ioB53CI1jG-VIevpp_6F7aVzXSTn2lOeSxg9ivDrq5dPxpYhtVsOX5vkluJv1NW-keR54iLfb20EYw-mjdPyrvWMB2QMFH0_EIdmMATUSq9GetBuvSvR9ZeXnBu0ak_3_PywFgWYW2JoTtAf4adGljPcwkuwE3lwS5ocXMTn_fKs/w640-h546/IMG_8451.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;Shalltear recordando a Sebas que un dragón no puede medirse a un vampiro genuino.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Parte de esta confusión acerca de si Sebas es humano o no proviene de que, a diferencia de la mayoría de los guardianes de piso o de las Pléyades, no desprecia a los humanos ni los considera inferiores. Más bien, cree en su naturaleza bondadosa y considera que es deber de los fuertes, como él, proteger a los débiles. Otro dato que se sabe gracias a las novelas ligeras (volumen 7, capítulo 2) es que su físico fue creado a imagen y semejanza de su creador, el ser supremo Touch Me.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Touch Me, por otro lado, fue el predecesor de Momonga (Ainz) como líder de la Gran Tumba, y era reconocido por su honestidad e integridad, valores que influyeron notablemente en la personalidad de Sebas. De hecho, la decisión de Momonga de proteger Villa Carne surge de la reflexión sobre qué acción tomaría Touch Me en su lugar, al observar a Sebas durante el ataque.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHCnp6NGBrqXoYnYVujxYJfOAFbZr6Tz4ZHO6kogjsxebMxvk1PM_hlywRbE1MfH6LiHf87ztKdrixDj2dkcLh_aP9guHLcfWZg458ZSIhZeh5ZZ3mcfWKcpqTxwqMLyclyeC_e7_sJ1SMiSu3zxG8Kp_cl7G9ksSxDrA0rQpLocEvWCRFuxu6/s3438/IMG_8410.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3438&quot; data-original-width=&quot;2759&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHCnp6NGBrqXoYnYVujxYJfOAFbZr6Tz4ZHO6kogjsxebMxvk1PM_hlywRbE1MfH6LiHf87ztKdrixDj2dkcLh_aP9guHLcfWZg458ZSIhZeh5ZZ3mcfWKcpqTxwqMLyclyeC_e7_sJ1SMiSu3zxG8Kp_cl7G9ksSxDrA0rQpLocEvWCRFuxu6/w514-h640/IMG_8410.jpeg&quot; width=&quot;514&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Hamesuke (el Rey Sabio del Bosque) es hembra.&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Un dato que parece haberse perdido con la traducción de Overlord, tanto en la localización de Selecta Visión (ánime) como la de ECC (manga), es que Hamesuke, el Rey Sabio del Bosque, es hembra. Y por cierto, este personaje no existe en la novela web original.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Respecto a Hamesuke, se trata de un hamster ruso gigante de nivel 30, con atributos demasiado elevados si lo comparamos a los humanos, e infunde tanto terror que los monstruos no se acercaran a su territorio, lo que también produce que los aventureros pierdan interés en sus tierras (al no haber monstruos, no habían misiones de cacería ni posibilidad de farmear/levear). No obstante, esa paz se rompe cuando Ainz la recluta, dejando un vacío de poder que es reclamado por distintas facciones de monstruos que anelan sus tierras.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Por otro lado Ainz la lleva a la gran tumba para experimentar y decide entrenar a caballeros no-muertos con ella con el fin de descubrir si los monstruos del &quot;nuevo mundo&quot; pueden aprender habilidades (cosa que no pasa en&amp;nbsp;YGGDRASIL). Recordemos que es un mounstruo de nivel 30 con habilidades de clase experto, por lo que le interesa que sus tropas puedan aprender de ella, a la vez que consigue que Hamesuke se haga más fuerte.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Arche Eeb Rile Furt fue alumna de Fluder Paradyne (el gran mago de la corte imperial del Imperio Baharuth) y sus hermanas acabaron siendo vendidas como esclavas.&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Arche es recordada por muchos como la pobre joven hechicera que fallece injustamente a manos de Shalltear en la tercera temporada del anime. Pertenecía al grupo de aventureros Foresight, localizados en el Imperio Baharuth, y aunque tenía sangre noble, la revocación de los títulos nobiliarios por parte del emperador la obligó a dejar sus estudios y a trabajar para mantener a su familia. Sin embargo, a pesar de sus esfuerzos, sus padres siguieron insistiendo en mantener su anterior nivel de vida. Aún así, su principal objetivo era acumular la máxima cantidad de dinero posible para abandonar a sus padres y escapar con sus hermanas.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Un aspecto que no se aborda en el anime ni en el manga es que, antes de la revocación de los títulos nobiliarios, Arche era aprendiz de Fluder Paradyne, el mago más poderoso del Imperio Baharuth y además se especulaba con que ella podría llegar a alcanzar su nivel de poder. Vamos, que tenemos toda un prodigio convertida en un mero personaje secundario.&lt;br /&gt;&lt;br /&gt;Como es sabido, en el arco argumental “Los Invasores de la Gran Tumba”, cuatro grupos de aventureros de clase mithril se adentran en la Gran Tumba de Nazarick con el objetivo de explorarla y expoliarla. Cabe destacar que dependiendo de la traducción, se hablará de grupos de aventureros o grupos de trabajadores. La diferenciara radica en que los aventureros rinden a un gremio y aceptan trabajos de éste, mientras que los trabajadores son &quot;freelancers&quot; y aceptan encargos bajo demanda. En este sentido, los aventureros que se adentran en la Gran Tumba no pertenecen a ningún gremio y trabajan como autónomos.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Desafortunadamente el grupo de Arche, los Foresight, se encuentra con el ser supremo, Ainz Ooal Gown. Como consecuencia, Arche muere a manos de Shalltear mientras intenta escapar de la Gran Tumba; Sus compañeros, Hekkeran e Imina, son enviados a la residencia de Gashokukochuuou, donde presumiblemente morirán para ser devorados por sus larvas; Y el único superviviente resulta ser el clérigo Roberdyck, a quien se le reescriben los recuerdos. Realmente Hekkeran e Imina no mueren, si no que son mantenidos vivos con magia de curación para farmear larvas. Sobre&amp;nbsp;Roberdyck, se le mantiene vivo para experimentar sobre el origen de su magia (si se trata de fe o de habilidades adquiridas).&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/ZA-RhC63QDQ&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/Grt74QTKB4Y&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Hablando de Arche, un aspecto que no se explica con suficiente claridad en el anime es la recuperación de la voz de Entoma Vasilissa Zeta, la pléyade con aspecto insecto, la cual pierde su voz durante su combate contra Evileye en el arco&amp;nbsp; “Los Hombres en el Reino”. Sin embargo, más tarde la recupera e incluso Albedo le llega a preguntar al señor Ainz si su nueva voz le resulta desagradable. ¿Qué nos hemos perdido? Bueno, tras la muerte de Arche, su cuerpo queda desmembrado: Entoma se queda con su voz, Demiurgo se queda con su piel y el Demonio Sombra de Seda se apropia de su cabeza. Este demonio guarda similitudes con el Demonio Circlet al que se enfrenta Baraja en el arco “El Reino Sagrado”, pero con la capacidad de poseer cuatro cabezas en lugar de dos. Realmente en el anime sí que se explica que se ha desmembrado el cadáver de una chica para aprovechar todas sus partes, pero no se menciona que se esté hablando de Arche, aunque en el doblaje japonés esto es obvio, debido a que utilizan su actor de voz para la escena.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/CGrI64xoYq4&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En cuanto al destino de la familia de Arche tras su fallecimiento, el 
autor revela en su web que sus hermanas acaban siendo vendidas como esclavas y 
posteriormente fallecen debido a su explotación.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Cabe mencionar que en la novela web original (que a día de hoy no es canon), Arche no muere. Es más, se le concede la oportunidad de vivir, junto a sus hermanas, en el sexto piso de Nazarick. De hecho, según diversos seguidores de Overlord, el Ainz de la novela ligera (que sirve como base para el anime y el manga) habría estado dispuesto a perdonarle la vida de Arche, pero no lo hizo debido a la grave provocación de Hekkeran (quien intentó hacer creer a Ainz que habían sido invitados por otro ser supremo de la Gran Tumba). Vamos, que Arche acabó muerta por culpa de Hekkeran.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Clementine sigue viva y Quaiesse (5º Asiento de la Escritura Negra) es su hermano.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Como se ha mencionado anteriormente, Clementine elimina a todos los miembros del grupo Espadas de la Oscuridad en el arco argumental “El Guerrero Oscuro”. En este arco se revela que esta dirigente del grupo secreto Zurrernorn fue miembro de la Escritura Negra, la unidad de élite más poderosa de la Teocracia Slane (una teocracia que profesa la supremacía humana sobre otras razas y que se encuentra en conflicto con los Elfos).&lt;br /&gt;&lt;br /&gt;En el episodio 10 de la primera temporada se presenta a Quaiesse en una escena que, debido a su gran parecido físico con Clementine, llevó a algunos a pensar brevemente que estábamos ante ella. De hecho, son físicamente tan similares que, según la novela web original, Clementine llegó a actuar como doble de su hermano.&lt;br /&gt;&lt;br /&gt;Otro dato poco conocido es que Clementine sigue viva. Entiendo que esta afirmación puede causar 
debate, debido a qué implica que el juego &quot;Escape from Nazarick&quot; sea canon. Kugane Maruyama intervino en su historia y los sucesos 
concuerdan con la línea temporal del anime, por lo que para mí es canon.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Pero volvamos a las novelas ligeras/manga: Cuando Momón entrega los cuerpos de Clementine y Khajiit a las autoridades, estos desaparecen poco después del inicio del arco argumental “La Valquiria Sangrienta” (famoso por su memorable combate final entre Shalltear y Ainz). Esto generó temor en Ainz, ya que, en ese momento, ella era una de las dos únicas personas que sabían que Momón no es humano (la otra es el curandero Nfirea). Sin embargo, gracias al videojuego “Overlord: Escape From Nazarick” para Nintendo Switch y Steam, se revela que Clementine fue trasladada a Nazarick para evaluar las capacidades defensivas de La Gran Tumba (recordemos que Ainz tiene la capacidad de resucitar personajes). Una vez alcanzado el verdadero final del juego, se descubre que se encontraba en una falsa Nazarick creada por Mare y se le permite escapar (bajo la protección desde las sombras de Aura) para que esparza información falsa sobre los niveles de seguridad de La Gran Tumba.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Quisiera comentar que hay varios detalles en el anime que nos dan a entender que los eventos del juego son canon. Por un lado, al vencer a Clementine y Khajiit Dale Badantel, Momón y Nabe se ven obligados a entregar sus cuerpos a las autoridades para poder recoger la recompensa, pero también se menciona que estos desaparecen al poco tiempo. Además, al finalizar el combate entre Shalltear y Ainz en el episodio 13 de la primera temporada, éste acaba preguntando a Albedo qué tal van los preparativos de &quot;la falsa Nazarick&quot;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZkrCcwUCGmH0AUcJ5QLRRyI8VQ1QGgwHDbTDuQEmVLsvz7QAGuGqYWQl8igCRnuW24bCyWZ8iTryuePoSOIoeVfAvb87pxHu_6Ux-5Yd97HD4XJyqA87ahRiCuAmSaaBbsChUfoY9eRnsONMbISG04APBHkKtWbMcWhOvj3iw7cP6V9f7jylV/s3261/IMG_6287.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3261&quot; data-original-width=&quot;2478&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZkrCcwUCGmH0AUcJ5QLRRyI8VQ1QGgwHDbTDuQEmVLsvz7QAGuGqYWQl8igCRnuW24bCyWZ8iTryuePoSOIoeVfAvb87pxHu_6Ux-5Yd97HD4XJyqA87ahRiCuAmSaaBbsChUfoY9eRnsONMbISG04APBHkKtWbMcWhOvj3iw7cP6V9f7jylV/w486-h640/IMG_6287.jpeg&quot; width=&quot;486&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Foto extraída de mi colección de juegos (Selecta Play, 2024).&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En relación con la decisión de liberar a Clementine a pesar del riesgo de que pueda revelar la verdadera naturaleza de Momón, es importante considerar que varios personajes de Nazarick, como Neuronist Painkill, Demiurgos o el propio Ainz, poseen la capacidad de modificar recuerdos. A esto se suma que Clementine despierta en el juego con amnesia, lo que sugiere que se ha experimentado previamente con ella. De hecho, en el juego, al recuperar todos sus recuerdos asocia a Ainz como un no muerto invocado por por Momón y no por ser la misma persona. Además, otra razón por la que presumiblemente Ainz la mantiene con vida es porque cada vez que se enfrenta a ella aprende cosas del “Nuevo mundo”.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSteOpA7ht9Fn_cNaAtjBp7_loNB9ophl8hONX_4E4CC2Ni8WKt27QYX8CZXvz0chox3HspxKUZQdvx7l1JRqeON53n3nwzsGTGJP-pYS6pVXLb9P2uN8gSrRCIYnmk6ksLNz1x3CAmZf3sgDeH7X2vzB4koUcyRTtrhhUw02AhaV118yPCDy8/s1280/IMG_8466.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSteOpA7ht9Fn_cNaAtjBp7_loNB9ophl8hONX_4E4CC2Ni8WKt27QYX8CZXvz0chox3HspxKUZQdvx7l1JRqeON53n3nwzsGTGJP-pYS6pVXLb9P2uN8gSrRCIYnmk6ksLNz1x3CAmZf3sgDeH7X2vzB4koUcyRTtrhhUw02AhaV118yPCDy8/w640-h360/IMG_8466.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDTLffPYAmvejmKmFm6ujqZRmNnsRTVOYZm1uJN0MyZw8JoxMMB1YM0EqzE3yGcwmbgXzsDJlVDY7ijb1RFj_FZx6nC4mOJobgNW0Yp812W_BTKf8wcMsyBzsbB4k0lcnRSR3gEH0LJ30Q5bpMuT-oKzpPkPkgAAhJ-J87uUGSKWIxLX7NvGSQ/s1280/IMG_8465.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDTLffPYAmvejmKmFm6ujqZRmNnsRTVOYZm1uJN0MyZw8JoxMMB1YM0EqzE3yGcwmbgXzsDJlVDY7ijb1RFj_FZx6nC4mOJobgNW0Yp812W_BTKf8wcMsyBzsbB4k0lcnRSR3gEH0LJ30Q5bpMuT-oKzpPkPkgAAhJ-J87uUGSKWIxLX7NvGSQ/w640-h360/IMG_8465.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Por cierto, me he pasado el juego con su final bueno sólo para hacer estas capturas.&lt;br /&gt;Estuve buscando gameplays en Youtube, pero todo el mundo juega a la versión de Steam (con textos en inglés).&lt;br /&gt;Por si no lo sabíais, la versión de Switch es la única con textos en castellano.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Cabe destacar que en el anime y el manga se aprecia un detalle que pasa desapercibido: la armadura de Clementine está decorada con las insignias de todos los héroes que ha matado. De hecho, así es como Ainz consigue localizarla en el arco del “Guerrero Oscuro”, utilizando un hechizo de localización de objeto sobre las chapas de sus compañeros de Espadas de la Oscuridad. Este tipo de detalles se aprecian mejor en el manga, donde las armaduras suelen dibujarse con mayor detalle que en el anime.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC59RUUNjiterMDM6cT42eYu65phJqLgpTC15iHrXY21htZ-As3X6ut8QG6Z6_Foovy0aUkXCW7xm18__opsc6FlhBc8IhZCn1QMsThARFWoenZZnPts6TDgEeCMRWhWwuveIBn3PFBMcZ9rQ-XlgFaCkvf42X22xUmxh_fLrQnEZky0CaMI_7/s1024/IMG_8782.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;711&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC59RUUNjiterMDM6cT42eYu65phJqLgpTC15iHrXY21htZ-As3X6ut8QG6Z6_Foovy0aUkXCW7xm18__opsc6FlhBc8IhZCn1QMsThARFWoenZZnPts6TDgEeCMRWhWwuveIBn3PFBMcZ9rQ-XlgFaCkvf42X22xUmxh_fLrQnEZky0CaMI_7/w278-h400/IMG_8782.jpeg&quot; width=&quot;278&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaaR4bImTxWo7dd-jRgv_y4i5M9LR60S-LnWYBrw1djsPR7a88YeyPv8WieTBecUVzfj2VCeHn_phURda7A6guARCiWTh5WY1y_ZuIEmJQzbbxpR3np9Q9oUmxqyiKf7zW3B2MeSLT4tvDbHW2vPNSNhyphenhyphenZAo25NQN-Ra1KDTNbvMOiesYUo0eD/s3196/IMG_9276.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3196&quot; data-original-width=&quot;2269&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaaR4bImTxWo7dd-jRgv_y4i5M9LR60S-LnWYBrw1djsPR7a88YeyPv8WieTBecUVzfj2VCeHn_phURda7A6guARCiWTh5WY1y_ZuIEmJQzbbxpR3np9Q9oUmxqyiKf7zW3B2MeSLT4tvDbHW2vPNSNhyphenhyphenZAo25NQN-Ra1KDTNbvMOiesYUo0eD/w284-h400/IMG_9276.jpeg&quot; width=&quot;284&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Fotos de mi colección de mangas (ECC 2017-2024).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;También cabe destacar que, en la escena inicial de la serie, se observa al señor Ainz caminando sobre diversos tapices, entre los que se encuentra la Escritura Negra. En este último, se puede apreciar a Quaiesse en la esquina inferior izquierda, junto al señor Ainz.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXG7Awr5G4NlQacxgdoSU23GnLKQ0wX-2xHZI9Z1ctEjH3jgYfkIwWItutRadjDygAW2Ece_Ob0i137Gsr1ZmHwa1ykCplQDO7rih6oC2kgEblebFgo_HX3MV3GH6xA5y8SUhBR8f2q4N2AoP87IQKMRg22EnTHuiwJ6gMwq1u-B-urtaQHnhz/s1920/vlcsnap-2025-08-03-17h08m51s767.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXG7Awr5G4NlQacxgdoSU23GnLKQ0wX-2xHZI9Z1ctEjH3jgYfkIwWItutRadjDygAW2Ece_Ob0i137Gsr1ZmHwa1ykCplQDO7rih6oC2kgEblebFgo_HX3MV3GH6xA5y8SUhBR8f2q4N2AoP87IQKMRg22EnTHuiwJ6gMwq1u-B-urtaQHnhz/w640-h360/vlcsnap-2025-08-03-17h08m51s767.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Captura de pantalla realizada a partir del Blu-Ray original (Selecta Visión, 2023-2025).&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Albedo odia a todos los seres supremos menos a Ainz.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Albedo alberga un profundo resentimiento hacia los demás seres supremos, a quienes acusa de abandonar a Nazarick y a Momonga (Ainz). En su opinión, Ainz fue el único que permaneció fiel a su deber y protegió a los NPCs, lo que, junto a su devoción &quot;forzada&quot; (recordemos que Momonga reescribió su ficha al inicio de la historia), ha ayudado a cimentar su lealtad absoluta hacia él. Tras los acontecimientos de “Los Invasores de la Gran Tumba”, Albedo aprovecha la estratagema de Hekkeran (que intentó engañar a Ainz insinuando que había sido invitado por otro ser supremo) para proponer la creación de una unidad especial encargada de la búsqueda del resto de seres supremos en el “Nuevo Mundo”. Ainz acepta la iniciativa, convencido de que el objetivo es reunificar el gremio de La Gran Tumba.&lt;br /&gt;&lt;br /&gt;Sin embargo, Albedo considera que los otros seres supremos representan una amenaza potencial para Ainz, ya que podrían desviar la lealtad de los NPCs y poner en peligro su autoridad. Este grupo, liderado por ella misma, se mantiene en secreto ante los guardianes de los pisos, ya que no descarta la posibilidad de eliminar al resto de seres supremos. La unidad está compuesta por su hermana Rubedo (considerada la entidad más poderosa de Nazarick), dos NPCs de nivel 100 (ella misma y Pandora’s Actor) y quince no-muertos de nivel 80.&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Eclair, el pingüino que quiere el trono de Nazarick, es de nivel 1.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En el primer episodio de la segunda temporada del anime se presenta a Eclair Ecleir Eicler, un pingüino dedicado a la limpieza del castillo que sueña con ocupar el lugar del ser supremo Ainz. Sin embargo, lo que los aficionados de Overlord desconocen es que se trata de un NPC de nivel 1. En otras palabras, es probable que sea el habitante más débil de toda la Gran Tumba de Nazarick. Esto se debe a que fue creado como una broma por la ser supremo Ankoro Mocchi Mochi.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/W21UjQfuBbc&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Ankoro Mocchi Mochi también es la creadora de Pestonya Shortcake Wanko, la perra humanoide que ocupa el cargo de jefa de servicio de Nazarick bajo las órdenes de Sebas y que actualmente se encarga, junto a Nigredo (la hermana mayor de Albedo), de la dirección del orfanato del Reino Hechicero.&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Nigredo y Pestonya fueron presas para evitar que los guardianes se &quot;humanizaran&quot;.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Durante la aniquilación de Re-Estize, observamos a Nigredo y Pestonya confinadas en una prisión helada dentro de La Gran Tumba de Nazarick. Aiz menciona a Sebas que es comprensible que Nigredo desee hablar con él, dado que fue él quien ordenó su cautiverio. También se menciona que le habría gustado invitar a Albedo a la reunión, pero que no era conveniente debido a que no aceptó bien el castigo.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En cuanto al motivo del castigo de Nigredo y Pestonya, en el arco de “Los invasores de la Gran Tumba”, el señor Ainz ordenó la eliminación de todos los intrusos. Sin embargo, tanto Nigredo como Pestonya intentaron interceder por ellos, argumentando que no debían eliminar humanos innecesariamente, especialmente si eran útiles como muestra o para estudios. Esto se interpretó como insubordinación, ya que cuestionaban las decisiones de Ainz y el sistema jerárquico de Nazarick. Aunque aún no las consideró completamente traidoras, decidió confinarlas en una prisión dentro de Nazarick para evitar que sus valores “humanistas” influyeran negativamente en otros NPCs. Debido a esta decisión, le resulta difícil reconocer en el arco de “El Reino Sagradado” que él permite escapar a humanos a propósito y omite a los guardianes de piso la petición que le hicieron Nigredo y Pestonya.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Evileye es una vampiro, tiene más de 250 años, es princesa de Inveria y fue miembro de los Trece Héroes.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Keno Fasris Inberun, conocida como Evileye, es un personaje secundario recurrente en la trama de “Los Hombres en el Reino” (donde se enamora del aventurero Momón y se enfrenta a Entoma) y en “El Hechicero de la Destrucción” (donde se produce la aniquilación de E-Rantel). Actualmente, pertenece al grupo de aventureros Blue Roses. Sus principales rasgos son su apariencia juvenil (se convirtió en vampiro con apenas 12 años) y que, salvo en presencia de sus compañeras más cercanas, suele portar una máscara que cubre su rostro (para evitar la luz solar). Dicha máscara, conocida como la Máscara de Irubia Hordan, tiene una joya roja incrustada en la frente y una fina grieta alrededor de los ojos. Se describe como uno de los tesoros nacionales de Inveria (reino que existió 200 años antes de la trama de Overlord, situado en el sureste de Re-Estize). Aunque no se conocen habilidades específicas de dicha máscara, antes de romperse demostró ser capaz de resistir un ataque de Yuri Alpha.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Analizando su pasado, nos encontramos ante la princesa del reino de Inveria, quien posee la habilidad de replicar los dones de otros individuos. De hecho, su condición de vampiro se debe a un error colateral de la replicación de una habilidad de Cure Elim Los Malvar (también conocido como &quot;Elder Coffin Dragon Lord&quot;), el dragón más poderoso del “nuevo mundo”. Éste temible dragón lanzó un hechizo sobre su reino con la intención de convertir a sus habitantes en no-muertos. Sin embargo, todo salió mal y Keno terminó absorbiendo las almas de los cinco millones de habitantes de su reino.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Entrando más en detalle, el reino de Keno fue devastado por un hechizo de necromancia de gran escala que transformó a toda la población en zombis. Desesperada por evitar el destino de sus súbditos, Keno replicó el hechizo utilizando su talento innato (“Poder de copiar habilidades”) con la esperanza de evitar su zombicificación. Sin embargo, al no comprenderlo completamente, el efecto se distorsionó:&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;La versión original del hechizo transformaba a los vivos en zombis sin conciencia.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;La versión que Keno replicó alteró su fisiología, convirtiéndola en vampiro y dándole las siguientes características:&lt;/li&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Inmortalidad y regeneración propias de un vampiro.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Necesidad de consumir sangre.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Apariencia física conservada, no putrefacta como la de un zombi.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Poder mágico muy superior al que poseía como humana.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Aunque el talento de Keno le permite copiar técnicas o hechizos, el resultado no siempre es exacto: el &quot;código&quot; mágico copiado puede mutar, y en este caso lo hizo de forma radical. Como maga de alto nivel, su resistencia y afinidad mágica probablemente alteraron el efecto necromántico y, en lugar de perder su conciencia y pudrirse, su cuerpo se adaptó al estado de no-muerto conservando las funciones superiores.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Entrando en detalle, el hechizo utilizado por&amp;nbsp;Cure Elim Los Malvar&amp;nbsp;pertenece a la magia salvaje, un tipo de magia ancestral que aún no ha sido explorada en el manga ni en el anime. A diferencia de la magia arcana o la magia de YGGDRASIL, la magia salvaje no consume puntos mágicos de manera tradicional, sino que utiliza directamente energía vital o “vidas” (sacrificios) para generar efectos poderosos, incluso a gran escala. El temido dragón sacrificó gran parte de su propia energía vital para convertir a toda Inveria en zombis. Al replicar Evileye este hechizo, sin contar con una reserva de vida comparable, terminó absorbiendo involuntariamente la energía y las almas de todos los habitantes de su nación.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Tras este evento, Keno pasó a ser conocida como la Reina Vampiro Landfall (nombre derivado de la caída del reino) y fue &quot;oficialmente&quot; erradicada por el grupo de los Trece Héroes, aunque en realidad se unió a ellos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS4oD5lkssJ-c5WUzvTTitY4_QHbFeEA42J0hsuV9_vDllZBAolKMQUHjY1vac98kHquIxxmw095J3fL-z4BYTfmqrTMj9ZD-x5xp-HvUxT88RfAqDbiHmaR4kf6yc2Gru1MTwAbXyVtdHxCV_R_CJKaHJxbEd9uAX5ihomRF-bdZXh4q254qn/s3745/IMG_8455.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3745&quot; data-original-width=&quot;2463&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS4oD5lkssJ-c5WUzvTTitY4_QHbFeEA42J0hsuV9_vDllZBAolKMQUHjY1vac98kHquIxxmw095J3fL-z4BYTfmqrTMj9ZD-x5xp-HvUxT88RfAqDbiHmaR4kf6yc2Gru1MTwAbXyVtdHxCV_R_CJKaHJxbEd9uAX5ihomRF-bdZXh4q254qn/w420-h640/IMG_8455.jpeg&quot; width=&quot;420&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&quot;El Destruyepaíses&quot;: El lector lo desconoce, pero es una referencia a Evileye.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Primer enfrentamiento entre Shalltear y Brain Unglaus, tomo 4 del manga (ECC, enero de 2018).&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlb30LTVgL7Emx0oXb3NzuFP0YIzJJroH8z4PSuM6HdDdhAwnI7oyxlX-q5RKWr4dzHRZYQg2qcHVZJnldlbxb-bjqL686zUPSFEMszF65FE-MCPSUIcO0Jjtm_5pp_XqLypAayb5BLjapXbLiiOzdxctl8gP8XtDyFL-Jx3DOXnIs0VsTgoE0/s3671/IMG_8456.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2400&quot; data-original-width=&quot;3671&quot; height=&quot;418&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlb30LTVgL7Emx0oXb3NzuFP0YIzJJroH8z4PSuM6HdDdhAwnI7oyxlX-q5RKWr4dzHRZYQg2qcHVZJnldlbxb-bjqL686zUPSFEMszF65FE-MCPSUIcO0Jjtm_5pp_XqLypAayb5BLjapXbLiiOzdxctl8gP8XtDyFL-Jx3DOXnIs0VsTgoE0/w640-h418/IMG_8456.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;En el mundo de YGGDRASIL existen diversas especies de vampiros.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Los vampiros “genuinos”, como Shalltear, poseen una apariencia original monstruosa.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Evileye en principio no es una vampira genuina y mantiene el aspecto de cuando se transformó.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Tomo 4 del manga en su versión española (ECC, enero de 2018).&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Cabe destacar que en el primer episodio de la segunda temporada del anime, se observa a Tsaindorcus Vaision (aka &quot;Platinum Dragon Lord&quot;) conversando con una anciana llamada Rigrit. En ese diálogo donde Tsaindorcus Vaision se intersa por el presente de Rigrit, sale a la palestra que ésta se ha jubilado dejando como sucesora a una joven a la que tuvo que retar en duelo y vencer para que ésta acabara uniéndose a las Blue Roses. Esa joven, que conocen tanto Tsaindorcus Vaision como Rigrit, es ni más ni menos que Evileye y los tres&amp;nbsp;formaron parte del grupo de los Trece Héroes que se enfrentaron a las deidades del mal, un suceso que ocurrió aproximadamente doscientos años antes del inicio de la historia de Overlord.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Otro dato omitido en el anime es que tras el asalto de Jaldabaoth al reino sacro, se lleva a cabo una reunión entre las Blue Roses, Remedios Custodio y Gustav. En dicha reunión, las Blue Roses declinan ayudar al Reino Sacro debido a que no lograron vencer al demonio en un primer intento y sugieren contactar a Momón, la única persona conocida capaz de repeler a Jaldabaoth. Como anécdota, en dicha reunión, Evileye realizó un retrato del rostro de Jaldabaoth que provocó la risa de la escudera Neia Baraja, quien lo comparó con un dibujo infantil. Lamentablemente, no existen ilustraciones de dicho dibujo y la escena no está presente ni en el manga ni en el anime.&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;El combate entre Shalltear y Brain es puro cine.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Hago
 aquí una pequeña pausa sobre Evileye para retomar el combate entre 
Brain Unglaus y Shalltear, porque el lector o el espectador no se da 
cuenta, pero todo lo que sale ahí es puro cine. Pasan muchas cosas en 
apenas 10 minutos pero a primera vista no somos conscientes de todo lo 
que se cuece en dicho evento y por ende vemos todo un cúmulo de eventos pasar sin tener tiempo a asimilarlos. Por un lado tenemos a Brain Unglaus en una
 cueva de bandidos, por otro lado Shalltear está buscando a posibles 
candidatos que sepan usar técnicas y habilidades (las cuales no existían
 en YGGDRASIL), aparece Brita con una poción de Momón y de unos guerreros 
de hierro acaban apareciendo de la nada y le lanzan un ítem mundial para
 controlar mentalmente a Shalltear. Dicho así, no tiene sentido, 
¿verdad?&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Bueno,
 vamos por partes, lo primero es que estos eventos suceden justo después
 del combate entre Momón y Nabe contra Clementine y Khajiit Dale 
Badantel. Y esto es importante mencionarlo, porque Brita se encuentra 
por los alrededores buscando pruebas de que Zurrernorn ha sido 
vencida... Y es que, el grupo de bandidos para el que trabajaba en ese 
momento Brain trabajaba a su vez para Khajiit. Esto no sale 
directamente mencionado en el anime o el manga, pero sí en la novela 
ligera.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Brain acaba huyendo del combate y Shalltear en su persecución se topa con Brita, quien tiene en manos una poción originaria de YGGDRASIL y esto hace que Shalltear le perdone la vida al pensar que ella entra dentro de los planes de Ainz. Entonces Shalltear envía a sus familiares para acabar con el resto de testigos y descubre que a lo lejos varias de sus invocaciones han fallecido. Y al acercarse nos topamos con una serie de aventureros de hierro que acaban controlando mentalmente a Shalltear haciendo uso de un ítem mundial.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora bien, esto no cuadra, puesto que en YGGDRASIL apenas habían 200 ítems mundiales y no es normal que un objeto tan único y valioso esté en manos de unos aventureros de tan bajo rango. De hecho, no son héroes, si no la Escritura Negra, una unidad de élite de la teocracia Slane, que andan buscando en las guaridas de Zurrernorn la corona mágica que robó Clementine. ¿Y por qué se identifican como aventureros de rango hierro? Bueno, por la sencilla razón de que están en una nación enemiga y necesitan pasar desapercibidos. Hicieron básicamente lo mismo que hizo Ainz con Momón, crear un grupo de aventureros para recaudar información. Ahora bien, el motivo original no era recuperar esa corona... Si recordáis los sucesos de Villa Carne, Ainz hace detonar una especie de barrera mágica que servía a la Teocracia para espiar a Nigun (líder de la Escritura de la Luz, que a su vez buscaba matar a Gazef Stronoff haciéndose pasar por atacantes del Imperio Baharuth). La Teocracia interpretó esa gigantesca explosión como una señal de que el temido Dragón Lord de la Catástrofe (Catastrophe Dragon Lord) estaba despertando en la región cercana a E-Rantel y, con pánico ante la amenaza del dragón, el país envió a su unidad de élite (la Escritura Negra) armada con su Objeto Mundial más valioso, &quot;Ruina del Castillo y del País&quot;, con la misión específica de encontrar al dragón y tomar control mental sobre él para someterlo. Por cierto, ese ítem es originario de&amp;nbsp;YGGDRASIL.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El caso&amp;nbsp;es que la portadora del ítem mundial &quot;Ruina del Castillo y del País&quot; consigue controlar mentalmente a Shalltear, pero a su vez es muy malherida por ésta, hasta el punto de que en el primer episodio de la segunda temporada del anime el capitán de la Escritura Negra la da por muerta (en su conversación con&amp;nbsp;Zesshi Zetsumei). Al estar controlada mentalmente sin haber recibido órdenes, Shalltear acaba en un estado de Stand-by, en el que simplemente se dedica a entrar en combate con cualquier persona que le ataque. Por cierto, en el primer episodio de la segunda temporada también vemos un flashback de&amp;nbsp;Tsaindorcus Vaision en el que su armadura pelea contra ella en el que presumiblemente él huye, dando a entender que hubo un combate entre ellos en algún momento entre la huída de la Escritura Negra y el combate de Shalltear contra Ainz.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;La princesa de Re-Estize envenenó un orfanato para poder convertirse en demonio.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En
 el arco “El Rey de la Conspiración” de la cuarta temporada del anime (capítulo 12), 
se observa a la princesa Renner Theiere Chardelon Ryle Vaiself en un 
orfanato preparando la comida, mientras insta a las monjas a que también
 se alimenten, justo antes de la invasión de E-Rantel (la capital del 
reino).&lt;br /&gt;&lt;br /&gt;Sin embargo, según el autor, la 
acción de Renner no responde a una motivación altruista, sino que tiene 
como objetivo envenenar a los niños y a las monjas bajo el pretexto de 
recolectar almas para poder transformarse en demonio (objetivo que 
finalmente logra). De hecho, su transformación se debe a la Semilla de 
la Corrupción, un objeto mágico de YGGDRASIL que Albedo le entrega en el
 segundo episodio de la cuarta temporada del anime. Este objeto permite 
el cambio de raza a demonio, pero&amp;nbsp; requiere una cantidad específica de 
almas para activar el proceso. Una vez caído el reino de Re-Estize, 
Albedo premia a Renner con una segunda semilla para su amado Climb.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Es
 difícil saber discernir cuando realizó exactamente el ritual para 
transformarse en demonio, puesto que cuando acudió al orfanato la guerra
 con el Reino Hechicero ya estaba declarada y cuando empezó el asedio a 
E-Rantel ella ya poseía una fuerza sobrehumana, siendo capaz de sostener 
la espada del gran guerrero Stronoff (entonces en propiedad de Brain 
Unglaus) sin problemas. Es de presuponer entonces que en el momento en que se 
reunió con las Blue Roses ella ya era un demonio (la escena justo 
después de la visita al orfanato).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;De
 hecho, la escena del encuentro entre las Blue Roses y Renner es puro 
cine. Al observar la escena, vemos que sacan a Brain de la escena para evitar testigos, Tina se percata de que el servicio ha abandonado el palacio y Tia regresa para envenenar a Lakyus con una taza de té, tras lo cual le dan una brutal paliza para que acto seguido Evileye pueda hipnotizarla con el conjuro “Fascinar Humano”. Esto sugiere que han utilizado la reunión con Renner para huir con ella de Re-Estize, ya que era el único momento en el que Lakyus no llevaría consigo ningún equipo mágico.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Sin embargo, el trasfondo es mucho más profundo. En primer lugar, las Blue Roses, conscientes de que el Reino de Re-Estize está al borde del colapso ante el Reino Hechicero, no se atreven a debatir con su jefa, sino que prefieren llevársela a la fuerza; En segundo lugar, el motivo de la visita, que no se explica, es el de debatir la estrategia a seguir para repeler la invasión, pero la princesa no pone ninguna traba al motín y las deja huir como si nada, sin intentar convencerlas para que se queden. De hecho, detrás de esta traición hay un juego más oscuro. La reunión, supuestamente para planificar la defensa contra la invasión, es una trampa urdida por Renner, quien sirve a Albedo y busca neutralizar a Lakyus como potencial líder de resistencia, ya que es poseedora de la Kilineiram, una de las cuatro espadas del Caballaero Oscuro (miembro de los Trece Héroes) y además ella es el único habitante de Re-Estize con poderes de resurección. En tercer lugar, la ausencia del servicio no se debe a deserciones, sino a que deben haber perecido como sacrificio para el ritual transformación de Renner. En cuarto lugar, Evileye percata que algo ocurre con la princesa, pues la ve demasiado impasible, pero no llega a percibir de que está ante un demonio. Y, finalmente, Evileye les menciona que huyen a un país que cayó hace mucho tiempo, situado al sureste de Re-Estize (es decir, que vuelve a su antiguo reino, Inveria).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Qué pasó con los ciudadanos de Re-Estize&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En
 el arco “El Rey de la Conspiración” de la cuarta temporada del anime vemos que Brain es congelado por Cocytus durante la invasión de Re-Estize. No se comenta en el ánime, pero durante esta invasión se realizan secuestros en masa por parte de Demihurgo para su granja&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Durante el asalto a la capital y la posterior destrucción total del Reino, Demiurgo recolectó prisioneros en masa para realizar las siguientes atrocidades en su infame &quot;Granga Feliz&quot;, un campo de concentración y de experimentación bilógica:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;Producción de Pergaminos Mágicos (Desollamiento): El objetivo principal era conseguir materia prima para fabricar pergaminos consumibles de bajo nivel para Nazarick. Demiurgo desollaba vivos a los humanos (a quienes llama &quot;ovejas bípedas&quot;) para quitarles la piel. Como los niños tienen una piel más fina y de mejor calidad, los priorizaba para este proceso.&lt;/li&gt;&lt;li&gt;Uso de Magia de Sanación Ciclica: Para maximizar la producción, los torturadores aplicaban magia de curación inmediatamente después de arrancarles la piel. Esto regeneraba sus cuerpos por completo, permitiendo que la misma persona fuera desollada una y otra vez de forma infinita.&lt;/li&gt;&lt;li&gt;Experimentos de Hibridación (Cruces Biológicos): Demiurgo estudió el problema de concepción entre especies forzando la reproducción entre humanos y diferentes tipos de demihumanos. Utilizaba magia de control mental (Charm) para obligarlos a aparearse, utilizando magia de curación cíclicamente durante el embarazo para intentar asegurar el nacimiento y luego analizaba los perturbadores resultados biológicos.&lt;/li&gt;&lt;li&gt;Injertos de Extremidades y Órganos: Realizaba cirugías experimentales cortando extremidades y órganos de familiares consanguíneos o de distintas especies para coserlos entre sí. El fin era comprobar si sobrevivían a las mutaciones usando magia de curación.&lt;/li&gt;&lt;li&gt;Tortura Psicológica Extrema: Obligaba a los miembros de una misma familia a desollar a sus propios hijos o los hacía comerse entre ellos para fomentar el odio y la desesperación absoluta entre los prisioneros, algo que le causaba un enorme placer.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Demiurgo enviaba a la Granja Feliz a todos los ciudadanos comunes (los que no tenían valía), mientras que los humanos con habilidades especiales tenían destinos muy diferentes y &quot;privilegiados&quot; dentro de Nazarick. Un detalle irónico de la historia es que Ainz Ooal Gown no comprende la 
magnitud de estas atrocidades. Ainz cree genuinamente que la &quot;Granja 
Feliz&quot; de Demiurgo cría algún tipo de monstruo quimérico o animal del 
Nuevo Mundo similar a una oveja, sin sospechar que se trata de seres 
humanos.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Sobre Brain Unglaus, Cocytus ordena congelar el cadáver para evitar que se descomponga y preservarlo con honor, esto, entre otras cosas, puede permitir resucitarlo más tarde. No obstante, más adelante Cocytus deja claro que traer a Brain a Nazarick como un sirviente o para experimentos (el destino habitual que Demiurgo le da a los humanos valiosos) sería una tremenda falta de respeto a su resolución como guerrero. En el Volumen 14, Cocytus menciona textualmente que prefiere asumir la responsabilidad ante Ainz antes que profanar el cuerpo de alguien que lo enfrentó con tanto honor, por lo que se queda así, congelado de por vida como Han Solo en Star Wars. Cabe destacar que en la novela web original (que ya no es canon), Brain acaba capturado por Shalltear, convertido en vampiro y obligado a servir a Nazaric&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Los Trece Héroes no eran trece.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El grupo conocido como los Trece Héroes se formó hace doscientos años con el objetivo de combatir a las deidades malignas. A pesar de su nombre, la composición del grupo no se limitó a trece miembros. El número de héroes fluctuó a lo largo del tiempo debido a fallecimientos, deserciones y nuevas incorporaciones, hasta que sólo trece lograron sobrevivir. Sin embargo, según se menciona en la novela ligera, el grupo llegó a tener más de trece supervivientes. La lista oficial omitió a aquellos que no eran humanos, como la realeza élfica, vampiros como Evileye, dragones como Tsaindorcus Vaision o el capitán de los gigantes de aire, con el fin de exaltar la heroicidad humana. Asimismo, se omitió el origen de algunos héroes, como el Caballero Oscuro, quien tenía sangre demoníaca (volumen 10, capítulo 3).&lt;br /&gt;&lt;br /&gt;Además, en el arco argumental “Los Hombres en el Reino”, Sebas informa a Ainz que Evileye posee un nivel que oscila entre el 50 y el 60. Considerando que Evileye es uno de los héroes más poderosos, esto sugiere que el grupo de los Trece Héroes es considerablemente más débil que los personajes de nivel 100 que conforman la Gran Tumba de Nazarick. Esta afirmación se ve corroborada por Fluder Paradyne (el mago de la corte del Imperio Baharuth) durante una conversación con Jircniv Rune Farlord El Nix (el emperador del Imperio Baharuth), el cual menciona que el hechizo más poderoso realizado por los Trece Héroes era de nivel 5, muy por debajo de los hechizos más potentes de Nazarick. Pléyades como Narberal Gamma, de nivel 63, y por consiguiente más acorde al poder que tendrían dichos héroes, puede lanzar hechizos de nivel 7.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Por otro lado, el dragón plateado que, manejando un avatar con forma de armadura y armas flotantes, se enfrenta a Pandora’s Actor (disfrazado de Ainz) en la cuarta temporada del anime, es otro de los miembros de los Trece Héroes. Cabe destacar que este dragón es el propietario del ítem mundial que acaba manipulando la mente de Shalltear en la primera temporada del anime (un vestido llamado &quot;Ruina del Castillo y del País&quot;), pero él no estaba presente en la escena (el vestido estaba siendo portado por la hechicera Kaire). Durante su combate contra Pandora se presenta con un nombre falso, Rick Aganeia, pero su nombre real es Tsaindorcus Vaision y, aunque en el anime se dé a entender que se trata de un jugador de YGGDRASIL, no lo es: simplemente conoce de su existencia. ¿Cómo es posible? Pues porque en las novelas se da por hecho que su padre, el Dragón Emperador, fue un jugador de YGGDRASIL. Y bueno, se ve que Tsaindorcus Vaision era todo un coleccionista de trajecitos de YGGDRASIL, puesto que en la cuarta temporada le vemos interesado en tomar por la fuerza la &quot;armadura del poder&quot; de Azuth Aindra (especula con matarlo y dárselo a otra persona).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/qG72hzQzP8Y&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Cabe destacar también que, según la novela ligera, en el grupo de los Trece Héroes también hubo dos jugadores de YGGDRASIL, entre ellos su líder (el cual aparece brevemente mencionado por Evileye en el capítulo 30 del manga).&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Las tres elfas que acompañan a Erya Uzruth acaban viviendo en Nazarick y sirviendo a Aura y Mare Bello Fiore.&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Erya Uzruth lidera el grupo de aventureros Tenmu, establecido en el Imperio Baharuth. Su grupo está compuesto por él y tres esclavas elfas: una clérigo, una druida y una exploradora. Su personalidad se caracteriza por la arrogancia, el egocentrismo, la crueldad, la misoginia y el racismo. Durante el arco argumental “Los Invasores de la Gran Tumba”, se hace acompañar por sus esclavas para que le lancen hechizos de apoyo que mejoran sus habilidades.&lt;br /&gt;&lt;br /&gt;Estas tres elfas fueron inicialmente esclavizadas por la Teocracia Slane, nación cuya religión justifica la superioridad humana sobre otras razas y que se encuentra en guerra con el reino elfo. Posteriormente, fueron vendidas a Erya. De hecho, el personaje es tan cretino que muchos aficionados a Overlord creen que es originario de la Teocracia, pero hasta la fecha, ni en la novela web ni en las novelas ligeras se menciona su origen.&lt;br /&gt;&lt;br /&gt;En el arco argumental “Los Invasores de la Gran Tumba”, Erya muere en combate contra Hamesuke, el Rey Sabio del Bosque. Tras su muerte, las tres esclavas comienzan a golpear el cuerpo sin vida de su amo. No obstante, el anime no menciona que, durante el arco argumental “Arco del Rey de la Conspiración”, Ainz decide perdonarles la vida al comprender que invadieron la tumba en contra de su voluntad. Acto seguido, las pone bajo la custodia de Aura y Mare, en el sexto piso de Nazarick, con la esperanza de que contribuyan al desarrollo mental de estos dos elfos oscuros (a pesar de tener 76 años, se consideran niños en su raza).&lt;br /&gt;&lt;br /&gt;Desarrollaron una lealtad extrema hacia los dos elfos oscuros, hasta el punto de que Aura y Mare las consideraban una molestia. Esta situación generó una preocupación en Ainz por la seguridad de las sirvientas, lo que lo llevó a prohibir expresamente cualquier daño hacia ellas.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Los jugadores de YGGDRASIL llegan por &quot;oleadas&quot;&lt;/h2&gt;Cada cien o doscientos años se produce algún evento significativo en el “nuevo mundo”, hecho que se menciona tanto en las novelas como en el anime y el manga. Si se analizan estos eventos, se observa lo siguiente:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Hace 600 años surgieron los seis grandes dioses, considerados los creadores de la Teocracia Slane. Se les atribuye la introducción de las magias de nivel superior, lo que sugiere que podrían haber sido jugadores con un poder similar al de YGGDRASIL. Es importante señalar que, hasta su llegada, se consideraba a los humanos como seres inferiores, ya que no estaban tan preparados o evolucionados como los semihumanos para adaptarse a condiciones extremas. Y bueno, en el primer episodio de la segunda temporada vemos a Zesshi Zetsumei jugando con un cubo de &lt;i&gt;rubik&lt;/i&gt;&amp;nbsp;mientras habla con el capitán de la Escritura Negra. Como es lógico, no es normal encontrarnos con un cubo de rubik en un mundo de fantasía medieval y en la conversación entre ambos se menciona que el cubo en realidad es una reliquia que perteneció a los seis grandes dioses.&lt;/li&gt;&lt;li&gt;Hace 500 años llegaron los Ocho Reyes de la Codicia, quienes se enfrentaron a los señoríos dragonianos. En el volumen 7 (capítulo 67), una conversación entre Evileye y Climb da a entender que puede que sean jugadores, debido a que eran seres capaces de gobernar el mundo con magia de alto nivel y poseían artefactos legendarios como el Nameless Spellbook.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Hace 200 años, se formó el grupo de los Trece Héroes (de los cuales dos se confirma que fueron jugadores de YGGDRASIL) y apareció también el Minotauro Sabio (que presumiblemente es otro jugador).&lt;/li&gt;&lt;li&gt;Y en la actualidad, ha aparecido la Gran Tumba de Nazarick, con Ainz y su ejército de NPC de alto nivel.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNV0Fei9QVsL0fghyHwTCodX2tJc5N44xb3dcqCU3fEu-M7bKayotUj-1vjxiQbV1Q70WKhMF1bBJaQ79ymkMMyBwX__2vAEtHp6WvPRbOeVehkjHV4SQF_bkIG9JSaUIRVheXlS01C-pKn_kSo2PzW4HMpNzz0UiWubnN3YcanbmWGDOJidyD/s3122/IMG_8431.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1492&quot; data-original-width=&quot;3122&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNV0Fei9QVsL0fghyHwTCodX2tJc5N44xb3dcqCU3fEu-M7bKayotUj-1vjxiQbV1Q70WKhMF1bBJaQ79ymkMMyBwX__2vAEtHp6WvPRbOeVehkjHV4SQF_bkIG9JSaUIRVheXlS01C-pKn_kSo2PzW4HMpNzz0UiWubnN3YcanbmWGDOJidyD/w640-h306/IMG_8431.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYaaRUMFZGGsfpyNfnf_FkBHlpD80ciX4nqsJAOXmaEW5Jji9zqNoMag-kjjPY2C14Zn-y5gSKYcA1-bMcUh34N9leks33TTe1zNVu3edDC_BYNT27Xez4gREl2Q0gm3ndhRhq17NxVsGjz_JuWIvKUENPMdGfT4ndJHnFcuznT-krqP8nggpw/s2638/IMG_8432.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1462&quot; data-original-width=&quot;2638&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYaaRUMFZGGsfpyNfnf_FkBHlpD80ciX4nqsJAOXmaEW5Jji9zqNoMag-kjjPY2C14Zn-y5gSKYcA1-bMcUh34N9leks33TTe1zNVu3edDC_BYNT27Xez4gREl2Q0gm3ndhRhq17NxVsGjz_JuWIvKUENPMdGfT4ndJHnFcuznT-krqP8nggpw/w640-h354/IMG_8432.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;En los glosarios del manga, se da a entender que los Seis Grandes Dioses fueron jugadores.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;El caso del Minotauro Sabio resulta particularmente interesante, ya que nunca se confirma explícitamente que se trate de un jugador, aunque se sobreentiende que lo fue debido a que introdujo artefactos mágicos de uso cotidiano muy avanzados para la época (como neveras, ventiladores, métodos quirúrgicos, etc.). Este personaje también aparece mencionado brevemente en el arco argumental “Los Invasores de la Gran Tumba”, donde los trabajadores descubren una serie de productos que atribuyen al Minotauro Sabio.&lt;br /&gt;&lt;br /&gt;Respecto a la razón de estas apariciones de jugadores en periodos de 100/200 años, Ainz especula que el teletransporte a un nuevo mundo podría estar relacionado con el consumo de un ítem de clase mundial. Esta hipótesis se menciona en una reflexión del volumen 7, donde Ainz especula que el Dragón Emperador fue un jugador de YGGRDRASIL que llegó al “nuevo mundo” tras usar el ítem mundial, otorgando a esta teoría veracidad (por lo que puede considerarse prácticamente canon).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3t14MrSnPeqiboMgQUVQhwSPvQlm70Ao-lONzzi7ynUv7ihKWLm5xgHc-p0q9IA02vU5DN7RQgBO5-xDDfditvj0KTYMH3XJlOLWxUhY1cbUBmzHPpNMt9-NEAbZolBqHVaLmLGOsOkhbJH6FUs6vHaRhBH6sFC1eJnjujqpfEfeY_dgRTMkn/s3370/IMG_8411.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1777&quot; data-original-width=&quot;3370&quot; height=&quot;338&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3t14MrSnPeqiboMgQUVQhwSPvQlm70Ao-lONzzi7ynUv7ihKWLm5xgHc-p0q9IA02vU5DN7RQgBO5-xDDfditvj0KTYMH3XJlOLWxUhY1cbUBmzHPpNMt9-NEAbZolBqHVaLmLGOsOkhbJH6FUs6vHaRhBH6sFC1eJnjujqpfEfeY_dgRTMkn/w640-h338/IMG_8411.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Según el glozario del manga, sólo existen 200 ítems de nivel world.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Además, en el volumen 3, se define a los “ítems mundiales” como artefactos &quot;equivalentes (en poder) a un mundo&quot;, vinculados al poder extremo y capaces de influir en el traslado dimensional. Ainz explica que son elementos muy desequilibrados que generan efectos únicos en el mundo. Así mismo, en el primer episodio, minutos antes del cierre de los servidores, Momonga utiliza presumiblemente un ítem equivalente a item mundial para modificar la ficha de Albedo, lo cual es fundamental en la teoría del teletransporte. Puede parecer absurdo utilizar un ítem tan poderoso para modificar únicamente una ficha, pero recordemos que desde el punto de vista de Momonga, al universo de&amp;nbsp;YGGDRASIL le quedaban apenas minutos de vida (el servidor se iba a desconectar en minutos).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;No obstante, esa teoría está cogida con pinzas, puesto que se da a entender que usa el báculo de Ainz Ooal Gown para hacer la modificación y éste es, en teoría, de nivel divino (un nivel inferior a un ítem mundial). La necesidad del báculo radicaba en que, según la novela ligera, se le considera el báculo del gremio y, en virtud de ello, otorga permisos de administración sobre éste (volumen 1, capítulo 1, parte 2). No obstante, y también según la novela ligera, el báculo nunca antes había sido utilizado, ni siquiera tras su construcción (volumen 1, capítulo 1, parte 1). Además, se especula con que su poder es comparable al de un ítem mundial debido a la cantidad de poder incrustado en él: las siete joyas que lo componen son, a su vez, siete artefactos de clase divina, con las alineaciones elementales de Sol, Luna, Tierra, Fuego, Viento, Agua y Tiempo. Es decir, el mero hecho de haber utilizado por primera vez el báculo, habría propiciado el teletransporte al nuevo mundo, o por lo menos, eso es lo que se da a entender.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Ahora bien, a diferencia de los ítems de clase mundial, los ítems divinos no tienen por qué ser únicos y es probable que existan báculos como el de Ainz Ool Gown en otros gremios (el gremio de Ainz era de los más fuertes de YGGDRASIL, pero no el más fuerte), lo cual echa por la borda esta teoría.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVv4kU8xc_V5aPGtK8FUDXhqCllFmIY3j2xBHSnROJOtYTV9J-RfbFZMvFA4rJw2mDskJ9D9Bh_X019_MPqaOdmWdNSHKxRWtJbu3BoCfZYzINRXCG4Xgd6E1sHapOWqT40IF-aYn-RuznjaGSawC0CUtIuP8E-rOR4Ockg9ZPZxQnKmBvfK5D/s3449/IMG_8412.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2111&quot; data-original-width=&quot;3449&quot; height=&quot;392&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVv4kU8xc_V5aPGtK8FUDXhqCllFmIY3j2xBHSnROJOtYTV9J-RfbFZMvFA4rJw2mDskJ9D9Bh_X019_MPqaOdmWdNSHKxRWtJbu3BoCfZYzINRXCG4Xgd6E1sHapOWqT40IF-aYn-RuznjaGSawC0CUtIuP8E-rOR4Ockg9ZPZxQnKmBvfK5D/w640-h392/IMG_8412.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;En el glosario del manga se explica que el báculo de Ainz es de nivel divino.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Para añadir más leña al fuego, es evidente que, considerando que al cierre de los servidores de YGGDRASIL, el juego había funcionado durante 12 años, y que en el “nuevo mundo” las oleadas de héroes aparecen cada 100 o 200 años, la relación espacio-temporal entre ambos universos difiere notablemente. En este sentido, los 12 años transcurridos en el mundo real se han traducido en aproximadamente 600 años en el “nuevo mundo”. Y puestos a explotar el espacio-tiempo, Maruyama explota este factor al máximo: En el material canónico (novelas, manga, anime), los jugadores del pasado no se limitan a ser antiguos usuarios de YGGDRASIL, sino que se sugiere que podrían provenir de diferentes juegos o incluso de realidades paralelas, aunque esto no se explica con total claridad y queda abierto a la interpretación del lector. La posibilidad de múltiples orígenes se basa en que algunos personajes y eventos presentan habilidades o tecnologías que no encajan exclusivamente con YGGDRASIL, lo que apunta a fuentes externas. Además, la mención de portales dimensionales y viajes en el tiempo en ciertos pasajes también respalda la teoría de realidades múltiples. En otras palabras, si el guion sugiere la existencia de realidades paralelas y jugadores de diferentes juegos, no sería descabellado que las condiciones de acceso de cada oleada fueran variables, por lo que la teoría del teletransporte por usar el báculo &quot;divino&quot; podría encajar, pese a estar cogida con pinzas.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;También es cierto que la narrativa de la obra no siempre establece una distinción clara entre jugadores y personajes no jugables: Muchos personajes considerados “jugadores” en el “nuevo mundo” son en realidad NPCs con inteligencia artificial avanzada, por lo que la línea entre jugador y NPC resulta difusa. El hecho de que se nos revele desde el primer episodio que Momonga carece de familiares y que se nos indique al inicio que nadie lo echará de menos, puede incluso llevarnos a cuestionar su verdadera naturaleza. Pero partiendo de que se trata de un jugador, el mundo de Overlord se percibe como un entorno orgánico donde, al igual que en un juego de rol clásico, los jugadores pueden contraer matrimonio, tener hijos y tomar decisiones que se reflejan en sus acciones. Por poder, pueden incluso morir de forma definitiva. Y esa es precisamente la magia de la obra de Maruyama: un Universo que se siente vivo, bien construido e invita al lector a adentrarse cada vez más en él.&lt;br /&gt;&lt;br /&gt;Si Ainz golpea una puerta o toma una decisión, el lector sabe que habrá una reacción consecuente, ya sea visible o en las sombras. A lo largo de la historia, distintas facciones políticas y nacionales actúan en función de lo que perciben, muchas veces de manera oculta o estratégica. Esta interconexión dinámica entre personajes y fuerzas hace que el mundo no sea estático, sino una red compleja de causas y efectos donde cada acción tiene su repercusión, enriqueciendo la experiencia narrativa y haciendo que cada evento tenga peso dentro del &lt;i&gt;lore&lt;/i&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Los semidioses son descendientes de jugadores&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Una
 de las escenas más cómicas del inicio de la serie es cuando vemos a 
Albedo y&amp;nbsp;Shalltear empiezan a pelear por quién será la consorte de 
Momonga y acto seguido&amp;nbsp;Demiurgo espeta a Mae y Cocytus un &quot;me gustaría 
saber como acaba esto&quot;. Esto deja desconcertados a Mae y Cocytus, puesto
 que Demiurgo es un ser frío y calculador que rara vez presta atención a
 asuntos tan triviales y la conversación deriva a que a Demiurgo le 
encantaría saber si Momonga podría dejar descendencia para tener un 
heredero al que venerar si algún día éste desaparece como los otros 
grandes seres supremos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Esto
 deriva más adelante en una subtrama bastante oscura que se pasa 
bastante por alto en el ánime, en el que Demiurgo acaba montando granjas
 de humanos y, entre otras cosas, acaba experimentando con ellos la 
viabilidad de cruzar razas.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En todo caso, una vez estalla abiertamente el conflicto con la&amp;nbsp;Teocracia
 Slane (y no me refiero al ataque a Villa Carne, la aldea inicial, si no
 a que cuando ambas potencias están descaradamente en guerra), sale a la
 luz la existencia de semidioses. Estos no son, ni más ni menos, que 
descendientes de los seis grandes dioses o de los&amp;nbsp;Ocho Reyes de la Codicia,
 que, como ya hemos mencionado, a su vez eran jugadores que llegaron al 
&quot;nuevo mundo&quot; y que han heredado parte de sus atributos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;No
 obstante, la gran mayoría de los descendientes de jugadores no heredan 
los atributos, ni el poder, de sus ancestros. En el universo de 
Overlord, tener la sangre de un jugador (un Dios) en las venas es una 
condición necesaria, pero no garantizada, para obtener un poder 
extraordinario. De hecho, aquí entra el concepto de &quot;despertar&quot;, término
 empleado cuando un descendiente hereda atributos anormalmente altos 
para un humano. Esto no es un hecho oculto en el &quot;nuevo mundo&quot; y 
potencias como la Teocracia Slane ejercen un control estricto del 
lineaje de los héroes, forzando una cría selectiva: Selecciona la pareja
 de los herederos basándose en sus atributos para intentar preservar o 
potencia el lineaje de los héroes.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Este
 control de lineaje de la Teocracia puede parecer bastante perverso, 
pero se queda corto si lo comparamos con el reino de los elfos: La 
supervivencia del más apto. El brutal método del Rey de los Elfos, Decem
 Hougan, para &quot;despertar&quot; el poder de sus hijos, partía de una lógica 
completamente errónea. Decem asumía que el trauma y el estrés extremo en
 un combate a muerte actuarían como catalizadores mágicos; por ello, 
engendró cientos de descendientes solo para enviarlos a la guerra siendo
 niños. Lo que el monarca ignoraba es que el sistema de Overlord no 
funciona por superación personal, sino por una estricta lotería 
genética. El &quot;Despertar&quot; depende enteramente del límite de nivel máximo 
fijado de forma pasiva en la concepción; al nacer como elfos comunes 
carentes de este potencial expandido, sus hijos terminaron masacrados en
 el frente, dejando a Decem atrapado durante siglos en un bucle de 
frustración y experimentos fallidos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
 Zesshi Zetsumei, miembro de la escritura negra de la Teocracia, es 
condiserada la semidiós más poderosa del &quot;nuevo mundo&quot;, debido a que es 
hija ilegítima de Decem Hougan (hijo de uno de los ocho reyes de la 
codicia) y de Faim, descendiente de los seis grandes héroes. Fain era la
 semidiós humana más poderosa de la Teocracia Slane en su tiempo, pero 
fue raptada por el rey de los elfos, Decem Hougan, quién la engañó, la 
secuestró y la violó con la obsesión de engendrar un heredero poderoso. 
Fain fue rescatada eventualmente por la Escritura Negra y, al regresar a
 la Teocracia, dio a luz a Zesshi Zetsumei (cuyo nombre real es Antilene
 Heran Fouche).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Ainz es frío e inhumano porque su mundo &quot;real&quot; es frío e inhumano&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El mundo real de Satoru Suzuki (nombre real del jugador que maneja a Ainz Ooal Gown) en el año 2138 es una distopía cyberpunk extrema, opresiva y desoladora. Es un entorno tan hostil que explica por qué los miembros del gremio de Ainz Ooal Gown estaban tan obsesionados por crear NPCs tan mentalmente aterradores o por qué Ainz en ocasiones toma bastantes decisiones frías, sin importar lo que le pase a la gente común.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A través de las novelas ligeras y las memorias de Ainz, se revelan los crueles detalles de su sociedad original:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Colapso ambiental absoluto.&lt;/b&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Cielo negro y niebla tóxica: El sol casi nunca es visible debido a una capa permanente de contaminación industrial espesa.&lt;/li&gt;&lt;li&gt;Equipo de supervivencia urbano: Salir a la calle requiere el uso obligatorio de máscaras de gas, filtros de aire y gafas protectoras. La contaminación es tan corrosiva que daña la ropa común.&lt;/li&gt;&lt;li&gt;Pulmones artificiales: Muchas personas de la clase trabajadora sufren daños pulmonares severos y dependen de costosos órganos cibernéticos artificiales para respirar.&lt;/li&gt;&lt;li&gt;Lluvia ácida y agua envenenada: El agua de los grifos debe filtrarse múltiples veces para ser potable. Los ríos fluyen con colores extraños debido a los desechos químicos.&lt;/li&gt;&lt;li&gt;Naturaleza muerta: La vegetación natural, las plantas, los pájaros y los insectos prácticamente dejaron de existir en estado salvaje.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;b&gt;El control total de las Megacorporaciones&lt;/b&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Dictadura corporativa: Los gobiernos nacionales colapsaron o se convirtieron en títeres. El mundo está gobernado directamente por un conglomerado de megacorporaciones que redactan las leyes a su conveniencia.&lt;/li&gt;&lt;li&gt;Explotación laboral extrema: Las jornadas laborales de los empleados comunes son inhumanas. La madre de Satoru murió por exceso de trabajo en la cocina de su casa tras turnos interminables. El propio Satoru no tenía vida social ni familia, reduciendo su existencia a dormir, trabajar y jugar.&lt;/li&gt;&lt;li&gt;Asesinatos corporativos: Las corporaciones operan con total impunidad. Si alguien descubre secretos comerciales o intenta rebelarse, es asesinado discretamente por mercenarios de la empresa (como le sucedió a Bellriver, uno de los miembros originales del gremio).&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;b&gt;Pobreza y alimentación artificial&lt;/b&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Comida sintética: Toda la agricultura tradicional desapareció porque la tierra está envenenada. Los alimentos frescos (frutas y verduras) se cultivan solo en domos privados y son lujos exclusivos de los ejecutivos ricos.&lt;/li&gt;&lt;li&gt;La dieta de la clase baja: La gente común como Satoru subsiste a base de suplementos nutricionales en pastillas y alimentos líquidos con saborizantes artificiales (como gachas con sabor a filete).&lt;/li&gt;&lt;li&gt;Educación privatizada: La educación primaria obligatoria fue abolida deliberadamente por las empresas para crear una masa trabajadora dócil. Estudiar cuesta mucho dinero; Satoru solo pudo terminar la escuela primaria antes de ser forzado a trabajar.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;b&gt;El escape a través de la tecnología virtual&lt;/b&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Interfaces neuronales: Para interactuar con las máquinas y los juegos, las personas se inyectan nanomáquinas directamente en el cerebro a través de puertos de red integrados en sus cuerpos.&lt;/li&gt;&lt;li&gt;YGGDRASIL como única salvación: Para millones de personas atrapadas en apartamentos minúsculos y rodeados de basura, los videojuegos de inmersión total eran la única forma de ver un árbol, sentir el viento limpio, contemplar estrellas reales o experimentar un cielo azul.&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/div&gt;La forma en que opera la Gran Tumba de Nazarick y el tipo de &quot;destrucción&quot; que Ainz Ooal Gown lleva a cabo en el Nuevo Mundo es una alegoría perfecta y deliberada del comportamiento de las despiadadas megacorporaciones de su mundo original.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El autor, Kugane Maruyama, utiliza el trasfondo distópico de Satoru Suzuki para moldear la mentalidad de Ainz. Al no haber recibido una educación formal más allá de la primaria y haber pasado toda su vida adulta como un oficinista alienado, Ainz no piensa como un rey medieval o un señor feudal; piensa y actúa como un oficinista corporativo, puesto que es lo único que sabe hacer.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Aquí os dejo los paralelismos exactos que demuestran esta alegoría:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;La mentalidad de &quot;Costo-Beneficio&quot; y el Crecimiento Infinito:&lt;/b&gt; Para Ainz, la destrucción y la conquista no nacen de la maldad pura, sino de la fría búsqueda de eficiencia, recursos y expansión:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;En su mundo original las megacorporaciones contaminaban el planeta y 
dejaban morir a la gente común porque mitigar el daño ambiental reducía 
sus márgenes de ganancia. El beneficio económico justificaba cualquier 
costo humano.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Por otro lado, si un reino o una población no aporta un beneficio neto a Nazarick, o si interfiere con sus planes de expansión, su eliminación se trata simplemente como un &quot;recorte de gastos&quot; o la absorción agresiva de un competidor. La masacre en las Planicies de Katze o la destrucción de Re-Estize son vistas por Ainz como meras operaciones logísticas necesarias para el crecimiento de su &quot;empresa&quot;.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;Cultura laboral tóxica:&lt;/b&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Ainz se preocupa por el bienestar de los Guardianes, pero su mayor temor es que sus &quot;empleados&quot; sufran de burnout (desgaste laboral) o insatisfacción que baje su productividad. Los guardianes (como Albedo o Demiurgo) compiten de forma enfermiza por trabajar horas extras y complacer al &quot;Jefe&quot;, viendo el descanso como una debilidad.&lt;/li&gt;&lt;li&gt;El &quot;Salario&quot; es el reconocimiento: Al igual que las empresas del año 2138 que pagaban salarios de miseria y exigían lealtad absoluta, Ainz mantiene a sus súbditos motivados no con libertad, sino con palabras de elogio corporativo y ascensos simbólicos.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;b&gt;La deshumanización del &quot;Recurso Humano&quot;&lt;/b&gt;: Para las megacorporaciones del año 2138, las personas no eran más que engranajes reemplazables en una inmensa máquina de producción. Esta misma lógica se refleja perfectamente en Nazarick. Lo vemos en los experimentos de Ainz con personajes como Roberdyck o Clementine, pero sobre todo en la &quot;Granja Feliz&quot; de Demiurgo: los habitantes del &quot;nuevo mundo&quot; dejan de ser personas para convertirse en simples &quot;ovejas bípedas&quot;, materia prima reciclable cuya piel se usa para fabricar pergaminos mágicos.Es un espejo brutal del mundo de Satoru Suzuki, donde los trabajadores eran consumidos hasta morir de agotamiento, tal como le ocurrió a su propia madre.&amp;nbsp; Paradójicamente, uno de los momentos en los que Ainz parece más humano es cuando decide resucitar a Shalltear, un acto que va más allá del puro cálculo de costo-beneficio.&lt;/li&gt;&lt;li&gt;&lt;b&gt;La falta de empatía por el condicionamiento social:&lt;/b&gt; Satoru Suzuki creció en un mundo donde ver cadáveres de huérfanos en la calle al ir a trabajar&lt;b&gt; era algo cotidiano y normalizado&lt;/b&gt;.&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Nadie se detenía a ayudar porque el sistema te obligaba a mirar hacia otro lado para sobrevivir.&lt;/li&gt;&lt;li&gt;Cuando es transportado al Nuevo Mundo y pierde sus emociones humanas debido a su cuerpo de no-muerto, esa apatía social corporativa se magnifica. Ainz puede ordenar la masacre de millones de personas sin sentir remordimiento porque, en su mente, está ejecutando un plan de negocios a largo plazo, desprovisto de cualquier carga moral.&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En conclusión, la tragedia de Overlord es que Ainz, a pesar de odiar el 
mundo distópico del que vino, terminó convirtiéndose en el CEO 
definitivo, recreando en el Nuevo Mundo el mismo sistema corporativo, 
implacable y deshumanizante que destruyó su planeta original. La alegoría corporativa es una interpretación popular, aunque Maruyama no la hace explícita al 100%. Digamos que es canon que es un mundo de Satoru es horrible y que explica su mentalidad, pero el autor no lo dice abiertamente.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Cada vez que Ainz siente una emoción humana intensa (empatía, pánico, culpa o profunda tristeza), una luz verde brilla en su cuerpo y sus emociones son reprimidas a la fuerza, devolviéndolo a un estado de fría calma. Esto, como alegoría, refleja exactamente lo que Satoru Suzuki tenía que hacer cada mañana en su mundo real. Para sobrevivir en su sociedad distópica, donde pasaba junto a niños muriendo de hambre en la calle para ir a su oficina, Satoru tuvo que &quot;apagar&quot; su empatía. Su mente humana ya tenía un &quot;supresor emocional&quot; psicológico; el cuerpo de no-muerto solo lo hizo biológico y permanente: Un esqueleto no tiene corazón, no tiene estómago, no tiene órganos y no puede dormir. Ainz a menudo se queja de que ya no puede disfrutar del sabor de la comida o del descanso.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;La vida de Satoru en el año 2138 ya estaba completamente vacía. Su rutina diaria se reducía a trabajar, comer gachas sintéticas, dormir en un apartamento diminuto y jugar. No tenía familia, amigos reales en el mundo físico, ni pasiones fuera de YGGDRASIL. Su existencia ya era la de un &quot;muerto en vida&quot; que solo operaba por inercia. Al convertirse en un no-muerto, su cuerpo simplemente se adaptó a la realidad de su alma: un cascarón vacío que solo vive para que los engranajes de su organización sigan girando.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Lo trágico es que Ainz no eligió ser un monstruo por pura maldad; fue moldeado por el capitalismo salvaje de su mundo. Al igual que las megacorporaciones destruyeron el ecosistema de la Tierra y deshumanizaron a la humanidad en el año 2138 sin sentir culpa (porque los sistemas corporativos no tienen moral, solo metas), Ainz destruye el &quot;nuevo mundo&quot; siguiendo la misma lógica fría.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;En conclusión, el cuerpo de no-muerto de Ainz es el espejo de su tragedia. Es el recordatorio constante de que Satoru Suzuki murió mucho antes de llegar al &quot;nuevo mundo&quot;; Había que ser alguien &quot;útil&quot; a la sociedad para entrar en su gremio y, a pesar de ser un gremio con 41 seres supremos, sólo HeroHero vino a despedirse de él; El sistema corporativo de su tierra natal lo mató por dentro, y el &quot;nuevo mundo&quot; solo le dio el cuerpo de esqueleto adecuado para que pudiera gobernar como el director ejecutivo de la destrucción.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El problema de los isekais es que es fácil identificarse con sus protagonistas puesto que son personas normales, como tú o como yo, que acaban en un mundo nuevo. Y aquí viene la magia de Maruyama, Satoru no viene de un mundo como el tuyo y quiere incomodar que te identifiques con él.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Fuentes de interés:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@redfairy&quot;&gt;https://www.youtube.com/@redfairy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@An1meNotes&quot;&gt;https://www.youtube.com/@An1meNotes&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@NazarickArchives&quot;&gt;https://www.youtube.com/@NazarickArchives&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@AniNews&quot;&gt;https://www.youtube.com/@AniNews&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@animerankerchannel&quot;&gt;https://www.youtube.com/@animerankerchannel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@eRReAnime&quot;&gt;https://www.youtube.com/@eRReAnime&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/@over.d.lord1&quot;&gt;https://www.youtube.com/@over.d.lord1&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://overlord.fandom.com/es/wiki/Overlord_Wiki&quot;&gt;https://overlord.fandom.com/es/wiki/Overlord_Wiki&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://overlordmaruyama.fandom.com/wiki/Overlord_Wiki&quot;&gt;https://overlordmaruyama.fandom.com/wiki/Overlord_Wiki&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: left;&quot;&gt;Novelas ligeras en francés (he comprado 5 para redactar esta entrada): &lt;a href=&quot;https://www.pointmanga.com/categorie-produit/light-novel/overlord/&quot;&gt;https://www.pointmanga.com/categorie-produit/light-novel/overlord/&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: left;&quot;&gt;Anime (castellano/catalán) &lt;a href=&quot;https://shop.selecta-vision.com/#5240/fullscreen/m=and&amp;amp;q=overlord&quot;&gt;https://shop.selecta-vision.com/#5240/fullscreen/m=and&amp;amp;q=overlord&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/erCxCAh8Wcw&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/06/jugadores-perdidos-heroes-falsos-y.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/3372542120059494028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/3372542120059494028'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/06/jugadores-perdidos-heroes-falsos-y.html' title='Jugadores perdidos, héroes falsos y muertos inquietos: Arqueología del lore en Overlord'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPOnstYE2tGdWm9MXrAyqcmapynB_iRz1rlwGbhcVXboq1b1ziYqIT4Ql_zSA9F0hHgOD4l_GfDGHqIRrwsufs9xdJee7TQXJZEI747hxKqp8Y4q7PmjM1JfXWyjMeE0xqr3ChCW_F_pmqgjTp4HL0tOZ_vEJNgXsnjiUYWg6l9r3CJUnvJZ0p/s72-w422-h640-c/81jAeEw48hL._SL1500_.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-975605498082884606</id><published>2026-06-13T01:42:35.453+02:00</published><updated>2026-06-13T20:29:09.607+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><category scheme="http://www.blogger.com/atom/ns#" term="mode9"/><title type='text'>Presentando el Mode9, una librería que extiende DIV2 Games Studios para cargar objetos y mundos 3D en formato OBJ</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSND7ahWlQCYGlNB-pz73AlmoSNA8mBHnmeSTf26uJ5CIF90NoVfH6ivu4JWeXFBu_jjachdYT9Cv0sP8u_-lsFn5D7z0hyphenhyphenWoluvNBFkSeZIfNAdGJG5cuNmWYhr7yd9aOBvdN7TTrBR92xsUfHoJzvDy8mq_rP5Jf01mdzLLQdzwdSZFlbf2M/s2784/Captura%20de%20pantalla%202026-06-13%20a%20las%201.44.39.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSND7ahWlQCYGlNB-pz73AlmoSNA8mBHnmeSTf26uJ5CIF90NoVfH6ivu4JWeXFBu_jjachdYT9Cv0sP8u_-lsFn5D7z0hyphenhyphenWoluvNBFkSeZIfNAdGJG5cuNmWYhr7yd9aOBvdN7TTrBR92xsUfHoJzvDy8mq_rP5Jf01mdzLLQdzwdSZFlbf2M/w320-h216/Captura%20de%20pantalla%202026-06-13%20a%20las%201.44.39.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiaI2j7RqHX7radT4rd_QXwRt-txgMK5Raa8JAHLkWdW4Q8Z8liJtBV7K0b3ED3mlXAB5CEJyQk7G3qNhr2ZkHcRmv933cBgz7iIt-YMpsYW3-sHg02fxJDaQQU8eLwfbWw88IDxa1oVNVGfbQBX1HUnx3NVGP3G-ODjnYa9wBs2tb8ZPBeVPC/s2784/Captura%20de%20pantalla%202026-06-13%20a%20las%201.46.19.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiaI2j7RqHX7radT4rd_QXwRt-txgMK5Raa8JAHLkWdW4Q8Z8liJtBV7K0b3ED3mlXAB5CEJyQk7G3qNhr2ZkHcRmv933cBgz7iIt-YMpsYW3-sHg02fxJDaQQU8eLwfbWw88IDxa1oVNVGfbQBX1HUnx3NVGP3G-ODjnYa9wBs2tb8ZPBeVPC/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.46.19.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MA-xKeQqT-wvrNbcPC446CyT6c2gK63n6ChzkMveLqvWmWoDhae0ez2MtRc0cdbvyDFLcTdjfhgj0UTSUEO4LcRK5hSCmY_f1ZDxbwV08PN9NYYEc3QPwIygDf8Ek6j6HBhPYBlzXcaC92Pf4WsjDf5_dZYCBGcv152peZXhpqfeQX2X9a3l/s2784/Captura%20de%20pantalla%202026-06-13%20a%20las%201.46.08.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9MA-xKeQqT-wvrNbcPC446CyT6c2gK63n6ChzkMveLqvWmWoDhae0ez2MtRc0cdbvyDFLcTdjfhgj0UTSUEO4LcRK5hSCmY_f1ZDxbwV08PN9NYYEc3QPwIygDf8Ek6j6HBhPYBlzXcaC92Pf4WsjDf5_dZYCBGcv152peZXhpqfeQX2X9a3l/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.46.08.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil3jB21htYi_BDPXjjrrp92JeSHztFe8yEYEt8IUiQDBcECr957ny1xPEoDPkemcgr0FmjN29JXXD6GJLff7IM374PA9vOTmfUyVzMzvc0lcFJgtkrpa78a7egBDhpyKFhY20ca3bdc3S71Ztjv6EPfMmbycjFMvpq90M9RpmuUr4s5nO5QZAT/s2784/Captura%20de%20pantalla%202026-06-13%20a%20las%201.45.59.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil3jB21htYi_BDPXjjrrp92JeSHztFe8yEYEt8IUiQDBcECr957ny1xPEoDPkemcgr0FmjN29JXXD6GJLff7IM374PA9vOTmfUyVzMzvc0lcFJgtkrpa78a7egBDhpyKFhY20ca3bdc3S71Ztjv6EPfMmbycjFMvpq90M9RpmuUr4s5nO5QZAT/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.45.59.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Hoy os presento un nuevo capítulo sobre DIV2 Games Studio, un entorno de programación de videojuegos para MS-DOS lanzado en 1999 (y su precuela un año antes) que fue bastante popular en España, en buena parte porque se vendía en los quioscos a un precio muy asequible. Pero el de hoy no es un capítulo cualquiera: Es, probablemente, el proyecto más ambicioso que he traído al blog hasta la fecha.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como sabéis, DIV2 traía de serie una colección de &quot;modos&quot; de pantalla. Por un lado teníamos el &lt;b&gt;modo 7&lt;/b&gt;, que abatía un plano y dibujaba sprites escalados por la distancia (truco empleado en juegos como Super Mario Kart); por otro teníamos el &lt;b&gt;modo 8&lt;/b&gt;, que permitía moverse por mapas de sectores planos (`.WLD`) que simulaban un entorno tridimensional, al estilo de los FPS pre-3D (como el primer Doom). Y ya está, eso era lo más parecido a las 3D que podíamos hacer hasta la fecha en DIV Games Studio: Nada de rampas, pendientes, personajes poligonales, etc.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Siempre me quedé con la espinita de hasta dónde se podría empujar el motor… y de ahí ha salido esto: una DLL que añade a DIV2 un nuevo modo que he bautizado como &lt;b&gt;Modo 9&lt;/b&gt;, capaz de cargar y recorrer escenarios y objetos t&lt;b&gt;ridimensionales de verdad&lt;/b&gt;, modelados, por ejemplo, en &lt;b&gt;Blender&lt;/b&gt; y exportados como ficheros &lt;b&gt;OBJ&lt;/b&gt;. Y podéis descargarla libremente desde mi GitHub e incluso ojear su código fuente &lt;a href=&quot;https://github.com/LeHamsterRuso/Mode9/tree/main/BIN&quot;&gt;(https://github.com/LeHamsterRuso/Mode9/tree/main/BIN&lt;/a&gt;).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;¿Qué es exactamente el Modo 9?&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;Podéis ver el Modo 9 como el hermano mayor del modo 8. Donde el modo 8 te daba sectores planos y en un formato propietario (propiedad de Hammer Technologies), el modo 9 te deja cargar cualquier tipo de malla 3D: paredes, suelos, techos y rampas con cualquier inclinación. La cámara es un proceso normal de DIV2 (lo mueves con `advance()`, lo giras cambiando su `angle`, igual que en el modo 7 y 8), así que puedes ponerla en primera persona, en tercera persona siguiendo al personaje, en vista cenital o donde se te ocurra.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y sobre ese escenario 3D puedes colocar tus personajes de tres maneras:&lt;/div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Como &lt;i&gt;billboards&lt;/i&gt;&amp;nbsp;planos (sprites 2D que se escalan con la distancia y siempre miran a la cámara, igual que el modo 7). Perfectos para antorchas, árboles o carteles.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Como &lt;i&gt;billboards&lt;/i&gt; con perspectiva (objetos con una serie de sprites donde el gráfico cambia según el ángulo). Perfecto para personajes (es por ejemplo el tipo de &lt;i&gt;billboards&lt;/i&gt; que vemos en juegos como &lt;b&gt;Daggerfall&lt;/b&gt;, &lt;b&gt;Doom&lt;/b&gt; o el &lt;b&gt;Super Mario Kart&lt;/b&gt; de SNES).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Como &lt;b&gt;objetos 3D&lt;/b&gt; de verdad, mallas &lt;b&gt;OBJ&lt;/b&gt; que puedes rodear y ver desde todos los ángulos, con soporte incluso para &lt;b&gt;animación por vértices&lt;/b&gt; (vertex morphing).&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Por debajo lleva todo lo que cabe esperar de un motor de la época: gráficos que recuerdan al 3D de la época de la PSX, niebla por distancia, cielo panorámico de 360º, &lt;b&gt;z-buffer&lt;/b&gt;, colisiones con deslizamiento, subida automática de escalones y rampas, &lt;b&gt;downscale&lt;/b&gt;&amp;nbsp;opcional (baja la resolución nativa del 3D) para ganar velocidad e incluso&lt;b&gt; split-screen&lt;/b&gt; a cuatro cámaras. Todo en una DLL compilada con &lt;b&gt;Watcom C++ 10.6&lt;/b&gt;, como mandan los cánones.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Cosas a tener en cuenta:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;ol&gt;&lt;li&gt;Cuanto menos polígonos tenga tu escenario y objeto 3D, mejor.&amp;nbsp;Intenta no usar modelos de más de 400 polígonos... la librería lo permite, de hecho permite modelos de hasta 8k caras, pero ten en cuenta que un modelo de varios miles de vértices puede hacer que tu juego vaya terriblemente lento.&lt;/li&gt;&lt;li&gt;Los modelos deben de exportarse con caras trianguladas, forward axis -Z y up axis Y.&lt;/li&gt;&lt;li&gt;Los materiales (texturas) no deben de exceder los 1024x1024 (y a ser posible que tenga un tamaño de potencia de 2, como 128x128, 256x256, 512x512, etc). Además debes de convertirlos a formato MAP a 256 colores (el formato típico de DIV y DIV2).&lt;/li&gt;&lt;li&gt;El cielo panorámico no debe de exceder los 4096 x 2048 píxeles.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;¿Cómo se usa? El esqueleto mínimo&lt;/h2&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Una cosa que nos hace falta es declarar un typo de proceso c_m9. Por desgracia este tipo de estructura no se pueden inyectar directamente desde las DLL de DIV2 y toca inicializarla en cada proyecto que use esta librería. Con este ejempo, podemos arrancar un mundo 3D con apenas unas pocas líneas (recuerda copiar la DLL en la carpeta DLL que hay dentro de DIV2 antes de arrancar el PRG):&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;paso1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;camera&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&quot;div2.pal&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;m320x200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_WLD9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CASTLE.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CASTLE.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// escenario&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_SKY9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/SKY.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// cielo (opcional)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_STEP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// altura de los escalones&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// proceso de cámara&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1500&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// mirando hacia el porton del castillo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;camera&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Este proceso es la cámara&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;160&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// altura del ojo (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// pitch (0 = horizonte)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;START_MODE9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_w&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;advance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_s&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;advance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_a&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_d&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;ejprograma&quot;&gt;&lt;/pre&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimhdFPBqdoorFqDV9Vve96AXLAvK1Wuo00AuVSnncLpuhDR3rO6uUvCQ5zZrjgFzzDu4LEcQmHPAh3NTTfwfLMXE8huTYcQJCxFmqIEGh1id2uNg3SpMiLabqVX3p59dJIp-jXFtMKS-KRl0h8EY9fYPe1DdjXOa7Y2TpvhZ62NXWei0vLA-MD/s2784/Captura%20de%20pantalla%202026-06-12%20a%20las%2023.47.40.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;432&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimhdFPBqdoorFqDV9Vve96AXLAvK1Wuo00AuVSnncLpuhDR3rO6uUvCQ5zZrjgFzzDu4LEcQmHPAh3NTTfwfLMXE8huTYcQJCxFmqIEGh1id2uNg3SpMiLabqVX3p59dJIp-jXFtMKS-KRl0h8EY9fYPe1DdjXOa7Y2TpvhZ62NXWei0vLA-MD/w640-h432/Captura%20de%20pantalla%202026-06-12%20a%20las%2023.47.40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como veis, la sintaxis recuerda mucho al modo 8 y en este ejemplo cargamos como escenario un fichero 3D en formato OBJ, le aplicamos un material por defecto, le aplicamos una textura de cielo panorámico y nos desplazamos por el escenario con los típicos controles de WASD. A partir de ese punto, mover la cámara es exactamente igual que mover cualquier proceso de DIV2. Pero lo mejor es verlo crecer paso a paso, que es justo lo que hacen los siguientes ejemplos.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Los ejemplos, uno a uno&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; He preparado seis programas (ficheros PRG) que van añadiendo una sola cosa nueva cada vez, de modo que podáis parar en el que queráis sin miedo a romper nada. Todos comparten el mismo escenario: un castillo con su patio, una escalera, un lago alrededor de la isla y un cielo panorámico.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_01.PRG · Un mundo vacío para pasear&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;Este fichero es el punto de partida: Cargamos el castillo con `LOAD_WLD9()`, le asignamos sus tres texturas por material (`MODE9_MATERIAL` para la escalera y el agua, ya que `CASTLE.OBJ` trae tres `usemtl`: castillo, escalera y lago) y arrancamos el render.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; La cámara incluye lo que se espera de un FPS clásico: movimiento con WASD, desplazamiento lateral, ratón para girar y mirar arriba/abajo, salto con gravedad y agacharse. Aquí ya se aprecian las colisiones con deslizamiento y el `MODE9_STEP(70)` subiendo la escalera del patio sin que tengamos que programar nada más.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Cosas a tener en cuenta: La librería permite desactivar y activar las colisiones, de forma que puedas traspasar paredes o incluso golpearte con el techo. No obstante, la gravedad (el hecho de caer hacia abajo) debe de implementarse en el propio PRG.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como apreciaréis, he inundado el código con comentarios explicando qué hace cada nueva función de este modo. Por cierto, si pulsáis multiples veces espacio podréis &quot;volar&quot;. Es un bug del PRG que he mantenido porque en cierta forma sirve para explorar y ver el escenario desde el cielo.&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TITLE:       MODE9.PRG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DATE:        06/06/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPTION: Ejemplo del &quot;modo 9&quot;: desplazamiento por un escenario 3D (.OBJ)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              con camara en primera persona (estilo Doom / Elder Scrolls Arena)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              usando MODE9.DLL.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// CONTROLES:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   W / S         : avanzar / retroceder (SHIFT = correr)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   A / D         : desplazamiento lateral (strafe)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   Raton         : girar (horizontal) y mirar (vertical / pitch)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   ESPACIO       : saltar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   CTRL          : agacharse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   ESC           : salir&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FICHEROS NECESARIOS:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   CASTLE.OBJ    : Escenario 3D (castillo + escalera en el patio + lago isla;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//                   3 materiales por &#39;usemtl&#39;: Castle, Stairs, Water).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   MAP/CASTLE.MAP: Textura del castillo (material 0, por defecto).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   MAP/STAIRS.MAP: Textura de los peldaños de la escalera (material 1).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   MAP/WATER.MAP : Textura del lago que rodea la isla (material 2).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   MAP/SKY.MAP    : Textura del cielo panorámico (skybox).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// SOBRE m9 Y c_m9:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   En DIV/DIV2, una DLL no puede crear STRUCTs ni c_types del lenguaje DIV2,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   asi que aqui se declaran: el STRUCT m9 (mismos campos que m8: z, camera, height, angle)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   y la constante c_m9 = 200.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   La camara se activa con START_MODE9(id,&amp;amp;m9.z,0).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   Los sprites se ponen con ctype = c_m9 y coordenadas de MUNDO (x,y,z) + size&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   + graph; el modo 9 los dibuja como billboards escalados por distancia SIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   llamar a nada cada frame (igual que c_m7 en el modo 7). c_m9 DEBE valer lo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   mismo en el PRG y en la DLL (200 por defecto; cambiable con MODE9_CTYPE).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;MODE9_DEMO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_X&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ancho de la resolucion de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_Y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Alto de la resolucion de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;GAME_FPS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FPS objetivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// velocidad de paso (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// c_type &quot;logico&quot; del modo 9 (convencion, ver cabecera)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// STRUCT de camara del modo 9 (mismos campos que m8). &amp;amp;m9.z = base del struct.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camera&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// resolucion real (la lee la DLL): raton/camara a&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// cualquier resolucion, no solo 320x200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Es probable que los assets tarden en cargar en hardware real.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si te salta la expcion 142, puedes decomentar esta linea para ignorarla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//ignore_error(142); &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_X&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_Y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;GAME_FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_SCRW&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_SCRW() y MODE9_SCRH() se pueden llamar en cualquier momento, no solo al inicio, por si quieres cambiar la resolucion con set_mode durante el juego.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_SCRH&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;FPG/MODE9.FPG&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// cargar el FPG del juego&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Cargar el escenario 3D (UNA sola llamada: malla + textura + escala) --&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// LOAD_WLD9(obj, textura, unitscale).  unitscale = 100 uds DIV2 por unidad&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// OBJ. Si la textura no existe (o pones &quot;&quot;), el render cae a flat-shading.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La textura de LOAD_WLD9 es el material 0 y se aplica por defecto a todos los materiales.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si cambias 100 por 200, el escenario será el doble de grande.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La carga del escenario es bloqueante (hasta que no acabe la acción, no se continúa).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si cargas escenarios enormes, puede saltar al excepcion 142 (&quot;El proceso parece bloqueado, esperando FRAME&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;LOAD_WLD9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;OBJ/CASTLE.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MAP/CASTLE.MAP&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- MULTIMATERIALES -----------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// CASTLE.OBJ tiene 3 materiales por &#39;usemtl&#39; (en orden): 0=Castle, 1=Stairs,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 2=Water. MODE9_MATERIAL(idx, map) asigna una textura a cada uno. El 0 ya lo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// puso LOAD_WLD9 (CASTLE.MAP); aqui ponemos la escalera y el mar. Si un .MAP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// no existe aun, ese material cae al 0 (CASTLE.MAP) sin fallar.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MAP/STAIRS.MAP&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// peldanos de la escalera del patio&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MAP/WATER.MAP&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// agua que rodea la isla&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_CULL(1) activa el backface culling (no dibujar las caras que se ven por detras; mas rapido).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por defecto está activado. Si deseseas desactivarlo haz MODE9_CULL(0);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_CULL(0);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_FOV cambia el campo de vision horizontal (FOV) en grados.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El valor por defecto es ~71, que es el FOV &quot;canonico&quot; de los juegos 3D de la época&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Un valor menor (60) hace zoom, y un valor mayor (90 o 110) da un efecto de gran angular.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cambiar el FOV puede afectar la sensacion de velocidad y la distorsion de las texturas, asi que ajustalo a tu gusto.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_FOV(90);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_PERSPECTIVE(1) Corrige gran parte de los defectos gráficos de las texturas, pero impacta mucho en el rendimiento.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por defecto esta desactivado (0), lo que da un efecto de distorsion de las texturas.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_PERSPECTIVE(1);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Far clip (&quot;flopping&quot;): no dibujar geometria mas alla de N uds DIV2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por defecto está a 0 (sin limite).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si activas niebla con SET_FOG9, se auto-activa el FARCLIP con el valor de &#39;far&#39; de la niebla (lo que queda tras la niebla es del color de fondo, no se dibuja).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_FARCLIP(1000);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_COLLISION activa y desactiva las colisiones: con 1, advance/xadvance NO atraviesan las paredes (la distancia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// minima a la pared es el campo &#39;radius&#39; del proceso camara). Con 0 puedes atravesar paredes.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_COLLISION(0);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// MODE9_STEP(INT X) se usa para subir escaleras y rampas.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El valor es la altura max (uds DIV2) que la camara sube sola. Los muros&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// mas bajos NO bloquean (se suben como un peldaño) y la camara se apoya&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// en el suelo que tiene debajo (rampas inclinadas, escalones). 0 = desactivado.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La DLL no aplica GRAVEDAD, la gravedad la tienes que gestionar en el PRG (ver el bloque de salto/gravedad de &#39;camara&#39;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ojo, para que funcione las colisiones deben de estar activadas (no va con MODE9_COLLISION(0)).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_STEP&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Ambiente y niebla (color en rango 0..100, convencion DIV2) ----------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// SET_ENV_COLOR9 fija el color de FONDO y tambien el color de la NIEBLA.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 0..100 por canal: 100=blanco, 0=negro. SET_FOG9(near,far) funde hacia ese&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// color crecientemente con la DISTANCIA: transparente hasta &#39;near&#39; y opaco en&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;far&#39; (gradiente suave, como el modo 8). OJO: a diferencia del modo 8&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// (0..100), aqui near/far son DISTANCIAS en uds DIV2; lo normal es far ~ 2*near.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//SET_ENV_COLOR9(60, 72, 88);        // cielo amarillento, impacta en el color de la niebla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//SET_FOG9(300, 1400);               // niebla: near=300  far=1400 (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por defecto la niebla no está activada, pero si la activas luego la puedes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// desactivar con MODE9_FOG_OFF.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_FOG_OFF();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Cielo panoramico (skybox) -------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// LOAD_SKY9(map): textura .MAP que envuelve 360 en horizontal; sustituye el&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// color de fondo plano (SET_ENV_COLOR9).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Gira con la camara (yaw) y se desplaza con el pitch.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;LOAD_SKY9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MAP/SKY.MAP&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Procesos ------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;WASD+RATON mover  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Proceso CAMARA: se mueve por el escenario como en el modo 8.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// velocidad de caida (la gravedad la integra el PRG)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 1 si la DLL nos sostiene en un suelo/escalon/rampa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z_fell&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// z tras aplicar la gravedad, ANTES de que la DLL ajuste&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Posicion inicial (uds DIV2): x,y = plano del suelo; z = altura&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// frente al porton (el porton esta en z=-1000)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1500&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// fuera de la muralla, mirando hacia el castillo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// mirando hacia +Z (hacia el porton)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estado del modo 9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camera&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;160&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// altura del ojo (1.6 uds OBJ; muralla de 4 de alto)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// pitch (0 = horizonte)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;radius&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// distancia minima a la pared (para MODE9_COLLISION)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// START_MODE9(camara, m9, region) -- misma firma que start_mode8.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   camara = id del proceso camara.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   m9     = &amp;amp;m9.z (la DIRECCION del STRUCT; en modo 8 aqui iria el indice&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//            de m8, pero al ser m9 un struct del PRG hay que pasar su&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//            direccion. &amp;amp;m9.z = base del struct; usa &amp;amp;m9[n].z para un array&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//            de camaras). La DLL lee m9.camera/height/angle de ahi cada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//            frame (no hace falta MODE9_SET ni MODE9_BIND aparte).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   region = 0 (pantalla completa; unica region soportada por la DLL).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;START_MODE9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_DOWNSCALE(2) reduce la resolución del render del modo 9.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Es un truco empleado en juegos first person shooter de consolas de 16 bits&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cada valor de downscale reduce la resolucion a 1/2, 1/3 o 1/4 (y duplica lineas para llenar la pantalla).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 1 = resolucion completa (sin downscale, valor por defecto);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 2 = render a la mitad de resolucion (si usas 320x200 -&amp;gt; Se aplica 160x100);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 3 = un tercio (si usas 320x200 -&amp;gt; Se aplica 80x50);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 4 = un cuarto (si usas 320x200 -&amp;gt; Se aplica 40x25);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Acelera mucho el render a costa de una gran perdida de calidad (pixelado, texturas borrosas, mas aliasing). Ajustalo a tu gusto.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//MODE9_DOWNSCALE(2);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;div2.pal&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;STOP_MODE9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Bye&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Movimiento lateral (strafe) ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_d&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;xadvance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_a&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;xadvance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Avanzar / retroceder ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_w&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_l_shift&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_r_shift&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;advance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;advance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_s&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;advance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Salto y gravedad (LA GRAVEDAD VIVE EN EL PRG) -------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El PRG integra la gravedad (z baja cada frame). El SUELO -incluidos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// escalones y rampas- lo pone la DLL TRAS el FRAME: si el jugador se apoya&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// en algo, la DLL le SUBE z (ver MODE9_STEP). Por eso despues del FRAME&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// comprobamos si z subio respecto a lo que dejo la gravedad: si subio y&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// estabamos cayendo, es que tocamos suelo (grounded) y paramos la caida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// impulso de salto (negativo = hacia arriba)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                              &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// gravedad (subida)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// caida mas rapida (game feel)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// caer (o subir, si fall_v&amp;lt;0 por el salto)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// suelo de seguridad en y=0 (por si no hay malla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z_fell&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// z tras la gravedad, antes de que la DLL ajuste&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Agacharse ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_control&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Raton: giro horizontal y pitch vertical (adaptado a la resolucion) -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Yaw: sensibilidad ~constante en cualquier modo (256000/scr_x = 800 @320).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;256000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Pitch: mapeo ABSOLUTO de mouse.y. Centro = scr_y/2 (horizonte real);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// factor 120000/scr_y para que toda la altura cubra +-60000 (=600 @200).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;120000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Tras el FRAME la DLL ya pudo SUBIR z (escalon/rampa/apoyo en el suelo).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si z quedo por encima de lo que dejo la gravedad y veniamos cayendo,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// hemos tocado suelo: marcamos grounded y anulamos la velocidad de caida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z_fell&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y aquí os dejo el ejemplo en movimiento:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/jdjsYluSWtM&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_02.PRG · Lo poblamos con billboards&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Idéntico al anterior, pero ahora metemos sprites al estilo modo 7. Y es de lo más cómodo: basta con darle a un proceso `ctype = c_m9` y sus coordenadas de mundo en `x, y, z`, y el Modo 9 lo dibuja solo cada frame, escalado por la distancia, sin que llamemos a nada. Coloco varios árboles y un cartel (billboards planos de una cara) y un NPC con &lt;b&gt;gráficos angulares&lt;/b&gt; (`xgraph`): una tabla de 8 dibujos repartidos en 360º, de forma que la DLL elige el frame correcto según desde qué ángulo lo mira la cámara, igual que el `xgraph` del modo 7. El &lt;b&gt;z-buffer&lt;/b&gt; se encarga de ocultarlos cuando una pared se interpone.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En verde el código añadido y con &quot;(...)&quot; las líneas omitidas por ser idénticas al ejemplo anterior:&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;MODE9_DEMO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Procesos ------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un sprite angular &quot;modo 7&quot; en el patio del castillo, representa un NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un cartel plano con textura&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;WASD+RATON mover  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Procesos de SPRITE billboard (estilo modo 7): basta con ponerle ctype = c_m9 y&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// sus coordenadas de MUNDO (x,y = suelo, z = altura), graph y size. El modo 9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// lo dibuja automaticamente como sprite 2D escalado segun la distancia, SIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// llamar a nada cada frame (igual que un proceso c_m7 en el modo 7).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   - x, y : posicion en el plano del suelo (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   - z    : altura (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   - size : escala base en % (la distancia la aplica el modo 9 encima)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// OCLUSION: el modo 9 oculta el sprite si queda tapado por la geometria (test&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// de z-buffer). Se puede desactivar con MODE9_OCCLUDE(0).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;npc_gr&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// N=8 graficos en 360º&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &amp;lt;-- el modo 9 lo pinta como billboard automaticamente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//graph = 8;          // grafico de MODE9.FPG, billboard plano (1 cara)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;xgraph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;npc_gr&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// grafico de MODE9.FPG, billboard con multiples caras, en funcion del angulo de vision&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// escala base (%); el modo 9 la modula por distancia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// posicion en el MUNDO (el proceso la conserva)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &amp;lt;-- el modo 9 lo pinta como billboard automaticamente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// grafico de MODE9.FPG, billboard plano (1 cara)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// escala base (%); el modo 9 la modula por distancia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// posicion en el MUNDO (el proceso la conserva)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &amp;lt;-- el modo 9 lo pinta como billboard automaticamente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// grafico de MODE9.FPG, billboard plano (1 cara)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// escala base (%); el modo 9 la modula por distancia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// posicion en el MUNDO (el proceso la conserva)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y aquí lo tenéis en movimiento:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/idf2smri_l4&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Por cierto, el NPC que véis es un render de un personaje que modelé en Blender en octubre del año pasado (aquí lo podéis ver en verdadero 3D: &lt;a href=&quot;https://sketchfab.com/3d-models/nazuna-from-backstabbed-in-a-backwater-dungeon-855b836348714abaa321d4638f2358db&quot;&gt;https://sketchfab.com/3d-models/nazuna-from-backstabbed-in-a-backwater-dungeon-855b836348714abaa321d4638f2358db&lt;/a&gt;). Y bueno, sobra decir que los árboles y la señal también los modelé yo mismo, en este caso para un proyecto abandonado que tenía el nombre en código &quot;La Aventura de Greta: Eboke Debe Dimitir&quot; y del que había ya preparado un boceto para su pantalla de &quot;pulsa start&quot;:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJK8vlDcng924clvc6H09jTIg2IQiFAGS7vL6pK70SO3o1lGc0n704oTkdHs4FDoBgbXzloooED0hRn6V1XMNaG7Xy6ofoFDS1Iz3wlZDzagQCZ9D2V9qRyoqEtmS1wsDmILnrg4arYE0CB1tJx-krtnRhJ5ScIz-wjIvTPR3IZLigKU4uL4VY/s2047/Ge37XDhWoAAQ5C8.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1536&quot; data-original-width=&quot;2047&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJK8vlDcng924clvc6H09jTIg2IQiFAGS7vL6pK70SO3o1lGc0n704oTkdHs4FDoBgbXzloooED0hRn6V1XMNaG7Xy6ofoFDS1Iz3wlZDzagQCZ9D2V9qRyoqEtmS1wsDmILnrg4arYE0CB1tJx-krtnRhJ5ScIz-wjIvTPR3IZLigKU4uL4VY/w640-h480/Ge37XDhWoAAQ5C8.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_03.PRG · Metemos un objeto 3D de verdad en nuestro escenario 3D de verdad&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Cuando un billboard plano no basta —queremos rodear al bicho y verlo por todos lados— y los billboards con sprites por ángulos se nos queda corto, toca meter un &lt;b&gt;modelo 3D&lt;/b&gt;. Aquí cargo una gata humanoide con `LOAD_OBJ9(&quot;OBJ/CAT.OBJ&quot;, &quot;MAP/CAT.MAP&quot;, 50)`, que devuelve un &lt;i&gt;handle&lt;/i&gt;, y lo dibujo cada frame con `DRAW_OBJ9()` en la entrada del castillo.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Un detalle importante: los modelos se cargan &lt;b&gt;en segundo plano&lt;/b&gt; (mientras jugamos), así que `LOAD_OBJ9` devuelve el &lt;b&gt;handle&lt;/b&gt; al instante, pero el gato simplemente &quot;aparece&quot; cuando termina de cargar. A más polígonos, materiales o animaciones, más tardará en cargar. No obstante, he implementado una función de&amp;nbsp;`MODE9_OBJ9_READY() que nos permite consultar si el objeto ligado al manejador ha acabado de cargar, lo cual permite, por ejemplo, la creación de pantallas de carga.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Al igual que antes, en verde dejo el código añadido y con &quot;(...)&quot; las líneas omitidas por ser idénticas al ejemplo anterior:&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;MODE9_DEMO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cat_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// handle del modelo 3D del gato (LOAD_OBJ9)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Cielo panoramico (skybox) -------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// LOAD_SKY9(map): textura .MAP que envuelve 360 en horizontal; sustituye el&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// color de fondo plano (SET_ENV_COLOR9).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Gira con la camara (yaw) y se desplaza con el pitch.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;LOAD_SKY9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MAP/SKY.MAP&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- NPC 3D estatico (objeto OBJ texturado en el mundo) ------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// LOAD_OBJ9(obj, textura, unitscale) carga UN modelo 3D estatico: la malla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// CAT.OBJ con su textura CAT.MAP, escala 50 (uds DIV2 por unidad OBJ). Ocupa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// un slot de los 8 de la DLL. El gato se vera quieto (sin animacion); para&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// animarlo por vertex morphing se usaria LOAD_OBJ9_ANIM + DRAW_OBJ9_ANIM.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cat_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_OBJ9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CAT.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CAT.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // Los modelos se cargan en segundo plano, mientras se ejecuta el juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // No obstante, con MODE9_OBJ9_READY puedes consultar si el modelo ha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // acabado de cargarse en memoria (1 = listo, 0 = aun cargando).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // Puede servir, por ejemplo, para hacer pantallas de carga&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // Esto es opcional, puedes llamar a DRAW_OBJ9 o DRAW_OBJ9_ANIM con un handle aun no cargado (0) y simplemente no dibuja nada en ese FRAME.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    // Pero ten en cuenta que, mientras el modelo se carga, el juego se ralentiza&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    write(0, SCREEN_X/2, SCREEN_Y/2, 4, &quot;Cargando modelo 3D...&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    while(MODE9_OBJ9_READY(cat_h) == 0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;        FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    END;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;    delete_text(ALL_TEXT);*/&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Procesos ------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC3D&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cat_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;400&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite angular &quot;modo 7&quot; en el patio del castillo, representa un NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un cartel plano con textura&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;WASD+RATON mover  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// NPC3D: objeto 3D texturado en el mundo. Usa DRAW_OBJ9 cada frame para que la&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DLL lo renderice como malla 3D (con z-buffer respecto al escenario).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   handle : devuelto por LOAD_OBJ9 (0 = modelo no cargado -&amp;gt; no dibuja nada)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   wx, wy : posicion inicial en el plano del suelo (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   wz     : altura inicial (uds DIV2; 0 = al nivel del suelo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// El proceso mantiene sus coordenadas (x,y,z,angle) como cualquier proceso DIV2:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// puedes moverlo con advance(), cambiar angle, etc. en subclases.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DRAW_OBJ9(handle, x, y, z, angle) se llama antes de cada FRAME y dibuja el&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// modelo estatico (sin animacion: el gato se queda quieto).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;NPC3D&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;pi&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DRAW_OBJ9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Y aquí lo tenéis en movimiento:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/1fI_wXe7-rc&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sobre la gata humanoide, se trata de una revisión lowpoly (menos de 400 polígonos) de un modelo que hice en Blender en 2021 basándome en el rediseño de Ankha que le hizo Zero Zone (aquí podéis consultar la versión original que hice entonces: &lt;a href=&quot;https://sketchfab.com/3d-models/ankha-zone-version-37819f223f26467e8b3247e83b507805&quot;&gt;https://sketchfab.com/3d-models/ankha-zone-version-37819f223f26467e8b3247e83b507805&lt;/a&gt;). Si véis que el modelo lowpoly no se parece mucho al que hice hace 5 años, es lógico... Pensad que he comprimido más de 130.000 triángulos en apenas unos 400.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_04.PRG · Y ahora, que el objeto esté animado&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; El mismo personaje, pero vivo. No es que esté bailando o corriendo, pero le he puesto una pequeña animación de &quot;idle&quot; (espera/estar quieto). Para ello, en lugar de `LOAD_OBJ9` uso `LOAD_OBJ9_ANIM(&quot;OBJ/CAT&quot;, ...)`, que carga una secuencia de poses numeradas (`CAT0.OBJ` … `CAT9.OBJ`), y lo pinto con `DRAW_OBJ9_ANIM()` pasándole un parámetro extra, `fpos`, que indica en qué punto de la animación está.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Mi Modo 9 &lt;b&gt;interpola&lt;/b&gt; las poses intermedias por nosotros, así que con 10 fotogramas el ciclo de &quot;respiración&quot; del gato queda suave y para ello ligo el `fpos` al `timer` para que la animación corra a la misma 
velocidad independientemente de los FPS a los que vaya el juego. En otras palabras, los vértices no se teletransportan del punto A al punto B, si no que hacen un recorrido. Esto lo hago porque en hardware modesto es poco realista hacer animaciones grandes de 180 posiciones, por poner un ejemplo... Al igual que en las animaciones de Blender, si capturas la posición de los vértices en el momento 0 y otra vez en el momento 50, con esta librería se recalculan las posiciones entre 1 y 49, para que la animación luzca fluída, sin que le tengas que especificar en cada frame cual es la posición exacta de los vértices.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Otra cosa a aclarar es que, como los OBJ no tienen soporte nativo para animaciones, los OBJ de CAT1, CAT2, CAT3, CAT4 son idénticos (mismos vértices, UV, materiales, etc), pero con posiciones cambiadas. Esto, si tienes maña con Blender, no es complicado de implementar e incluso te ayuda a exportar las animaciones para funcionar de esta forma.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Tened en cuenta también de que si pensáis usar animaciones 3D, resultaría recomendable que hagáis uso de&amp;nbsp;MODE9_OBJ9_READY() para implementar una pantalla de carga, puesto que, a pesar de que los objetos se cargan en segundo plano, pueden causar ralentizaciones (pensad que una animación 3D de 10 frames es como cargar en memoria 10 objetos 3D, uno tras otro).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Al igual que antes, en verde dejo el código modificado y con &quot;(...)&quot; las líneas omitidas por ser idénticas al ejemplo anterior:&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;MODE9_DEMO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// c_type &quot;logico&quot; del modo 9 (convencion, ver cabecera)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_FRAMES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// fotogramas del idle del gato (CAT0.OBJ..CAT9.OBJ)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_LOOP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// duracion del bucle en centisegundos (300 = 3 s, ver timer)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- NPC 3D animado (objeto OBJ texturado en el mundo) -------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// LOAD_OBJ9_ANIM carga una animacion por vertex morphing: los fotogramas son&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// OBJ/CAT0.OBJ..OBJ/CAT9.OBJ (misma topologia, solo cambian las posiciones) con una&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// unica textura CAT.MAP compartida. Ocupa UN SOLO slot de los 8 de la DLL,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// independientemente del numero de fotogramas. La carga se separa de NPC3D y&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// se llama con FRAME entre medias para refrescar antes de que arranquen los&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// procesos (y porque parsear 10 OBJ tarda varios segundos en disco real).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cat_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_OBJ9_ANIM&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CAT&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CAT.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_FRAMES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // Los modelos se cargan en segundo plano, mientras se ejecuta el juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // No obstante, con MODE9_OBJ9_READY puedes consultar si el modelo ha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // acabado de cargarse en memoria (1 = listo, 0 = aun cargando).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // Puede servir, por ejemplo, para hacer pantallas de carga&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // Esto es opcional, puedes llamar a DRAW_OBJ9 o DRAW_OBJ9_ANIM con un handle aun no cargado (0) y simplemente no dibuja nada en ese FRAME.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    // Pero ten en cuenta que, mientras el modelo se carga, el juego se ralentiza&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    write(0, SCREEN_X/2, SCREEN_Y/2, 4, &quot;Cargando modelo 3D...&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    while(MODE9_OBJ9_READY(cat_h) == 0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;        FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    END;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;    delete_text(ALL_TEXT);*/&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Procesos ------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;NPC3D&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cat_h&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;400&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite angular &quot;modo 7&quot; en el patio del castillo, representa un NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un sprite plano, representa un arbol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// un cartel plano con textura&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;WASD+RATON mover  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// NPC3D: objeto 3D texturado en el mundo. Usa DRAW_OBJ9 cada frame para que la&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DLL lo renderice como malla 3D (con z-buffer respecto al escenario).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   handle : devuelto por LOAD_OBJ9 (0 = modelo no cargado -&amp;gt; no dibuja nada)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   wx, wy : posicion inicial en el plano del suelo (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   wz     : altura inicial (uds DIV2; 0 = al nivel del suelo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El proceso mantiene sus coordenadas (x,y,z,angle) como cualquier proceso DIV2:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// puedes moverlo con advance(), cambiar angle, etc. en subclases.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DRAW_OBJ9_ANIM(handle, x, y, z, angle, fpos) se llama antes de cada FRAME.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;fpos&#39; es la posicion de la animacion en 1/256 de fotograma; aqui se deriva de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// timer[0] (centisegundos) para un bucle continuo de CAT_LOOP cs = 3 s. Para un&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// modelo cargado con LOAD_OBJ9 (estatico) DRAW_OBJ9_ANIM tambien vale: la DLL ve&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// nframes=1 y dibuja siempre el frame 0, ignorando fpos.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;NPC3D&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;pi&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// bucle de CAT_LOOP cs -&amp;gt; 0..CAT_FRAMES*256; la DLL interpola entre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// keyframes (idle suave) y hace bucle al volver al frame 0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;timer&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_LOOP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_FRAMES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;256&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CAT_LOOP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DRAW_OBJ9_ANIM&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;handle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y éste es el resultado en movimiento:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/HU20XuJvdyc&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_05.PRG · De un mapa a otro: el castillo por dentro&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Aquí es donde se pone serio. Este ejemplo es ya casi un pequeño juego: tiene pantalla de inicio (&quot;Pulsa una tecla&quot;), una pantall de salida con menú Sí/No, y sobre todo, un cambio de escenario al cruzar una puerta. La clave es que `LOAD_WLD9()` recarga el mundo en caliente, sin parar el Modo 9 ni perder la cámara: detecto que el jugador está sobre la puerta (distancia al cuadrado por debajo de un radio), hago un *fade* a negro para disimular, descargo los props del patio con `signal(..., s_kill)`, cargo el interior (`CASTIN.OBJ`), apago el cielo con `SKY9_OFF()`, bajo la luz ambiente con `SET_ENV_COLOR9()` y recoloco al jugador.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Dentro hay un NPC (básciamente he mudado a Nazuna aquí) sobre un estrado, un trono, lámparas colgando y antorchas en las paredes, y un bocadillo de diálogo que sigue al personaje en pantalla usando `MODE9_PROJECT()` para proyectar la posición de su cabeza a coordenadas 2D. Y también hay un guiño a cierto consejo sobre lo peligroso que es andar solo.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como siempre, en verde dejo el código modificado y con &quot;(...)&quot; las líneas omitidas por ser idénticas al ejemplo anterior:&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;MODE9_05_DEMO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IMPORT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;MODE9.DLL&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_X&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ancho de la resolucion de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SCREEN_Y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Alto de la resolucion de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;GAME_FPS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FPS objetivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// velocidad de paso (uds DIV2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// c_type &quot;logico&quot; del modo 9 (convencion, ver cabecera)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_OUT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// exterior (patio)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_IN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// interior (sala)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SWAP_CD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// frames de cooldown tras un cambio de mapa&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Puerta del torreon (exterior): OBJ z=-4 -&amp;gt; mundo y=-400.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;400&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;20000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// radio de disparo ~141&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Puerta de salida (interior): OBJ z=-6 -&amp;gt; mundo y=-600.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;22500&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// radio de disparo ~150&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// NPC dentro de la sala (mismo sitio que NPC(0,500,50)): globo de dialogo al acercarse.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUBBLE_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;160000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// radio del globo ~400&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_HEAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;220&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// punto (mundo) a la altura de la CABEZA: ancla del bocadillo y destino del rabito&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_TOP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// punto (mundo) SOBRE la cabeza: ahi va el nombre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;78&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// semiancho del bocadillo lateral (1 linea de frase)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// semialto del bocadillo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_GAP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// separacion entre el NPC y el bocadillo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// STRUCT de camara del modo 9 (mismos campos que m8). &amp;amp;m9.z = base del struct.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camera&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// resolucion real (la lee la DLL): raton/camara a&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// cualquier resolucion, no solo 320x200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// MAP_OUT / MAP_IN (se muestra como 1 digito arriba-izda)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;LOAD_FPG&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;FPG/MODE9.FPG&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_LOADFPG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;FPG/MODE9.FPG&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MODE9_STEP&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_OUT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// muestra la pantalla de inicio, carga el 3D y juega&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// CAMARA: movimiento (igual que MODE9_04) + INTERCAMBIO DE MAPAS (todo inline).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;camara&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// velocidad de caida (la gravedad la integra el PRG)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 1 si la DLL nos sostiene en un suelo/escalon/rampa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z_fell&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// z tras aplicar la gravedad, ANTES de que la DLL ajuste&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// frames restantes sin poder disparar puertas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;d2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 = globo de dialogo del NPC visible&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_fill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_brd&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_tail&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// bocadillo: elipse rellena, borde, rabito&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_spk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// texto de la frase (dentro del bocadillo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_plate&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_txt&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// placa + nombre, encima del NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bd2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// distancia (al cuadrado) de la camara al NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 = se cumplen las condiciones para ver el globo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// proyeccion de la CABEZA del NPC (MODE9_PROJECT)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// proyeccion del punto SOBRE la cabeza (nombre)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// centro del bocadillo y x del rabito en su borde&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// id del texto &quot;Pulsa una tecla&quot; (parpadeo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;detected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// sondeo de teclas en la pantalla de inicio&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ed_cur&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// dialogo de salida: opcion elegida (1=Si,0=No) y cursor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// =================== PANTALLA DE INICIO (pulsa una tecla) ===============&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Aun no se ha cargado el mundo 3D: es una pantalla 2D normal.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// fondo oscuro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;36&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// marco&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;EL CASTILLO 3D&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;74&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;( Modo 9 - DIV2 )&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;detected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fondo del titulo (graph 14 = TITLEM9.PCX, 320x200).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;put_screen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Esperar a que se pulse cualquier tecla. Se sondea key() de todos los&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// scancodes (estado real &quot;pulsada&quot;), porque scan_code aqui es un pulso de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 frame y se pierde si el sondeo no cae justo en ese frame.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;repeat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;timer&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;138&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Pulsa una tecla&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;until&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scan_code&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Esperar a soltar todas las teclas antes de empezar.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;repeat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;until&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scan_code&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_drawing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;clear_screen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ---------------- CARGA INICIAL: EXTERIOR ----------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_WLD9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CASTLE.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CASTLE.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/STAIRS.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/WATER.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_SKY9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/SKY.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// props del patio (el NPC vive DENTRO, no aqui)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Posicion inicial (uds DIV2): x,y = plano del suelo; z = altura&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// frente al porton (el porton esta en z=-1000)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1500&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// fuera de la muralla, mirando hacia el castillo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// mirando hacia +Z (hacia el porton)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// HUD del juego (se crea aqui, ya pasada la pantalla de inicio).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;WASD+RATON  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- ESC: dialogo 2D de confirmacion &quot;Deseas salir? Si/No&quot; ---------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;STOP_MODE9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// pausa el render 3D&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;put_screen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// soltar ESC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// limpiar HUD/bocadillo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_drawing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 0 = No (por defecto), 1 = Si&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;68&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;132&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// fondo oscuro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;68&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;132&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// marco del panel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;84&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Deseas salir?&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;112&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Si&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;34&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;112&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;No&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ed_cur&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;122&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// cursor en &quot;No&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;repeat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ed_cur&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;122&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ed_cur&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;122&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;until&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sel&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;STOP_MODE9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Bye&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &quot;No&quot;: limpiar dialogo, recrear HUD y reanudar el juego 3D.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;all_drawing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;clear_screen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;WASD+RATON  ESPACIO salto  ESC salir&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;START_MODE9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// soltar intro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// evitar tiron de camara al reanudar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Movimiento lateral (strafe) ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_d&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;xadvance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_a&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;xadvance&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ADV_UNIT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;or&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse_x_prev&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mouse&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ===================== INTERCAMBIO DE MAPAS (INLINE) =================&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_OUT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Pegados a la puerta del torreon? -&amp;gt; ENTRAR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;d2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;d2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;DOOR_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fade_off&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fade_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// descargar props del patio&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Recarga en caliente: el modo 9 sigue ACTIVO y la camara&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// enlazada (id + &amp;amp;m9.z) persiste; LOAD_WLD9 solo cambia la malla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_WLD9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CASTIN.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CASTIN_T.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 material (0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SKY9_OFF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SET_ENV_COLOR9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// el NPC, ahora dentro (sobre el estrado)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;THRONE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;575&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// trono detras del NPC, en el estrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LAMP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// lampara colgando del techo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LAMP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;150&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// lampara colgando del techo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;470&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 4 antorchas en las paredes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;470&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;470&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;470&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;250&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_IN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SWAP_CD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Pegados a la puerta de salida? -&amp;gt; SALIR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;d2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;d2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EXIT_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fade_off&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fade_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// descargar NPC y props de la sala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;THRONE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LAMP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_WLD9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;OBJ/CASTLE.OBJ&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/CASTLE.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/STAIRS.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_MATERIAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/WATER.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;LOAD_SKY9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;MAP/SKY.MAP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9TREE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;650&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;90000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;eye_base&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_OUT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SWAP_CD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ===================== NOMBRE + BOCADILLO (estilo comic) ============&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Se muestra SOLO si: estamos en la sala, CERCA del NPC y MIRANDOLO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// (MODE9_PROJECT devuelve 1 = delante de la camara, y su x cae en pantalla).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   - El NOMBRE (&quot;Nazuma&quot;) va ENCIMA del NPC (sobre su cabeza), sin tapar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//     la cara, con una placa semitransparente para leerse.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   - El BOCADILLO con la frase va a un LADO del NPC; elige IZDA o DCHA&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//     segun donde haya mas sitio (si el NPC esta en la mitad izquierda de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//     la pantalla, el bocadillo va a la derecha, y viceversa). El RABITO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//     sale del lado del bocadillo que mira al NPC.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ambos SIGUEN al NPC (se reposicionan con move_draw/move_text cada frame).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;map_state&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MAP_IN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bd2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)*(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)*(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bd2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUBBLE_R2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_PROJECT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_HEAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// el NPC esta en pantalla -&amp;gt; lo miramos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Punto sobre la cabeza para el nombre (si no proyecta, usa la cabeza).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MODE9_PROJECT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_X&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;NPC_TOP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// que el nombre no se salga por arriba&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Lado del bocadillo segun el espacio disponible en pantalla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_GAP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// NPC a la izda -&amp;gt; bocadillo a la DCHA&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_GAP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// NPC a la dcha -&amp;gt; bocadillo a la IZDA&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// recortar para no salirse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                                            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// a la altura de la cabeza&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;scr_y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Borde del bocadillo que mira al NPC (de ahi sale el rabito).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// draw(tipo, color, opacidad 0..15, region, x0,y0, x1,y1)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_fill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// elipse rellena semitransp.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_brd&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// borde de la elipse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_tail&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                           &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// rabito hacia el NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_spk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Es peligroso andar solo&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_plate&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// placa del nombre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_txt&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Nazuma&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// nombre encima del NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ya existe: solo reposicionar para seguir al NPC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_fill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_brd&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HW&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;BUB_HH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_tail&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;nsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_spk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_plate&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;move_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_txt&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tsy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_fill&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_brd&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_tail&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_plate&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_spk&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;name_txt&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bub_on&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Tras el FRAME la DLL ya pudo SUBIR z (escalon/rampa/apoyo en el suelo).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si z quedo por encima de lo que dejo la gravedad y veniamos cayendo,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// hemos tocado suelo: marcamos grounded y anulamos la velocidad de caida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z_fell&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fall_v&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;grounded&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// SPRITES billboard (estilo modo 7): ctype = c_m9 + coords de MUNDO + graph/size.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Se destruyen con signal(type ..., s_kill) al cambiar de mapa.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;NPC&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;npc_gr&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;xgraph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;npc_gr&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;pi&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;M9SIGN&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Billboards del INTERIOR (graficos id &amp;gt;= 11 en FPG/MODE9.FPG):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   11 = antorcha,  12 = lampara de techo,  13 = trono.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Se crean al entrar a la sala y se destruyen con signal(type ...) al salir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;TORCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;LAMP&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;THRONE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;c_m9&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;400&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;z&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wz&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y así queda en movimiento:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/bERJYczvLg0&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;MODE9_MU.PRG · Bonus: pantalla partida a dos jugadores&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Para rematar, una demo de split-screen. Este ejemplo lo comentaré simplemente por arriba: Se definen dos regiones (mitad superior y mitad inferior de la pantalla) con `MODE9_REGION`, y se arrancan dos cámaras con sus respectivos struct `m9` mediante `START_MODE9(c1, &amp;amp;m9[0].z, 1)` y `START_MODE9(c2, &amp;amp;m9[1].z, 2)`.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cada jugador maneja su cámara (uno con WASD, otro con los cursores) y —detalle bonito— como cada cámara lleva también `ctype = c_m9`, cada jugador ve al otro como un billboard angular (Nazuna para variar) dentro del mundo. Para acabar sólo mencionar que mi Modo 9 admite hasta cuatro vistas simultáneas.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaIPkLmWD5R9s6PaQe88nNTtxu302386UaQcqbwSYBPCPR4xPRtE3OJtvDqaeH5KljUIRdHcH7WELPqZqZu5K4rMlxyLi4_5RHKA2kU8UXgu-Fg5Wuh8IhrlALPS9IEbHgaZ4pCIAo_0T3QmPIHGxSZjkMrEUG_w2SjShysrirxWF6H2_OYhrT/s2784/Captura%20de%20pantalla%202026-06-13%20a%20las%201.34.54.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1880&quot; data-original-width=&quot;2784&quot; height=&quot;432&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaIPkLmWD5R9s6PaQe88nNTtxu302386UaQcqbwSYBPCPR4xPRtE3OJtvDqaeH5KljUIRdHcH7WELPqZqZu5K4rMlxyLi4_5RHKA2kU8UXgu-Fg5Wuh8IhrlALPS9IEbHgaZ4pCIAo_0T3QmPIHGxSZjkMrEUG_w2SjShysrirxWF6H2_OYhrT/w640-h432/Captura%20de%20pantalla%202026-06-13%20a%20las%201.34.54.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Puedes verlo en movimiento en este tuit: &lt;a href=&quot;https://x.com/Hamster_ruso/status/2063713220397801517/video/1&quot;&gt;https://x.com/Hamster_ruso/status/2063713220397801517/video/1&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;La documentación&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Soy consciente de que una librería así no se aprende solo leyendo código, de modo que he generado una ayuda en HTML completa, navegable, con la lista de todas las funciones agrupadas por temas, una guía de &quot;primeros pasos&quot; por etapas (las mismas que los ejemplos), una sección sobre cómo preparar los modelos OBJ y otra con las limitaciones del motor (número máximo de vértices, triángulos, materiales, modelos, billboards, etc.). La tenéis en&lt;b&gt; dos idiomas&lt;/b&gt;: `HELP_MODE9_EN` en inglés y `HELP_MODE9_ES` en castellano. Símplemente descargaros el respositorio github del proyecto y abrid el `index.html` de la carpeta que prefiráis.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBeHYWoI0PATYokMXBc-6pJODYBRmhk78FjvMh2jo3oBpEmHIeKWAR5UFMTwmNZZsH2ef05ZOVRVXaEvgRm4OA0H0VlHg8uDYNVGDzsVuDuE3Pp2B7rPcv9ICsImJKr_Dxfa9E0vmp8lbuJEmlqyly5s_XdFqUqpGJKcoAvIYsJb_4OrvEYik8/s2628/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.22.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1800&quot; data-original-width=&quot;2628&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBeHYWoI0PATYokMXBc-6pJODYBRmhk78FjvMh2jo3oBpEmHIeKWAR5UFMTwmNZZsH2ef05ZOVRVXaEvgRm4OA0H0VlHg8uDYNVGDzsVuDuE3Pp2B7rPcv9ICsImJKr_Dxfa9E0vmp8lbuJEmlqyly5s_XdFqUqpGJKcoAvIYsJb_4OrvEYik8/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.22.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnP84Ly6PNkurh5Fu8xwezVU6sXGAKvQ3EzFaOvlD1jx6PdViA8U7rnXFYQckdJZYljVTv43T7ZKQS-BqyU2wRTVfG3xB5h0ASi8jh0EXJaTLd9OdV_hNPf-k2oD7GmTQEVzbmdQ8nW126wiD6s7wBObWHdpNj5GL0ecPTAqIh9gKUpdTkHEIV/s2628/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.27.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1800&quot; data-original-width=&quot;2628&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnP84Ly6PNkurh5Fu8xwezVU6sXGAKvQ3EzFaOvlD1jx6PdViA8U7rnXFYQckdJZYljVTv43T7ZKQS-BqyU2wRTVfG3xB5h0ASi8jh0EXJaTLd9OdV_hNPf-k2oD7GmTQEVzbmdQ8nW126wiD6s7wBObWHdpNj5GL0ecPTAqIh9gKUpdTkHEIV/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.27.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZzfie3hRX9QQUqvdJJHotAFNPBHmemkuDJTNS0ZreEjznbjv8y25xqMqIa8QiRdOvbF1gIloYj-UzXFr1SpNa8D1bGdAdrN1C68Z-ARDluSvzjYb9PFG2FcdknRGU3MMNf085NLMEs0GLaLteywq4FSyDVM23-KKCw1KlOt5ml336Pg6P1To5/s2628/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.32.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1800&quot; data-original-width=&quot;2628&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZzfie3hRX9QQUqvdJJHotAFNPBHmemkuDJTNS0ZreEjznbjv8y25xqMqIa8QiRdOvbF1gIloYj-UzXFr1SpNa8D1bGdAdrN1C68Z-ARDluSvzjYb9PFG2FcdknRGU3MMNf085NLMEs0GLaLteywq4FSyDVM23-KKCw1KlOt5ml336Pg6P1To5/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.32.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVu2gqr3p65O9fnoupQTqP0-jDmPC-vDkNR5Nr4dllWNvTnJGwzPJmRWmFcKNKNdkBKp9prIP_07aGoCXmSjJvl27pvt3f2U16U_0_i6WUsPJGYDKD9S3rX23y-ae0aZ0wqnNNjypI9IAV8MqwqPS42yGXqDrSXbtDXkeLhyphenhyphen9q10kkIxq9EoSF/s2628/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.35.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1800&quot; data-original-width=&quot;2628&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVu2gqr3p65O9fnoupQTqP0-jDmPC-vDkNR5Nr4dllWNvTnJGwzPJmRWmFcKNKNdkBKp9prIP_07aGoCXmSjJvl27pvt3f2U16U_0_i6WUsPJGYDKD9S3rX23y-ae0aZ0wqnNNjypI9IAV8MqwqPS42yGXqDrSXbtDXkeLhyphenhyphen9q10kkIxq9EoSF/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.35.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6e0-UNrUluVRH_oVD7DiqIEBq-lNGO6_a_adQ1yU9w1z4tM9W3oHUscvUfPhqkBIQWJj3FGkHhKWQOlsvSwm_9LHEAMCwrTS1RpBKVO82gHqzv_TlaHslPq0zjL2jz_aNmL0vTF2NnEj1LUAWnwYs7TjzH12HnypbAtp12K1-GIHpdcHMFgWU/s2628/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.39.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1800&quot; data-original-width=&quot;2628&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6e0-UNrUluVRH_oVD7DiqIEBq-lNGO6_a_adQ1yU9w1z4tM9W3oHUscvUfPhqkBIQWJj3FGkHhKWQOlsvSwm_9LHEAMCwrTS1RpBKVO82gHqzv_TlaHslPq0zjL2jz_aNmL0vTF2NnEj1LUAWnwYs7TjzH12HnypbAtp12K1-GIHpdcHMFgWU/s320/Captura%20de%20pantalla%202026-06-13%20a%20las%201.38.39.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;¿Y ahora qué?&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Me hace especial ilusión este capítulo porque siento que el Modo 9 abre la puerta a un tipo de juego que mucha gente daba por imposible en DIV2. Tenéis la DLL ya compilada en la carpeta `BIN`, lista para usar; los ejemplos y los assets en `EXAMPLES`; y el código fuente en `SRC`.&lt;br /&gt;&lt;br /&gt;Si esta entrada te ha interesado, te dejo el enlace a los capítulos anteriores de la serie sobre DIV2 Games Studio:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2025/06/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Ejemplos sencillos&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/01/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un JRPG (dificultad avanzada)&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/02/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un bullet-hell (dificultad avanzada)&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/05/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un tamagochi&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/06/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Especial DLL&amp;nbsp;&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;Y hasta aquí el ejemplo de hoy. ¡Nos leemos!&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/06/presentando-el-mode9-una-libreria-que.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/975605498082884606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/975605498082884606'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/06/presentando-el-mode9-una-libreria-que.html' title='Presentando el Mode9, una librería que extiende DIV2 Games Studios para cargar objetos y mundos 3D en formato OBJ'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSND7ahWlQCYGlNB-pz73AlmoSNA8mBHnmeSTf26uJ5CIF90NoVfH6ivu4JWeXFBu_jjachdYT9Cv0sP8u_-lsFn5D7z0hyphenhyphenWoluvNBFkSeZIfNAdGJG5cuNmWYhr7yd9aOBvdN7TTrBR92xsUfHoJzvDy8mq_rP5Jf01mdzLLQdzwdSZFlbf2M/s72-w320-h216-c/Captura%20de%20pantalla%202026-06-13%20a%20las%201.44.39.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-7076092686078994252</id><published>2026-06-11T02:00:00.000+02:00</published><updated>2026-06-11T11:18:01.131+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><title type='text'>¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? Especial librerías DLL</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Hoy os presento un nuevo capítulo sobre DIV2 Games Studio, un entorno de programación de videojuegos para MS-DOS lanzado 
en 1999 (y su precuela un año antes) y que fue bastante popular en España, debido, entre otras cosas, a que se comercializó en quioscos a un precio bastante asequible (2.995 pesetas, unos 18€ de la época). Venía con un CD de instalación, un manual de usuario del tamaño de un diccionario y muchos ejemplos de código fuente. Su comunidad llegó a ser tan grande que incluso llegó a comercializarse una revista bimestral especializada en este framework: DIVmanía.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;El capítulo de hoy quería dedicarlo a una funcionalidad que pasa bastante desapercibida tanto en DIV como en DIV2 y es el uso de ficheros DLL: Unas librerías externas, generalmente programadas en lenguaje C/C++, que en el caso de DIV Games Studio permiten añadir toda clase de efectos y funcionalidades extra e, incluso, expandir el propio lenguaje.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; El objetivo de esta entrada no es detallar al milímetro cómo funcionan las DLL en DIV y DIV2 o pasear por el código fuente de los ejemplos, si no más bien recordaros que existen, mostraros qué permiten hacer cuando tienes mañana con el lenguaje C y dar varias píldoras acerca de su funcionamiento.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Para empezar, varios matices:&lt;/p&gt;&lt;ol style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;En mi GitHub encontraréis las librerías de ejemplo de esta entrada, así como su código fuente (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/DLL&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/DLL&lt;/a&gt;, carpetas bin y src).&lt;/li&gt;&lt;li&gt;En la mayoría de DLL que 
veremos a continuación, comparto también un fichero PRG de ejemplo para que pruebes cómo funcionan&amp;nbsp;&lt;a href=&quot;(https://github.com/LeHamsterRuso/DIV2Examples/tree/main/PRG/DLL&quot;&gt;(https://github.com/LeHamsterRuso/DIV2Examples/tree/main/PRG/DLL&lt;/a&gt;).&amp;nbsp;&lt;/li&gt;&lt;li&gt;Las librerías de DIV1 no funcionan en DIV2 y viceversa. Las librerías de esta entrada sólo funcionan en DIV2.&lt;/li&gt;&lt;li&gt;DIV y DIV2 no permiten hacer uso de varias DLL, pero como paliativo sí que podemos hacer un CPP (fichero de código fuente en C++) que haga uso de varios CPP, por lo que puedes bypasear este punto si dispones del código fuente de las librerías que quieres usar.&lt;/li&gt;&lt;li&gt;Sólo he conseguido que mis librerías funcionen en DIV complicándolas con Watcom 10.6, un compilador de C/C++ de 1996. Lo he intentado con Open Watcom (alternativa libre y multiplataforma), pero las DLL que me generaba no eran idénticas y crasheaban al arrancar los juegos. Esto se debe a que el arranque de la DLL depende de símbolos que el runtime de Watcom 10.6 inyecta (main_entry_, la raíz de constructores C++); con OpenWatcom esos símbolos no salen idénticos y el loader de DIV32RUN no los reconoce.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;¿Cómo hacemos que un juego utilice una DLL?&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; No es complicado, basta con copiar la DLL en la carpeta DLL e indicarle en el PRG que tiene que importarla:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjwHSodr8KqNVlLRKztld_EJPttVlGIvRA5ooK5prQ8a3Csf4frZ5J6r-G1GTvRludBhYdM7u9iEca2jABj2tugUxt56ivt2zqPXpNs1swBIgAwaYucgVgcE-meUpeisu-VYyBxy7H7AoC28XDrMEJXP_lh21jZKYuorH7XgzntZY5c7pe4X3n/s1504/IMPORT.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjwHSodr8KqNVlLRKztld_EJPttVlGIvRA5ooK5prQ8a3Csf4frZ5J6r-G1GTvRludBhYdM7u9iEca2jABj2tugUxt56ivt2zqPXpNs1swBIgAwaYucgVgcE-meUpeisu-VYyBxy7H7AoC28XDrMEJXP_lh21jZKYuorH7XgzntZY5c7pe4X3n/w640-h528/IMPORT.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Nota: Que sepas que da igual si especificas o no la carpeta &quot;DLL&quot; en el import, DIV buscará las librerías directamente ahí, pero no dará error si lo especificas.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Con todo ello, pasemos a los ejemplos y luego veamos más en detalle a la parte técnica.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Los ejemplos de mi GitHub:&lt;/h2&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;HUD.DLL (+ HUDTEST.PRG)&lt;/h4&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh57UuihB0seASxyYQRwOnF_MWOEwkcjlHgnobAUDyMbi_SZZ2oupzQ6GfqJ0KRRuSCQgf0h28gM3MqIXGunN5kpw7Mw-ECOuI7NaIcRVqIoROHAwm5vxpaiiPVioP1Zl8iJhx-CYkhJ_DYOEsqsKyPliRwzhr5rpW_JNM3U0FP1JNSgxW1yvjr/s1504/Hud.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh57UuihB0seASxyYQRwOnF_MWOEwkcjlHgnobAUDyMbi_SZZ2oupzQ6GfqJ0KRRuSCQgf0h28gM3MqIXGunN5kpw7Mw-ECOuI7NaIcRVqIoROHAwm5vxpaiiPVioP1Zl8iJhx-CYkhJ_DYOEsqsKyPliRwzhr5rpW_JNM3U0FP1JNSgxW1yvjr/w640-h460/Hud.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Se trata de una DLL sencilla que únicamente muestra por pantalla los frames por segundo reales, la resolución de pantalla utilizada, el consumo de memoria de nuestro juego y una marca de agua (texto de copyright) en la esquina inferior derecha. La idea de esta DLL es utilizarla para degubuear el consumo de nuestro juego, midiendo el rendimiento de este o detectando posibles leaks de memoria.&amp;nbsp;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;CRT.DLL (+ CRTDEMO.PRG)&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzvw5pZYd6nIAjlzt5-hDCcAaQ1CmnJLsjpFaadiSPZqOnQgWiRe-eBTP4GWIObiOLG0qRRM3WM424WRJRYp8OOmkpoaqCg3qMo_SfithlfIs_f7SlrIenGFehCyeVXIq8BE6wPKkqLMS5kEH8cVv5Rmgf4YD6uRRfv6_Q2e_2sM4Eh7BzDhtT/s1504/CRT1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzvw5pZYd6nIAjlzt5-hDCcAaQ1CmnJLsjpFaadiSPZqOnQgWiRe-eBTP4GWIObiOLG0qRRM3WM424WRJRYp8OOmkpoaqCg3qMo_SfithlfIs_f7SlrIenGFehCyeVXIq8BE6wPKkqLMS5kEH8cVv5Rmgf4YD6uRRfv6_Q2e_2sM4Eh7BzDhtT/w640-h460/CRT1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqrRQQ70sibTCSqJsDymrzgMGW_0os3oXIP4Lz7q6qhfpwFGa6O1EjWHamj0ZkJ5fefLbSWCWhfIzq8ft2EDhy05ktUOlx1yl-0Pbjcl75_mPyK6HcSse6c9iCRrtWorB-wmPdJvIgkG6Qqs_8XWmT5w4PWaPgbhywoiBUccnsVDV3x_lPAEZc/s1504/CRT2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqrRQQ70sibTCSqJsDymrzgMGW_0os3oXIP4Lz7q6qhfpwFGa6O1EjWHamj0ZkJ5fefLbSWCWhfIzq8ft2EDhy05ktUOlx1yl-0Pbjcl75_mPyK6HcSse6c9iCRrtWorB-wmPdJvIgkG6Qqs_8XWmT5w4PWaPgbhywoiBUccnsVDV3x_lPAEZc/w640-h460/CRT2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKS79gmzU_NtgxTh5sy7imD4fy2vXFdrVOJrfOGtkBaJQ9tHoD3P65VuZTA58k-6NsI6hYnI9BH-6AmYncL53pf4KT41ltxVYImI-JQj5DV1sDeFoOTIsRC11KJe8u-Aya7c103CAjDwlslAEbjWXnd3iKv8ynTL4jg-taSeOLHyRxD1pWrr4M/s1504/CRT3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKS79gmzU_NtgxTh5sy7imD4fy2vXFdrVOJrfOGtkBaJQ9tHoD3P65VuZTA58k-6NsI6hYnI9BH-6AmYncL53pf4KT41ltxVYImI-JQj5DV1sDeFoOTIsRC11KJe8u-Aya7c103CAjDwlslAEbjWXnd3iKv8ynTL4jg-taSeOLHyRxD1pWrr4M/w640-h460/CRT3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Como su nombre da a entender, añade un filtro de scanlines para simular un monitor CRT. En este tuit puedes verlo en movimiento: &lt;a href=&quot;https://x.com/Hamster_ruso/status/2062268417197933052/video/1&quot;&gt;https://x.com/Hamster_ruso/status/2062268417197933052/video/1&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;WIPE.DLL (+ WIPEDEMO.PRG)&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4twVW55Br5qRI0Euw1b_H4Fos_e6F723y_mvCqRnb3Ps9r0LgIzl8VlYD1C6cx-Unb7qLVqollWVIxtQuyhKObzt-UUSJAVmd7s88a3yuIjIRve_klik9yuOlRpn_l-ziDuRh5tYqXdEl1KyZZqlryoruhIE9XKc9C9sbvxKZ2oaKMfbccB0t/s1504/Transicion1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4twVW55Br5qRI0Euw1b_H4Fos_e6F723y_mvCqRnb3Ps9r0LgIzl8VlYD1C6cx-Unb7qLVqollWVIxtQuyhKObzt-UUSJAVmd7s88a3yuIjIRve_klik9yuOlRpn_l-ziDuRh5tYqXdEl1KyZZqlryoruhIE9XKc9C9sbvxKZ2oaKMfbccB0t/w640-h460/Transicion1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAxTPlg3Jg0JO53sO5htPaF-S5LkL2PnD4LO8Gu4WZ68_bF-hjz44qxkdMxJg1NHw0a8IsY3lYuFsV9Q4htngss45Bh7WPgniWsUWB4B-Css1R7FQ4EcOQwcjfsPegeyfV7FhPZ5Z3Oxb4IGfsQxZFCbOgdsJLqonOIkmkBif7p7ybJ2ll8R22/s1504/Transicion2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAxTPlg3Jg0JO53sO5htPaF-S5LkL2PnD4LO8Gu4WZ68_bF-hjz44qxkdMxJg1NHw0a8IsY3lYuFsV9Q4htngss45Bh7WPgniWsUWB4B-Css1R7FQ4EcOQwcjfsPegeyfV7FhPZ5Z3Oxb4IGfsQxZFCbOgdsJLqonOIkmkBif7p7ybJ2ll8R22/w640-h460/Transicion2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Crea efectos de transición, útil para el tránsito entre pantallas. En el PRG de ejemplo se activan pulsando &quot;Espacio&quot;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;KEYDISP.DLL&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWazGBxeb4rVepeKKDjzMrMcSDPTSO4uT6iWTsz08yvvsMtkX6KOz3Tf8aZnfhA9EkDXrBiMPPyf4bdS0wdNd4op8CJxMhp-WiG6yRXJFH4zyGOR2wDOZKQUe9mJI5ZSx1t2fy5bMGo6HBqmkHnKtiGLVZL_VvDGQ1dXVLubWnGC6VdYsAPDz3/s1504/Key1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWazGBxeb4rVepeKKDjzMrMcSDPTSO4uT6iWTsz08yvvsMtkX6KOz3Tf8aZnfhA9EkDXrBiMPPyf4bdS0wdNd4op8CJxMhp-WiG6yRXJFH4zyGOR2wDOZKQUe9mJI5ZSx1t2fy5bMGo6HBqmkHnKtiGLVZL_VvDGQ1dXVLubWnGC6VdYsAPDz3/w640-h460/Key1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiGLB5ZgTcMwrZdh6JQIRy19U25R7ABTUphzPz2uvDO6h1G9XOLw4P6YjLhyL0jUMdfdRTAMRUWqPwA5-Onq2iK10dzEP1abCgFpl6jybfb26YBA2tfgUK6_wK8vmy23AIwQ44bldWpWVSuVZdfv9EsyQfV5CJxprBfHcJGBrI5gPogW-IMUrR/s1504/key2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiGLB5ZgTcMwrZdh6JQIRy19U25R7ABTUphzPz2uvDO6h1G9XOLw4P6YjLhyL0jUMdfdRTAMRUWqPwA5-Onq2iK10dzEP1abCgFpl6jybfb26YBA2tfgUK6_wK8vmy23AIwQ44bldWpWVSuVZdfv9EsyQfV5CJxprBfHcJGBrI5gPogW-IMUrR/w640-h460/key2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Muestra un teclado en la esquina inferior izquierda y dibuja las teclas que estamos pulsando mientras jugamos.&amp;nbsp;Para este ejemplo no he escrito un PRG, pero puedes probarlo con &quot;MALVADO.PRG&quot; (uno de los ejemplos míticos de DIV/DIV2).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;PLASMA.DLL (+PLASMADE.PRG)&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilQ_yCC8LcDOO0faiBD7LXuL9F8ZrSUBSp0clptSWyOJMhYF_AO6XNxnsZJ26vxBG_FvLB2olLSG3yfO3qpVl5bwUZN_D_TvmBrqnSeM7BbbQhYm8RtmeXa_TOHXSI0o-IPlVHQNxM8_z6uBR0aHELXKie0cqlX-9xVMi-0tr1o7sqotpOmn_R/s1504/Plasma.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilQ_yCC8LcDOO0faiBD7LXuL9F8ZrSUBSp0clptSWyOJMhYF_AO6XNxnsZJ26vxBG_FvLB2olLSG3yfO3qpVl5bwUZN_D_TvmBrqnSeM7BbbQhYm8RtmeXa_TOHXSI0o-IPlVHQNxM8_z6uBR0aHELXKie0cqlX-9xVMi-0tr1o7sqotpOmn_R/w640-h460/Plasma.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Una animación que simula el movimiento de una lámpara de lava.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;SAVESTAT.DLL&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpN6HxCrDBWTTK3omqNxLPgRSoVDWqbmREQ7bhwRCUMLyDf9mq6DO2sL9DrkPthzkOiN8xTGUmvFHb8YvoOQgChiXizXGH4FXxig-RIcjUqALEkjFBFjnwGXIChAfXvSDYbh6rA0RCNoEhzgYTAkSifUF_9c58W6dw8KFv-aboKMnuTSba-Zv/s1504/save1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpN6HxCrDBWTTK3omqNxLPgRSoVDWqbmREQ7bhwRCUMLyDf9mq6DO2sL9DrkPthzkOiN8xTGUmvFHb8YvoOQgChiXizXGH4FXxig-RIcjUqALEkjFBFjnwGXIChAfXvSDYbh6rA0RCNoEhzgYTAkSifUF_9c58W6dw8KFv-aboKMnuTSba-Zv/w640-h460/save1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5gwIa6qga21G6GJAPszwyl-D3lJapSX9I7e63idM3fmDg7CNFabmrxgvd_shAKeonK68nYVOayYQhNij3OizgVK4khlnO1GSMH0-bSxnMs1IAnz6lUAHV4Rme8s2PVxER5lLHVj6Pam4kEQ-2hhSYxThMW7EkgQUsbQqVXRqHvrqsbFYXrpj-/s1504/save2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5gwIa6qga21G6GJAPszwyl-D3lJapSX9I7e63idM3fmDg7CNFabmrxgvd_shAKeonK68nYVOayYQhNij3OizgVK4khlnO1GSMH0-bSxnMs1IAnz6lUAHV4Rme8s2PVxER5lLHVj6Pam4kEQ-2hhSYxThMW7EkgQUsbQqVXRqHvrqsbFYXrpj-/w640-h460/save2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Guarda los estados de un juego para después volver a cargarlos. Es similar a las funciones de save/load states de los emuladores: Vuelca el contenido de la memoria de los procesos a un fichero &quot;SSX.SAV&quot; y después los puedes cargar. Los botones F1 a F5 guardan, mientras que los botones F6 a F10 cargan. Para este ejemplo no he escrito un PRG, pero puedes probarlo con &quot;MALVADO.PRG&quot; (uno de los ejemplos míticos de DIV/DIV2). Nota: Es bastante inestable, lo comparto como prueba de concepto.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En este tuit puedes verlo en movimiento: &lt;a href=&quot;https://x.com/Hamster_ruso/status/2062264865318719979/video/1&quot;&gt;https://x.com/Hamster_ruso/status/2062264865318719979/video/1&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;KD3D.DLL (+ 3D_01.PRG y 3D_02.PRG)&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpPULtTOW7AvtgKQ-ffXAFWc4bHUJ-Zx_hPGcjtzd9y-wM3GF0IeQOyiqeg4UOSzSzV2iSf27nI8_gUYazbQ4ZHAcLYyEFlCKo73FqkiEHT239t9ISDzTQB7UethctdCg-6DdbxTCE-QU3Xf_rGtd2g3X8a0TLRoP41C4mVNf6DkSJnLjCKc8F/s1504/KD3D.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpPULtTOW7AvtgKQ-ffXAFWc4bHUJ-Zx_hPGcjtzd9y-wM3GF0IeQOyiqeg4UOSzSzV2iSf27nI8_gUYazbQ4ZHAcLYyEFlCKo73FqkiEHT239t9ISDzTQB7UethctdCg-6DdbxTCE-QU3Xf_rGtd2g3X8a0TLRoP41C4mVNf6DkSJnLjCKc8F/w640-h460/KD3D.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Carga un objeto 3D en formato OBJ. Sí, esto es 3D real en DIV2 Games Studio, renderizado por CPU. El personaje ha sido creado usando Blender. Se trata de una versión lowpoly de un modelo que hice en 2021 (&lt;a href=&quot;https://sketchfab.com/3d-models/ankha-zone-version-37819f223f26467e8b3247e83b507805&quot;&gt;https://sketchfab.com/3d-models/ankha-zone-version-37819f223f26467e8b3247e83b507805&lt;/a&gt;)&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-weight: normal;&quot;&gt;En este tuit puedes verlo en movimiento: &lt;a href=&quot;https://x.com/Hamster_ruso/status/2062650483286618492/video/1&quot;&gt;https://x.com/Hamster_ruso/status/2062650483286618492/video/1&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/h3&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;KD3DT.DLL (+ 3D_03.PRG)&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzw48vVmJoZ2CDjwy9bZWRlLtGXvi-7WKMkkFfJj_Nefi1k6b0h99EU8WN3D6rORHJ07EHXKQmB1akIR4vUMDtbf_CpHR8JEXRk6ignfKVnbVlkgaepr4nRMiqbxf4ea3OQTEsu93iiG6ySNWusXaVNz2X3MB3O-ptTo9hNlMrk-h-W0grrhRY/s1504/KD3DT.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzw48vVmJoZ2CDjwy9bZWRlLtGXvi-7WKMkkFfJj_Nefi1k6b0h99EU8WN3D6rORHJ07EHXKQmB1akIR4vUMDtbf_CpHR8JEXRk6ignfKVnbVlkgaepr4nRMiqbxf4ea3OQTEsu93iiG6ySNWusXaVNz2X3MB3O-ptTo9hNlMrk-h-W0grrhRY/w640-h460/KD3DT.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Carga un objeto 3D en formato OBJ y le aplica una textura. En este tuit puedes verlo en movimiento: &lt;a href=&quot;https://x.com/Hamster_ruso/status/2063003682799603803/video/1&quot;&gt;https://x.com/Hamster_ruso/status/2063003682799603803/video/1&lt;/a&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;¿Cómo funcionan las DLL en DIV Games Studio 2?&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;El concepto&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; DIV Games Studio se compone de dos partes: el lenguaje DIV (con el que escribes tus juegos) y DIV32RUN, el módulo interno que contiene todas las rutinas reales del motor (vídeo, procesos, paleta, sonido, etc.). Una DLL es un trozo de código en C/C++ que se &quot;fusiona&quot; con el juego en tiempo de ejecución y que puede llamar a las funciones internas de DIV32RUN y manipular sus variables directamente en memoria.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; En la práctica, una DLL sirve para dos cosas: extender el lenguaje con funciones nuevas que no existen en DIV, o modificar/sustituir el funcionamiento interno del motor (rutinas de vídeo, efectos, comportamiento de los procesos…).&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;El puente: DIV.H, importar y exportar&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Toda DLL de DIV incluye la cabecera DIV.H, que es el contrato entre tu código y el motor. El truco central es que DIV no expone una API por copia de datos, sino punteros a sus propias variables internas. La DLL los &quot;pide&quot; con DIV_import(&quot;nombre&quot;) y el macro GLOBAL_IMPORT() los resuelve todos de golpe en la inicialización:&lt;/p&gt;&lt;ol style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Memoria del intérprete: mem[] (toda la memoria de los programas DIV), stack[] y sp (la pila por la que viajan los parámetros).&lt;/li&gt;&lt;li&gt;Vídeo: punteros directos a buffer, background y ghost, más anchura/altura y la paleta de colores.&lt;/li&gt;&lt;li&gt;Estructuras del lenguaje mapeadas sobre mem[] mediante offsets calculados: MOUSE, SCROLL, M7, M8, JOY, SETUP, NET, FILEINFO… y variables globales como fps, timer(), scan_code, ascii, etc.&lt;/li&gt;&lt;li&gt;La lista de procesos: id_offset, id_init_offset, process_size… que permiten recorrer y modificar cualquier proceso vivo (su x, y, graph, angle, flags…).&lt;/li&gt;&lt;li&gt;La comunicación es bidireccional: tú importas cosas de DIV con DIV_import, y le entregas tus funciones con DIV_export (o COM_export para funciones del lenguaje). Además de importar variables, DIV exporta un par de funciones de ayuda: div_rand(min,max) (números aleatorios) y div_text_out(texto,x,y) (escribir en pantalla). Es un detalle simpático que muestra que la relación es bidireccional.&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Ejemplo de DLL mínima funcional, lo único que hace es dibujar una línea en pantalla:&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;GLOBALS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;div.h&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mindll_ok&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;g_import&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;)(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #ffa657;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  (*&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;g_export&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;)(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #ffa657;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #ffa657;&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribe una línea de píxeles (color 2 de la paleta cargada) en la fila 10 del buffer,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;post_process_buffer&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mindll_ok&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; (wide &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; height &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; buffer &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; wide;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; wide; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// No hace nada, sólo devuelve 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;__export&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;divlibrary&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(LIBRARY_PARAMS) &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;{}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Exporta post_process_buffer para que DIV2 lo llame después de cada frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; __export &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;divmain&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(COMMON_PARAMS) &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    g_import &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt; DIV_import;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    g_export &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt; DIV_export;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;DIV_import&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;g_import&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;DIV_export&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;g_export&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;AutoLoad&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;GLOBAL_IMPORT&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    mindll_ok &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;DIV_export&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;post_process_buffer&quot;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;, post_process_buffer);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#undef&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; DIV_import&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#undef&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; DIV_export&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// No hace nada, sólo devuelve 0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;__export&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;divend&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(COMMON_PARAMS) &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;    mindll_ok &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Los tres tipos de DLL&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;1. Salvapantallas (ej. DEMO0.CPP, SS1.CPP, ejemplos presentes en el disco de DIV2)&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Defines ss_init(), ss_frame() y ss_end(). DIV las llama tras un tiempo de inactividad (ss_time). En ss_frame() operas sobre el buffer de vídeo antes de cada volcado. Se controla con ss_status y se sale poniendo ss_exit=1.&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#define&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;GLOBALS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;#include&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;div.h&quot;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;ss_init&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt; // Funcion de inicializacion del salvapantallas.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  ss_time&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1500&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt; // Llamar al salvapantallas tras 15 segundos de inactividad.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;ss_frame&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt; // Pone &quot;wide&quot; puntos en negro, aleatoriamente.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;   // HAZ LA MAGIA AQUI&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;__export&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;divmain&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;(COMMON_PARAMS) &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;AutoLoad&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;GLOBAL_IMPORT&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;DIV_export&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;ss_init&quot;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;,ss_init);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;DIV_export&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;ss_frame&quot;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;,ss_frame);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;2. DLL de autocarga (ej. DEMO1.CPP, AGUA.CPP, HBOY.CPP, ejemplos presentes en el disco de DIV2)&lt;/h4&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Llaman a AutoLoad() dentro de divmain() y se activan solas con solo copiarlas al directorio del juego (o junto a D.EXE). Su poder está en los &quot;Entry-Points&quot; estándar: funciones con nombre fijo que DIV invoca en momentos concretos de su ciclo si las defines.&amp;nbsp;Aquí es donde una DLL puede reemplazar partes del motor sin que el juego DIV se entere.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Las más jugosas: set_video_mode, process_palette, process_active_palette, process_fpg / process_map / process_fnt / process_sound (modificar recursos al cargarlos), background_to_buffer, buffer_to_video (sustituir el volcado de pantalla), post_process_scroll, post_process_m7, post_process_buffer (aplicar efectos a cada ventana), post_process (tocar las variables de los procesos cada frame), put_sprite (interceptar el dibujado de sprites)...&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;3. DLL de funciones (ej. DEMO2.CPP, PARTS.CPP)&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; Añaden comandos nuevos al lenguaje. Defines divlibrary() y dentro haces un COM_export(&quot;NOMBRE&quot;, puntero, nº_parámetros) por cada función. Dentro de cada función lees los parámetros con getparm() y obligatoriamente devuelves con retval() (siempre, aunque no retornes nada útil). Desde el juego se usan tras un IMPORT &quot;ruta\nombre.dll&quot;;.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; Conviene decir que también necesitan divmain() con GLOBAL_IMPORT() además de divlibrary() - se ve en DEMO2.CPP.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Reglas que hay que respetar (lo que NO se puede/debe hacer)&lt;/h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Está absolutamente prohibido usar malloc/free/fopen/fclose estándar. Hay que usar div_malloc, div_free, div_fopen, div_fclose (se comportan igual pero pasan por el gestor de memoria de DIV; usar las de C corrompe el estado).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;El retval() es obligatorio en toda función del lenguaje, y hay que hacer un getparm() por cada parámetro declarado, o se descuadra la pila.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;En el módulo principal hay que poner #define GLOBALS antes de #include &quot;div.h&quot; (define realmente las variables; el resto de fuentes las ven como extern). Esto permite repartir una DLL en varios .cpp.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Las funciones de arranque/cierre (divmain/divend/divlibrary) van marcadas con __export.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;No se pueden importar DLL de otros lenguajes: el formato y el ABI son específicos de DIV.&lt;/li&gt;&lt;li&gt;Sí puedes usar el resto de la librería estándar de C (math.h, etc.) con normalidad.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;La parte técnica peculiar&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; DIV usa el formato de DLL de Windows NT aunque corre en DOS. Las DLL se construían con el Watcom C++ 10.6 original, añadiendo la directiva format windows nt dll al enlazador. ¿Implica esto que necesitas un Windows o un MS-DOS especial para compilar estas librerías? No necesariamente, en mi caso para compilarlas desde macOS ejecuto el toolchain de Watcom vía Wine en un contenedor Docker que contiene una imagen liviana de Linux.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Si esta entrada te ha interesado, te dejo el enlace a los capítulos anteriores:&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2025/06/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Ejemplos sencillos&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/01/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un JRPG (dificultad avanzada)&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/02/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un bullet-hell (dificultad avanzada)&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/05/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;Programando un tamagochi&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/06/aprendiendo-programar-para-ms-dos-con.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/7076092686078994252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/7076092686078994252'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/06/aprendiendo-programar-para-ms-dos-con.html' title='¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? Especial librerías DLL'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjwHSodr8KqNVlLRKztld_EJPttVlGIvRA5ooK5prQ8a3Csf4frZ5J6r-G1GTvRludBhYdM7u9iEca2jABj2tugUxt56ivt2zqPXpNs1swBIgAwaYucgVgcE-meUpeisu-VYyBxy7H7AoC28XDrMEJXP_lh21jZKYuorH7XgzntZY5c7pe4X3n/s72-w640-h528-c/IMPORT.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-2370461612372944926</id><published>2026-05-30T22:19:56.212+02:00</published><updated>2026-05-31T10:22:09.217+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aisha"/><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><title type='text'>¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un tamagotchi! (capítulo 4)</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOseQuAsEX7pjEwJH68S5Z-fpRzc1ZDQ2L6S3tOvMspQq3qn2Bd1gfcI3E6Bcebr3IbqcFTePYCY0C5Nv81FQ2P8vEtxuGjra7iT_ZDetyfxaDC8Qd8zkN-UZXRbdyhGWCyCqS27ezsLkBnFYSUUbEPKiQoj_pBPBXjGZXnB0t_tuEhXs0wKRD/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2022.01.54.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOseQuAsEX7pjEwJH68S5Z-fpRzc1ZDQ2L6S3tOvMspQq3qn2Bd1gfcI3E6Bcebr3IbqcFTePYCY0C5Nv81FQ2P8vEtxuGjra7iT_ZDetyfxaDC8Qd8zkN-UZXRbdyhGWCyCqS27ezsLkBnFYSUUbEPKiQoj_pBPBXjGZXnB0t_tuEhXs0wKRD/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2022.01.54.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Han pasado varios veces desde la última entrada que hice sobre Div Games Studio y hoy os presento algo sencillo de hacer, un Tamagochi protagonizado por Aisha Clanclan, una oficial del universo de&amp;nbsp; Outlaw Star&amp;nbsp;perteneciente a la raza alienígena Ctarl-Ctarl, conocida por su fuerza sobrehumana, su gran ego y su capacidad de transformarse parcialmente en bestia.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Si eres nuevo, o no estás familiarizado con Div Games Studio, se trata de un entorno de programación de videojuegos para MS-DOS lanzado en 1998. Este lenguaje de programación es procedural, no orientado a objetos, y ofrece numerosas características atractivas para su época, tales como el uso de estructuras, punteros, reserva dinámica de memoria (con malloc/free) y una curva de aprendizaje relativamente sencilla. De hecho, mucha gente aprendió a programar con este lenguaje en España y se hizo tan popular a finales de los 90 que incluso llegaron a comercializarse revistas comerciales dedicados a este framework. Si te interesa, te dejo el enlace a los capítulos anteriores (&lt;a href=&quot;https://www.elgeneralfailure.com/2025/06/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;1 ejemplos sencillos&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/01/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;2 JRPG&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;https://www.elgeneralfailure.com/2026/02/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;3 bullet-hell&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En lo que respecta a los Tamagochi, si analizamos su lógica veremos que, en función del tiempo, sus estados van cambiando (pasan hambre, se ensucian, enferman, etc) e incluso pueden llegar a evolucionar en función de cómo les cuidamos. Ahora bien, esto supone un reto en Div debido a que carece de funciones básicas para obtener la fecha del sistema. Es decir, el lenguaje carece de algo tan básico como un &quot;get_date&quot;, &quot;get_hour&quot; o cualquier tipo de función que sirva para saber qué día es hoy o qué hora tiene el ordenador.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Para contornar este tipo de limitaciones, los desarrolladores en Div solemos estudiar dos opciones:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Crear una librería DLL en lenguaje C para poder expandir Div (si os fijáis en la carpeta DLL del framework se muestran ejemplos de librerías &lt;a href=&quot;https://vii1.github.io/DIV2Help/1014.html&quot;&gt;https://vii1.github.io/DIV2Help/1014.html&lt;/a&gt;).&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Hacer uso del comando system (&lt;a href=&quot;https://vii1.github.io/DIV2Help/168.html&quot;&gt;https://vii1.github.io/DIV2Help/168.html&lt;/a&gt;) que permite lanzar comandos por CMD y capturar el resultado.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;El inconveniente de crear una DLL es que acabas añadiendo una capa más de complejidad a tu código y hacer una llamada system tampoco es que sea la panacea, puesto que los comandos que funcionan MS-DOS no tienen por qué existir o comportarse igual en DOSBox o similares. Siendo sinceros, de las dos opciones la que más me gusta es la de la DLL.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;No obstante, opté por una tercera vía: Crear ficheros temporales en tiempo de ejecución. Y es que,&amp;nbsp; aunque DIV no tenga funciones para manejar la fecha del sistema, sí que nos permite obtener la fecha de creación y de modificación de un fichero. Con esa premisa, podemos crear un fichero y consultar su fecha de creación para saber qué fecha y hora tiene el sistema operativo... Lo cual resulta terriblemente más sencillo que crearte una librería en C o hacer invocaciones dudosas con la instrucción system. Por cierto, estos ejemplos los podéis consultar desde mi GitHub (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/&lt;/a&gt;):&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA01.PRG - Tutorial: Obtener Hora del Sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       13/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Primer ejemplo de un tutorial sobre cómo crear un juego de mascota virtual en MS-DOS.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Este ejemplo muestra cómo obtener la hora actual del sistema operativo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// NOTA:        El programa crea un archivo temporal para obtener la fecha y hora de modificación,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              que representa la hora actual. Presiona ESC para salir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Código y comentarios en castellano para facilitar la comprensión.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;nombre_fichero&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;test.tmp&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;permisos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dato&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_fichero&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;nombre_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;permisos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;get_fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;nombre_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fecha de última modificación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;day&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// día&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;month&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// mes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;year&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// año&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Hora de última modificación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hour&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// minuto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;90&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;70&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sec&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Bucle para mantener el programa abierto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_ESC&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Bye&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Con esa premisa, ya podemos empezar a hacer algo básico: Mostrar a Aisha de fondo, un hud con la información de su estado y dibujar una botonera con la opción de Salir.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-aDeDxYqIH1waZ-B6-Wkm0XA_c4zKi3sfKHZCQrRMcwOK9b-kWG4MUN7t6kL6cao561VczQ_NT_Yg8C4-hVIufmEhzm9QiBnXS2NnxY1LfK4ZrCoSHL5QpkZOoJ6_fAoJ-o_qpL7mkov5m1HKf5_Lq4OZHzFUdg3VT3UgiTxjeLjavpo5kqR/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.22.26.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-aDeDxYqIH1waZ-B6-Wkm0XA_c4zKi3sfKHZCQrRMcwOK9b-kWG4MUN7t6kL6cao561VczQ_NT_Yg8C4-hVIufmEhzm9QiBnXS2NnxY1LfK4ZrCoSHL5QpkZOoJ6_fAoJ-o_qpL7mkov5m1HKf5_Lq4OZHzFUdg3VT3UgiTxjeLjavpo5kqR/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.22.26.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como veréis a continuación, el código no tiene mucho misterio:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Hacemos uso de una serie de constantes para mantener el hud organizado y memorizar los ID de los gráficos para Aisha y para el marco de la botonera.&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Al arrancar el programa recuperamos la hora con get_hora(), que lo que hará será crear el fichero temporal, consultar la hora y fecha de creación y almacenará los datos de la fecha en una estructura llamada reloj.&lt;/li&gt;&lt;ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;El código en si no es lioso, la única parte realmente complicada es todo el formateo de la fecha, para calcular correctamente los años bisiestos.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Llamaremos a mostrar_mascota() para dibujar a Aisha, mostrar_hud() para dibujar la información del estado de Aisha y mostrar_comandos() para dibujar las interacciones que podemos tener (por ahora sólo podemos &quot;salir&quot; del juego.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA02A.PRG - Versión funcional&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       13/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Segundo ejemplo de un tutorial sobre cómo crear un juego de mascota virtual en MS-DOS.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Muestra una interfaz gráfica simple:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - HUD superior: stats (Hambre, Felicidad, Disciplina)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - CG central: imagen de Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Muestra el texto inferior: &quot;Salir&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// w = escritura, r = lectura, a = append (añadir al final)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID de los gráficos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico que muestra a Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del marco del cuadro de dilálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índices para HUD, recorremos un bucle para mostrar los textos en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Hambre:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Felicidad:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Disc:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_COUNT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Número total de labels del HUD (fin del bucle)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índices para los textos del reloj,  recorremos un bucle para mostrar los textos en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;Hora:&#39; antes de la hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;:&#39; entre horas y minutos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;:&#39; entre minutos y segundos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;Fecha:&#39; antes de la fecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;/&#39; entre día y mes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// &#39;/&#39; entre mes y año&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_COUNT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Número total de labels del reloj (fin del bucle)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Indice para los valoress del reloj, recorremos un bucle para mostrar los valores en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir la hora (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir los minutos (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir los segundos (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir el día (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir el mes (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para escribir el año (write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_COUNT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Número total de valores del reloj (fin del bucle)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Juego a 320x200, 60 FPS, sin frameskip, cuadro de diálogo de 50px de alto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;max_fps&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;frameskip&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo_alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configuración de los write/write_int para el HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_centro&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID de los FPG a cargar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fondo del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_tipo&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_color&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_opacity&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_region&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Rutas de los assets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/aisha.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/hud.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tm_time.tmp&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Stats como variables&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura reloj (fecha/hora)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configurar modo de video y FPS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;max_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos la paleta y los ficheros FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el reloj con la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Iniciamos los procesos que correrán en paralelo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El personaje a mostrar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Información en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La lista de comandos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar max_fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: get_hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Rellena la STRUCT `reloj` con la fecha/hora actual del sistema.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Para ello creamos un fichero temporal y consultamos su fecha de modificación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;get_fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas_tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;day&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;month&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;year&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hour&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sec&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: actualiza_reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Incrementa el reloj en +1 segundo y normaliza minutos/horas/días&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;maxd&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Normalizamos día/mes/año según días del mes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;maxd&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dias_mes&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;maxd&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: dias_mes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Devuelve número de días del mes `m` en el año `y` (gestión de bisiestos)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;dias_mes&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;SWITCH&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;400&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;29&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;28&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;DEFAULT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra la CG de la mascota (Aisha) en el centro de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico a mostrar&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// X = mitad del ancho de la pantalla, para que quede centrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Y = centro de la pantalla - mitad del alto del cuadro de diálogo para que quede justo encima del texto inferior&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo_alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el HUD superior con los stats del personaje y el reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Dibujamos un fondo semitransparente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Uso de draw: draw(&amp;lt;tipo&amp;gt;, &amp;lt;color&amp;gt;, &amp;lt;opacidad&amp;gt;, &amp;lt;región&amp;gt;, &amp;lt;x0&amp;gt;, &amp;lt;y0&amp;gt;, &amp;lt;x1&amp;gt;, &amp;lt;y1&amp;gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_tipo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_color&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_opacity&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_region&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_width&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background_height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Labels del HUD (coordenadas fijas en esta versión)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hambre:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;109&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Felicidad:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Disciplina:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Valores de los stats (OFFSET) en coordenadas fijas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;181&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;286&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Labels del reloj (texto) en coordenadas fijas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hora:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;120&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;144&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;188&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Fecha:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;248&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;272&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Valores numéricos del reloj (OFFSET) en coordenadas fijas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;232&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;256&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;280&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el marco de diálogo y los comandos disponibles (en este caso sólo &quot;Salir&quot;) en la parte inferior de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Centramos el marco en la parte inferior de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;screen_height&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo_alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por ahora no hay comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente_centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&amp;gt; Salir&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si se pulsa ESC, SPACE o ENTER, salimos del programa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hasta pronto.&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Ahora bien, el código anterior podríamos organizarlo mejor si hacemos uso de estructuras, de forma que haga exáctamente lo mismo, pero siendo más legible: Esta versión es exáctamente igual a la anterior, pero definiendo estructuras globales para la configuración (resolución, frames y ancho del cuadro de la botonera), fuente (fichero y alineaciones), fpg (id de Aisha y del hud), hud (labels y valores), rutas (localización de los recursos) y stats (hambre, felicidad y disciplina):&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA02.PRG - Esqueleto UI básico&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       14/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Segundo ejemplo de un tutorial sobre cómo crear un juego de mascota virtual en MS-DOS.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Muestra una interfaz gráfica simple:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - HUD superior: stats (Hambre, Felicidad, Disciplina)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - CG central: imagen de Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Muestra el texto inferior: &quot;Salir&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Nota: Esta versión (TAMA02B.PRG) es funcionalmente idéntica a TAMA02A.PRG,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//       pero organiza los datos usando STRUCTs en lugar de variables/arrays.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura de configuración general&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Resolución de pantalla de 320x200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Frames por segundo para el juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;frameskip&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Frameskip (0 = desactivado)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// alto total del cuadro de diálogo (px)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura para constantes de UI (fuente, alineación y márgenes)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID o fuente por defecto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura para almacenar los ficheros FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del FPG de CG de Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del FPG del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura global del HUD (labels como array)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_COUNT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Lista de labels (&quot;Hambre:&quot;, &quot;Felicidad:&quot;, &quot;Disc:&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Posición de cada label en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Texto de cada label&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Posición para escribir el valor numérico (write_int) de cada stat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Reloj: separa labels (texto) y values (posiciones para write_int)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_COUNT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Lista de labels del reloj (&quot;Hora:&quot;, &quot;:&quot;, &quot;:&quot;, &quot;Fecha:&quot;, &quot;/&quot;, &quot;/&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Posición de cada label del reloj en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Texto de cada label del reloj (&quot;Hora:&quot;, &quot;:&quot;, &quot;:&quot;, &quot;Fecha:&quot;, &quot;/&quot;, &quot;/&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_COUNT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Posiciones para escribir los valores numéricos del reloj (hora, minutos, segundos, día, mes, año)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Parámetros para el fondo del HUD (rectángulo negro semitransparente)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// tipo de dibujo (rectángulo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// color del rectángulo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;opacity&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// opacidad (0-15)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;region&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// región para draw&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// posición de esquina superior izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ancho del rectángulo (se ajusta en tiempo de ejecución)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// alto del rectángulo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura de rutas de assets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;tama/aisha.fpg&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero con los gráficos de la chica mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;tama/hud.fpg&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero con los gráficos de la interfaz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;tm_time.tmp&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero temporal para obtener la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Stats de la mascota virtual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de reloj para fecha/hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configurar modo de video y FPS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Carganmos la paleta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Carganis kis archivos FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el reloj con la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Iniciamos los procesos que correrán en paralelo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El personaje a mostrar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Información en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La lista de comandos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar configuracion.fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: get_hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Rellena la STRUCT `reloj` con la fecha/hora actual del sistema.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Para ello creamos un fichero temporal y consultamos su fecha de modificación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;get_fileinfo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;day&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;month&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;year&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hour&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sec&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra la CG de la mascota (Aisha) en el centro de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero FPG a utiiizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico a mostrar&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// X = mitad del ancho de la pantalla, para que quede centrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Y = centro de la pantalla - mitad del alto del cuadro de diálogo para que quede justo encima del texto inferior&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// No utilizamos put/xput/set_screen y usamos un bucle para que el gráfico cambie en futuras iteraciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el HUD superior con los stats del personaje y el reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para bucles&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos los componentes del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;init_hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Dibujamos un fondo semitransparente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Uso de draw: draw(&amp;lt;tipo&amp;gt;, &amp;lt;color&amp;gt;, &amp;lt;opacidad&amp;gt;, &amp;lt;región&amp;gt;, &amp;lt;x0&amp;gt;, &amp;lt;y0&amp;gt;, &amp;lt;x1&amp;gt;, &amp;lt;y1&amp;gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;span style=&quot;background-color: #274e13;&quot;&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;opacity&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;region&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los labels dek HUD uno a uno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_COUNT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los valores de los stats (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;v&lt;/span&gt;alue_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los labels del reloj uno a uno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_COUNT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los valores del reloj (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;fu&lt;/span&gt;ente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// PROCESS: init_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Inicializa las posiciones y textos de los labels del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// que luego serán usados en el proceso `mostrar_hud`&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;init_hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Hambre:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;109&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Felicidad:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;181&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Disciplina:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;286&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Labels del reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Hora:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;104&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// hora (2 dígitos)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;120&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &#39;:&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// minutos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;144&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &#39;:&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;152&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// segundos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;188&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Fecha:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;232&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// día&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;248&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &#39;/&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;256&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// mes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;272&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// &#39;/&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;280&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// año (4 dígitos)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;17&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ajustamos el ancho del fondo del HUD al ancho de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el marco de diálogo y los comandos disponibles (en este caso sólo &quot;Salir&quot;) en la parte inferior de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Centramos el marco en la parte inferior de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Por ahora no hay comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&amp;gt; Salir&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si se pulsa ESC, SPACE o ENTER, salimos del programa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hasta pronto.&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Aunque a nivel funcional esto no aporte nada, nos permite programar de una forma más parecida a los lenguajes de programación actuales, como si de una falsa orientación a objetos se tratara. Y bueno, ahora que ya tenemos un esquelto base, podemos empezar a añadir funcionalidades básicas, como &quot;Jugar&quot;, &quot;Alimentar&quot;, &quot;Estudiar&quot;, &quot;Bañar&quot;, &quot;Curar&quot; y apagar las &quot;Luces&quot; (para forzar que se duerma).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBFvp-C5LQl3fMV4nRngw9yC6EowBDpq2L9apUFW5QBVYHvYT5of-YFWqL8OA9Jw0-xWnDF1VnVfYejbBd05SoD339cXgI9-zQSL9MHOREuc9TusFwFxd9NeRWsP6E-T7u2tmA17gT3QyAyTp1fQnp_THI_0ExXlu9rZZ5giWgH3XYI-t1Vy-d/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.42.40.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBFvp-C5LQl3fMV4nRngw9yC6EowBDpq2L9apUFW5QBVYHvYT5of-YFWqL8OA9Jw0-xWnDF1VnVfYejbBd05SoD339cXgI9-zQSL9MHOREuc9TusFwFxd9NeRWsP6E-T7u2tmA17gT3QyAyTp1fQnp_THI_0ExXlu9rZZ5giWgH3XYI-t1Vy-d/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.42.40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAC9uK7CqJHznMm7sEZDrJ_3OPEzz7yiOLKnwtNsFVEFxBKREQ7ZjlZ192QIeDh0v3n23B8jqv2wh934PLotbQs5ngckJW5YtuDJgXU-emNMr8gRnL3y_OURnyQ_MoBo8beW5hFtp6E2aV8cwqRumB7ylq3Md-buTgccFklw9o1J-A09OlyYZW/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.44.10.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAC9uK7CqJHznMm7sEZDrJ_3OPEzz7yiOLKnwtNsFVEFxBKREQ7ZjlZ192QIeDh0v3n23B8jqv2wh934PLotbQs5ngckJW5YtuDJgXU-emNMr8gRnL3y_OURnyQ_MoBo8beW5hFtp6E2aV8cwqRumB7ylq3Md-buTgccFklw9o1J-A09OlyYZW/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.44.10.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtyHxN1m8jIbSMQrr3n-afuFlSir95QAFOxFE36UOGIQvLq14woxQ7FHaAQmLLf-iRRmYYSBBavRNKY8Ef4o2PfKqe1oS-yfQh-_8HyLb4oIDREqDW8X3Td0Q2sUKBNTmY5OtsaWpgl5mk3n0ElHEuc37iaPX335eayxYdc6FvqELSh7pk9wwh/s1416/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.44.20.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;992&quot; data-original-width=&quot;1416&quot; height=&quot;448&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtyHxN1m8jIbSMQrr3n-afuFlSir95QAFOxFE36UOGIQvLq14woxQ7FHaAQmLLf-iRRmYYSBBavRNKY8Ef4o2PfKqe1oS-yfQh-_8HyLb4oIDREqDW8X3Td0Q2sUKBNTmY5OtsaWpgl5mk3n0ElHEuc37iaPX335eayxYdc6FvqELSh7pk9wwh/w640-h448/Captura%20de%20pantalla%202026-05-30%20a%20las%2020.44.20.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Para ello:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Crearemos una estructura para la mascota, donde desplazaremos ahí el gráfico a mostrar de Aisha y otra para el menú, para operar con las distintas opciones como si trataran de un array de opciones.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Actualizaremos el mostrar_mascota() para cambiar el gráfico de Aisha en tiempo real.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Crearemos una rutina de init_menu() y de controlar_menu(), para inicializar la botonera y para navegar por ella.&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;La rutina de controlar_menu() además hace uso de otras subrutinas, como menu_mover_h() y menu_mover_v(), que permiten recalcular qué botón estamos seleccionando en caso de que manejando los cursores salgamos de los menús.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA03.PRG - Menú navegable simple (entregable 3)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       14/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Reutiliza el esqueleto visual de TAMA02B.PRG y añade un menúnnavegable con opciones.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Navegación: flechas ARRIBA/ABAJO o IZQUIERDA/DERECHA&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Selección: ENTER / SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Seleccionar una acción muestra una CG y un texto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - &quot;Salir&quot; termina la ejecución;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000; color: #c586c0;&quot;&gt;(...)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de estado de la mascota (gráfico actual, etc.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// gráfico actualmente mostrado por `mostrar_mascota`&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Stats de la mascota — encapsulan el estado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estructura del menú de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// separación horizontal entre columnas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// índice seleccionado (flat)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 = acción activa (modal)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// id de la acción activa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// número de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// columnas de la rejilla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// filas de la rejilla&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Lista de 7 comandos (Jugar, Alimentar, Estudiar, Baño, Curar, Luces, Salir)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Texto a mostrar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// gráfico asociado a la acción (por defecto CG_AISHA)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// texto que se muestra cuando la acción está activa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configurar modo de video y FPS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos la paleta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos los archivos FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el reloj con la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;init_menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Iniciamos los procesos que correrán en paralelo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El personaje a mostrar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Información en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La lista de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Gestiona la entrada del menú&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar configuracion.fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra la CG de la mascota (Aisha) en el centro de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utiiizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del gráfico a mostrar&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// X = mitad del ancho de la pantalla, para que quede centrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Y = centro de la pantalla - mitad del alto del cuadro de diálogo para que quede justo encima del texto inferior&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// El gráfico mostrado se toma de `mascota.graph` para que otros procesos puedan cambiarlo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: mostrar_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el HUD superior con los stats del personaje y el reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para bucles&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los valores de los stats (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Renderiza el marco de diálogo y las opciones del menú inferior.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Utiliza la `STRUCT menu` y los `menu.comando[]` para ser totalmente data-driven.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// índice de ítem actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// fila del ítem (idx / cols)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// columna del ítem (idx MOD cols)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// separación vertical entre filas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// texto de la acción activa (si hay alguna)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// gráfico de la acción activa (si hay alguna)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// X de la primera columna (calculada para centrar la tabla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Y de la primera fila   (calculada para centrar la tabla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// X calculada para cada ítem&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Y calculada para cada ítem&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// IDs para los textos de cada comando (se eliminan cada frame)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del texto de la acción activa (se elimina cada frame)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Calcular posiciones locales del marco (no forman parte de la STRUCT `menu`)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Limpieza: borramos los textos del frame anterior usando sus IDs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Si la acción está activa, NO dibujamos los comandos; mostramos solo el texto dentro del marco.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Cambiamos el gráfico de la mascota y mostramos el texto de la acción&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- Rejilla exacta: cada columna tiene la misma X, cada fila la misma Y ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// startX centra la tabla horizontalmente: (cols-1)*spacing es el ancho entre extremos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// startY centra la tabla verticalmente en el cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: init_menu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Inicializa labels, CGs y posición del menú de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;init_menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Jugar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;015&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha esta jugando.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Alimentar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;010&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha esta comiendo.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Estudiar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;016&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha esta estudiando.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Baño&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;013&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha se esta bañando.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Curar&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;014&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha toma sus medicinas.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Luces&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;020&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha se prepara para dormir.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Salir&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// PROCESS: controlar_menu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Gestiona la entrada del menú (navegación y selección). Usa la STRUCT `menu`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;NOT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Selección con ENTER / SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Hasta pronto.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Cerrar acción activa con ENTER / SPACE / ESC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Esperamos a que se suelten todas las teclas (on-release)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: menu_mover_h&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Mueve el cursor horizontal (delta +1=derecha, -1=izquierda).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Hace wrap dentro de la misma fila respetando celdas vacías.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;delta&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Última columna válida de esta fila (la fila inferior puede estar incompleta)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;delta&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// wrap derecha → primera&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// wrap izquierda → última&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: menu_mover_v&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Mueve el cursor vertical (delta +1=abajo, -1=arriba).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Hace wrap entre filas; si la celda destino no existe, va al último ítem válido.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;delta&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;delta&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// wrap abajo → primera fila&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// wrap arriba → última fila&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_row&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Si la celda no existe (fila inferior incompleta), va al último ítem válido&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;new_idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; El juego nos está quedando bien, pero podemos añadir aún pequeñas mejoras, como incluir una pequeña introducción al iniciar el juego, presentándose si no se detecta el fichero &quot;save&quot; o saludándonos si no es la primera vez que volvemos. Y lo más notorio: Implementar el guardado de los stats, porque hasta la fecha iban cambiando, pero no los estabamos guardando y se reiniciaban cada vez que volvíamos a entrar en el juego.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIW_zkfcTE-LSX1XiQ1Wy8XsKqyDP-l8qVILDCgqOSlJsX26dFGldMvwoK3r3rW5O9PX-7NKxAIvyRljiOFxa3EmsAa5dHQXcduPt21LzzmaoobVPaamnpciSI8J9ESUGGDQgC-Vn8CubkLTQEtGpa79DE6lx86SKHYb22Tn1CA2tlEIQHY1A2/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.25.01.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIW_zkfcTE-LSX1XiQ1Wy8XsKqyDP-l8qVILDCgqOSlJsX26dFGldMvwoK3r3rW5O9PX-7NKxAIvyRljiOFxa3EmsAa5dHQXcduPt21LzzmaoobVPaamnpciSI8J9ESUGGDQgC-Vn8CubkLTQEtGpa79DE6lx86SKHYb22Tn1CA2tlEIQHY1A2/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.25.01.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwmtGGaKWw8TZvN0cSvTAxeH58sVpsqtNvFcIZ3EHHxHVbN2HLiphDTbgD2kma-Xk-RnKZWKG7SUBNfDFTkhtvVZOUFmCeo8RkCOr_0drQYovlEA98Leg7Q-P-MXQ21SiI0aUdIHJMs78fGdWyoEuo1PsH-5Y-zotz7vs4gCenZ38nCl48S8s_/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.23.42.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwmtGGaKWw8TZvN0cSvTAxeH58sVpsqtNvFcIZ3EHHxHVbN2HLiphDTbgD2kma-Xk-RnKZWKG7SUBNfDFTkhtvVZOUFmCeo8RkCOr_0drQYovlEA98Leg7Q-P-MXQ21SiI0aUdIHJMs78fGdWyoEuo1PsH-5Y-zotz7vs4gCenZ38nCl48S8s_/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.23.42.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfUgrCO9vvdZLf7dqsOwwaMT3U-kpZU5GBCnRWl0L13zt_NbgKjGYFYtiUOYG9W0qkTtVlZ2f9JsFxnszsnNn17K33MQlK9WWW1tVCrtyHguN4PqktQWddNXVOEP6T0SFYk9RiJs_OLwYAc5NQUQyvliLWEZWi5ob9yyFAhnTGjV4M7SudEH2E/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.23.37.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfUgrCO9vvdZLf7dqsOwwaMT3U-kpZU5GBCnRWl0L13zt_NbgKjGYFYtiUOYG9W0qkTtVlZ2f9JsFxnszsnNn17K33MQlK9WWW1tVCrtyHguN4PqktQWddNXVOEP6T0SFYk9RiJs_OLwYAc5NQUQyvliLWEZWi5ob9yyFAhnTGjV4M7SudEH2E/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.23.37.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;Para ello:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Crearemos una nueva rutina para grabar y cargar los stats en el fichero TAMA.SAV.&lt;/li&gt;&lt;li&gt;Crearemos una nueva rutina de introducción.&lt;/li&gt;&lt;li&gt;Haremos que cada acción modifique los stats de Aisha.&lt;/li&gt;&lt;li&gt;Mostraremos en el hud los stats de limpieza, descanso y salud, que hasta la fecha no los estábamos mostrando.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA04.PRG - Persistencia de stats y pantalla de intro (entregable 4)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       21/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Basado en TAMA03.PRG. Añade:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Nuevos stats: limpieza, descanso, salud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Fichero de guardado TAMA.SAV con los stats de la mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//                · Si no existe: Aisha se presenta (primera vez)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//                · Si existe:    Aisha saluda al estilo Outlaw Stars&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Cada acción modifica los stats y guarda al terminar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - normalizar_stats() mantiene todos los stats en [0..10]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// w = escritura, r = lectura, a = append (añadir al final)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;PERMISO_LECTURA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// modo lectura para cargar el fichero SAV&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID de los gráficos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico que muestra a Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índices para HUD, recorremos un bucle para mostrar los textos en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Hambre:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Felicidad:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para el texto &quot;Disciplina:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Índice para el texto &quot;Limpieza:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Índice para el texto &quot;Descanso:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Índice para el texto &quot;Salud:&quot; y su valor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_COUNT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Número total de labels del HUD (fin del bucle)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura global del HUD (labels como array)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Parámetros para el fondo del HUD (rectángulo negro semitransparente)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// tipo de dibujo (rectángulo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// color del rectángulo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;opacity&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// opacidad (0-15)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;region&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// región para draw&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// posición de esquina superior izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ancho del rectángulo (se ajusta en tiempo de ejecución)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// alto del rectángulo (ampliado para 2 filas de stats + reloj)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de rutas de assets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/aisha.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero con los gráficos de la chica mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/hud.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero con los gráficos de la interfaz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tm_time.tmp&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero temporal para obtener la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;tama/tama.sav&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero de guardado de stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de estado de la mascota (gráfico actual, etc.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// gráfico actualmente mostrado por `mostrar_mascota`&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Stats de la mascota — encapsulan el estado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configurar modo de video y FPS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos la paleta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos los archivos FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el reloj con la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;init_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;introduccion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// prepara el marco, lanza la mascota y muestra la intro; bloquea hasta que el jugador confirma&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Iniciamos los procesos que correrán en paralelo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Información en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La lista de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Gestiona la entrada del menú&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar configuracion.fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: init_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Inicializa posiciones y textos del HUD con 6 stats en 2 filas.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   Fila 1 (y=5):  Hambre | Felicidad | Disciplina&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   Fila 2 (y=14): Limpieza | Descanso | Salud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   Reloj  (y=23): Hora HH:MM:SS  |  Fecha DD/MM/AAAA&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;init_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Fila 1: Hambre, Felicidad, Disciplina ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hambre:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;109&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Felicidad:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;181&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Disciplina:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;286&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Fila 2: Limpieza, Descanso, Salud ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Limpieza:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;72&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;109&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Descanso:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;181&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Salud:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;254&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- Reloj (fila 3, y=23) ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_HORA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Hora:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;56&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_T2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;88&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;140&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_FECHA_LABEL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Fecha:&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;184&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_D_M&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;208&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;224&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RL_SEP_M_Y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;232&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;23&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ajustamos el ancho del fondo del HUD al ancho de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: mostrar_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el HUD superior con los stats del personaje y el reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para bucles&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los valores de los stats (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;value_&lt;/span&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: controlar_menu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Gestiona la entrada del menú (navegación y selección). Usa la STRUCT `menu`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;NOT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Selección con ENTER / SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Salir: guardamos y salimos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hasta pronto.&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cerrar acción activa → aplicar efecto, guardar, volver al menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;aplicar_efecto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Esperamos a que se suelten todas las teclas (on-release)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: cargar_partida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Lee TAMA.SAV y rellena mascota.stats. Devuelve 1 si OK, 0 si no existe.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;cargar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;PERMISO_LECTURA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// fichero no existe → primera vez&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: guardar_partida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Escribe los stats actuales de mascota en TAMA.SAV.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: clamp_stat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Devuelve `v` acotado al rango [0..10].&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;v&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: normalizar_stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Clampea todos los stats al rango [0..10].&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;normalizar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;clamp_stat&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: aplicar_efecto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Aplica los cambios de stats correspondientes a la acción `id`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Tras modificar los valores llama a normalizar_stats() y guarda.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   0 Jugar     → felicidad+2, disciplina-1, limpieza-1, descanso-2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   1 Alimentar → hambre+2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   2 Estudiar  → felicidad-1, disciplina+2, descanso-2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   3 Baño      → limpieza=10, descanso-1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   4 Curar     → salud=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   5 Luces     → descanso=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;aplicar_efecto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_efecto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;SWITCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_efecto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Jugar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Alimentar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estudiar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Baño&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Curar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Luces&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;normalizar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: introduccion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra el sprite de la mascota. Bloquea hasta que el jugador confirma.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;introduccion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mostrar_mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// lanzamos el sprite de Aisha antes de la intro (PROCESS → paralelo)&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;intro_aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// presentación o saludo; bloquea hasta que el jugador pulsa ENTER/SPACE&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// quitamos el gráfico del proceso main&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: intro_aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Intenta cargar TAMA.SAV.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              · Si no existe → presentación de Aisha (primera vez)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              · Si existe    → saludo al estilo Outlaw Stars&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Espera a que el jugador pulse ENTER/SPACE y hace on-release.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Nota: el proceso main ya tiene asignado el gráfico MARCO_DIALOGO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              y mostrar_mascota() ya está corriendo; esta función solo escribe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              texto y llama a FRAME.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;intro_aisha&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Calcular posiciones locales del marco (no forman parte de la STRUCT `menu`)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cargar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Primera vez — presentación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;¡Soy Aisha Clan-Clan, orgullo de&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;los Ctarl-Ctarl! ¡Cuídame bien!&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ya existe partida — saludo tsundere de Outlaw Stars&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;¡Ah, has vuelto! Era hora,&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;humano. ¡No me hagas esperar!&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Esperamos a que el jugador pulse ENTER/SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;NOT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// On-release&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlbUjUVvob3poukO1AwwFIoClnTteIfnfUtSZ7SFWKg70mWeiJ_D_yzTmn-VvcKbHMymuoex9JK0KLQ3YqWtMwRyYr_6Qu7M1VfumZeRp0zdx4PRW7Wo3lHR6m44ZwWf4BdZF4u8lTa6ilS9zhJRb-xMNIfMa0gXFlUavXe7n-GaojJBUoLg6Q/s1504/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.44.51.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1504&quot; height=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlbUjUVvob3poukO1AwwFIoClnTteIfnfUtSZ7SFWKg70mWeiJ_D_yzTmn-VvcKbHMymuoex9JK0KLQ3YqWtMwRyYr_6Qu7M1VfumZeRp0zdx4PRW7Wo3lHR6m44ZwWf4BdZF4u8lTa6ilS9zhJRb-xMNIfMa0gXFlUavXe7n-GaojJBUoLg6Q/w640-h460/Captura%20de%20pantalla%202026-05-30%20a%20las%2021.44.51.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; Con todo esto ya tenemos algo bastante funcional, pero aún nos falta lo más básico: Implementar el sistema de cansancio y sueño.&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Para ello:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Crearemos una estructura para controlar los estados del sueño y una rutina comprobar_sueno() que tendremos que controlar en el bucle principal.&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Nos aseguraremos que si Aisha está durmiendo, sólo podamos salir del juego.&amp;nbsp;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Alteraremos la introducción para ver a Aisha durmiendo si al volver a entrar aún no está descansada.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA05.PRG - Ciclo de sueño de Aisha (entregable 5)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       24/02/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Basado en TAMA04.PRG. Añade:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              - Estado de sueño persistido en el SAV&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Acción de Luces implementada:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                · Mientras duerme: gráfico 21, solo el comando &quot;Salir&quot; es usable&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                · Se despierta automáticamente a las 8 AM del día siguiente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                · Si descanso=0: siesta de 3 horas.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Auto-duerme a las 2 AM si Aisha está despierta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Despierta a las 8 AM.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Si el jugador se conecta mientras Aisha duerme, se le muestra durmiendo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// w = escritura, r = lectura, a = append (añadir al final)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_LECTURA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// modo lectura para cargar el fichero SAV&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID de los gráficos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico que muestra a Aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_DURMIENDO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico que muestra a Aisha durmiendo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Horario del ciclo de sueño&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_DORMIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Hora a la que Aisha se duerme automáticamente (2 AM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_AMANECER&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Hora a la que Aisha se despierta normalmente (8 AM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORAS_SIESTA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Horas que duerme si descanso=0 (siesta)&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Índice del comando &quot;Salir&quot; — único comando visible cuando Aisha duerme&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Motivo del sueño — parámetro de activar_sueno()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_LUCES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Luces manual      → día siguiente a las HORA_AMANECER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_NOCTURNO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ventana 2–8 AM    → mismo día a las HORA_AMANECER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_SIESTA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Agotamiento (descanso=0) → +HORAS_SIESTA horas&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de rutas de assets&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/aisha.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero con los gráficos de la chica mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tama/hud.fpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero con los gráficos de la interfaz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;tm_time.tmp&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero temporal para obtener la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;tama/tamav2.sav&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Fichero de guardado de stats (nuevo formato para TAMA05.PRG)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estructura de estado de la mascota (gráfico actual, etc.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// gráfico actualmente mostrado por `mostrar_mascota`&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Stats de la mascota — encapsulan el estado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Estado de sueño — se persiste en el SAV junto con los stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 1 si Aisha está durmiendo, 0 si está despierta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// día del reloj en que se despertará&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// hora del reloj en que se despertará&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar configuracion.fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comprobar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Comprueba auto-sueño (2 AM) y auto-despertar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Renderiza el marco de diálogo y las opciones del menú inferior.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Utiliza la `STRUCT menu` y los `menu.comando[]` para ser totalmente data-driven.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Cuando Aisha está durmiendo: muestra sólo &quot;Salir&quot; con gráfico 21.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;        (...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si la acción está activa, NO dibujamos los comandos; mostramos solo el texto dentro del marco.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cambiamos el gráfico de la mascota y mostramos el texto de la acción&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Modo durmiendo: gráfico 21, solo el comando &quot;Salir&quot; activo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// `controlar_menu` también fuerza menu.selected = CMD_SALIR, aquí lo reforzamos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_DURMIENDO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Rejilla exacta: cada columna tiene la misma X, cada fila la misma Y ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// startX centra la tabla horizontalmente: (cols-1)*spacing es el ancho entre extremos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// startY centra la tabla verticalmente en el cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: controlar_menu&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Gestiona la entrada del menú (navegación y selección). Usa la STRUCT `menu`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Cuando Aisha está durmiendo: bloquea la navegación; solo ENTER sobre&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              &quot;Salir&quot; (forzado por mostrar_comandos) permite salir del programa.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;NOT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Navegación: solo permitida si Aisha está despierta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_h&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(+&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu_mover_v&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(-&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Selección con ENTER / SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// (cuando duerme, mostrar_comandos fuerza menu.selected = CMD_SALIR)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Salir: guardamos y salimos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;exit&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;Hasta pronto.&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cerrar acción activa → aplicar efecto, guardar, volver al menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aplicar_efecto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Solo restauramos CG_AISHA si no está durmiendo;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// si se acaba de ejecutar Luces, `activar_sueno` ya puso CG_DURMIENDO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Esperamos a que se suelten todas las teclas (on-release)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: cargar_partida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Lee tamav2.sav y rellena mascota.stats + mascota.sueno.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Devuelve 1 si OK, 0 si el fichero no existe (primera vez).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Formato del SAV:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                · 6 campos  → mascota.stats  (hambre..salud)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                · 3 campos  → mascota.sueno  (durmiendo, despertar_dia, despertar_hora)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;cargar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_LECTURA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// fichero no existe → primera vez&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: guardar_partida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Escribe los stats actuales &lt;span style=&quot;background-color: #274e13;&quot;&gt;y el estado de sueño de la mascota&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              en tamav2.sav con el mismo formato que cargar_partida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Escribe cada campo individualmente (count=1) porque sizeof de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              una STRUCT no-array vale 1 en DIV2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 6 stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 3 campos de sueño&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: aplicar_efecto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Aplica los cambios de stats correspondientes a la acción `id`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Tras modificar los valores llama a normalizar_stats() y guarda.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   0 Jugar     → felicidad+2, disciplina-1, limpieza-1, descanso-2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   1 Alimentar → hambre+2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   2 Estudiar  → felicidad-1, disciplina+2, descanso-2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   3 Baño      → limpieza=10, descanso-1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//   4 Curar     → salud=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   5 Luces     → activa el sueño (comprueba descanso antes), luego descanso=10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;aplicar_efecto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_efecto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;SWITCH&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_efecto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Jugar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Alimentar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Estudiar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Baño&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Curar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Luces → poner a dormir a Aisha (día siguiente a las HORA_AMANECER)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;activar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_LUCES&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;normalizar_stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: activar_sueno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Pone a Aisha a dormir calculando la hora de despertar según el motivo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   tipo = SUENO_LUCES    → día siguiente a las HORA_AMANECER (Luces manual)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   tipo = SUENO_NOCTURNO → mismo día a las HORA_AMANECER    (ventana 2–8 AM)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   tipo = SUENO_SIESTA   → +HORAS_SIESTA horas desde ahora  (agotamiento)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//   En todos los casos: descanso → 10, gráfico → CG_DURMIENDO, guarda partida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;activar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;suma_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// hora de despertar calculada (antes del MOD 24)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_SIESTA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Agotamiento: siesta de HORAS_SIESTA horas desde ahora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;suma_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORAS_SIESTA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;suma_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;suma_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// cruza la medianoche&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_NOCTURNO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ventana 2–8 AM: se despierta a las 8 AM del mismo día&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_AMANECER&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// SUENO_LUCES: Luces manual → día siguiente a las HORA_AMANECER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_AMANECER&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Restauramos el descanso al irse a la cama (siempre, independientemente de la duración)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_DURMIENDO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: comprobar_sueno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Llamada cada segundo desde el loop principal. Gestiona:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              · Auto-despertar cuando se cumple la hora programada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              · Auto-sueño nocturno: si la hora está en [HORA_DORMIR, HORA_AMANECER)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              · Auto-sueño por agotamiento: si descanso=0 a cualquier hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;comprobar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- Auto-despertar ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Comprobamos si ya llegó la hora de despertar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// (día mayor, o mismo día y hora mayor-igual que despertar_hora)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// resetamos el cursor al inicio del menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// --- Auto-sueño (solo si Aisha está despierta) ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Ventana nocturna [HORA_DORMIR, HORA_AMANECER): se despierta ese mismo día a las 8 AM&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_DORMIR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HORA_AMANECER&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;activar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_NOCTURNO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Agotamiento (descanso=0) a cualquier hora: siesta de HORAS_SIESTA horas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;activar_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;SUENO_SIESTA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: intro_aisha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Intenta cargar tamav2.sav.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              · Si no existe → presentación de Aisha (primera vez)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              · Si existe y durmiendo=1 → pantalla de sueño (gráfico 21)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              · Si existe y durmiendo=0 → saludo al estilo Outlaw Stars&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Espera a que el jugador pulse ENTER/SPACE y hace on-release.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Nota: el proceso main ya tiene asignado el gráfico MARCO_DIALOGO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              y mostrar_mascota() ya está corriendo; esta función solo escribe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              texto y llama a FRAME.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;intro_aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Calcular posiciones locales del marco (no forman parte de la STRUCT `menu`)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cargar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// carga stats + sueno si el SAV existe&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Aisha está durmiendo — mostramos su gráfico 21 y un mensaje&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;CG_DURMIENDO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha está durmiendo.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save_existe&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Primera vez — presentación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                          &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;¡Soy Aisha Clan-Clan, orgullo de&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                          &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;los Ctarl-Ctarl! ¡Cuídame bien!&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ya existe partida y Aisha está despierta — saludo tsundere de Outlaw Stars&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                          &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;¡Ah, has vuelto! Era hora,&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cy&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                          &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;humano. ¡No me hagas esperar!&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Esperamos a que el jugador pulse ENTER/SPACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;NOT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// On-release&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_enter&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_l2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Con todo ello ya tenemos un juego plenamente funcional. No será el GOTY 2026, pero lo que tiene que hacer, lo hace. Por último os presento una última versión, que sirve únicamente para pulir/mejorar varios aspectos:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Eventos aleatorios en segundo plano (puede recibir regalos, enfermad, comer por su cuenta..).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Sistema de cooldown para que sus stats cambién mientras juguemos. Es decir, si dejas a Aisha todo el día en segundo plano, le entrará hambre, por ejemplo.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Semilla aleatoria inicializada por la hora (sirve para calcular los números aleatorios)&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Realizamos una copia de seguridad del SAV antes de sobrescribir (archivo .bak) y eliminación del fichero temporal de hora.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;El HUD pasa a ser un PROCESS que se refresca cada frame y ahora muestra un contador del tiempo restante mientras Aisha duerme (minutos_restantes_sueno()).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #121314; color: #bbbebf; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// TÍTULO:      TAMA06.PRG - Ciclo de sueño y eventos (entregable 6)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FECHA:       30/05/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Basado en TAMA05.PRG. Mejora y añade:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Añade eventos aleatorios en segundo plano (regalo, enfermedad,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                comida, suciedad) con cooldown.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Inicializa la semilla aleatoria con la hora del sistema.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Guarda una copia de seguridad del SAV antes de sobrescribir&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                (archivo .bak).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - HUD convertido a `PROCESS` y refrescado dinámicamente cada frame.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Muestra contador de tiempo restante mientras Aisha está durmiendo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Añade decremento horario de stats (hambre/descanso/limpieza) cada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                hora y guarda automáticamente.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Elimina el fichero temporal usado para obtener la hora.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Nuevas funciones: `decrementar_stats()`, `minutos_restantes_sueno()`,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//                `disparar_evento()` y `PROCESS eventos_aleatorios()`.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              - Varias mejoras de gestión de texto y limpieza de recursos.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;TAMA_WAIFU&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;CONST&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Motivo del sueño — parámetro de activar_sueno()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SUENO_LUCES&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Luces manual      → día siguiente a las HORA_AMANECER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SUENO_NOCTURNO&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Ventana 2–8 AM    → mismo día a las HORA_AMANECER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;SUENO_SIESTA&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Agotamiento (descanso=0) → +HORAS_SIESTA horas&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Eventos aleatorios&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EVENT_PROB_PCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// probabilidad (%) por minuto de que ocurra un evento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EVENT_MIN_INTERVAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// minutos mínimos entre eventos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;GLOBAL&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Contador de frames para actualizar reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Configurar modo de video y FPS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos la paleta&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cargamos los archivos FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;aisha&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el reloj con la hora del sistema&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos la semilla aleatoria con la hora actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;rand_seed&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3600&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos el menú&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;init_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;introduccion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// prepara el marco, lanza la mascota y muestra la intro; bloquea hasta que el jugador confirma&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Iniciamos los procesos que correrán en paralelo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Información en pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La lista de comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;eventos_aleatorios&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Dispara eventos aleatorios en segundo plano&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;controlar_menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Gestiona la entrada del menú&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Loop principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Actualizar contador de frames y reloj cada segundo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;FPS&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// La constante FPS contiene cuantos frames hubo en el último segundo, más fiable que usar configuracion.fps&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;actualiza_reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comprobar_sueno&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Comprueba auto-sueño (2 AM) y auto-despertar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Decremento horario de stats: sólo en el cambio de hora (minutos==0 &amp;amp;&amp;amp; segundos==0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;decrementar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: get_hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Rellena la STRUCT `reloj` con la fecha/hora actual del sistema.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Para ello creamos un fichero temporal y consultamos su fecha de modificación&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;get_hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;sizeof&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_dato&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;get_fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;day&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;month&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;year&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hour&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fileinfo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sec&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Eliminamos el fichero temporal creado para obtener la hora&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;remove&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;tmp_nombre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_hud&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Muestra y refresca el HUD superior con los stats del personaje y el reloj&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Índice para bucles&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Inicializamos los componentes del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;init_hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Dibujamos un fondo semitransparente y los labels (una sola vez)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;opacity&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;region&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Escribimos los labels del HUD uno a uno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;HUD_COUNT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos los labels del reloj uno a uno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RL_COUNT&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;labels&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Bucle principal del HUD: actualiza valores dinámicos cada frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos (actualizamos) los valores de los stats (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_HAMBRE&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_FELICIDAD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DISCIPLINA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;disciplina&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_LIMPIEZA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_DESCANSO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;HUD_SALUD&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;value_pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos (actualizamos) los valores del reloj (OFFSET)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_HORA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MIN&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_SEG&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;segundos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_DIA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_MES&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mes&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write_int&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;RV_ANO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;izq&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ano&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// PROCESS: mostrar_comandos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Renderiza el marco de diálogo y las opciones del menú inferior.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Utiliza la `STRUCT menu` y los `menu.comando[]` para ser totalmente data-driven.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Cuando Aisha está durmiendo: muestra sólo &quot;Salir&quot; con gráfico 21.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;mostrar_comandos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// índice de ítem actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// fila del ítem (idx / cols)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                 &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// columna del ítem (idx MOD cols)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// separación vertical entre filas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// texto de la acción activa (si hay alguna)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// gráfico de la acción activa (si hay alguna)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// X de la primera columna (calculada para centrar la tabla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;              &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Y de la primera fila   (calculada para centrar la tabla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// X calculada para cada ítem&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Y calculada para cada ítem&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// IDs para los textos de cada comando (se eliminan cada frame)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del texto de la acción activa (se elimina cada frame)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_sleep_countdown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ID del texto del contador de sueño (se elimina cada frame)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ff7b72;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;countdown_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rem_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Fichero FPG a utilizar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// ID del gráfico del marco del cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Calcular posiciones locales del marco (no forman parte de la STRUCT `menu`)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Limpieza: borramos los textos del frame anterior usando sus IDs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_sleep_countdown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_sleep_countdown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_sleep_countdown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Si la acción está activa, NO dibujamos los comandos; mostramos solo el texto dentro del marco.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;active&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cg&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;accion_id&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_AISHA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Cambiamos el gráfico de la mascota y mostramos el texto de la acción&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_graph&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_action_text&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;action_text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Modo durmiendo: gráfico 21, solo el comando &quot;Salir&quot; activo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// `controlar_menu` también fuerza menu.selected = CMD_SALIR, aquí lo reforzamos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CG_DURMIENDO&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;CMD_SALIR&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Mostrar tiempo restante hasta el despertar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rem_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos_restantes_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rem_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;countdown_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Despertará pronto&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rem_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rem_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;countdown_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Despertará en: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;h &quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;m&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;m&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_sleep_countdown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;countdown_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// --- Rejilla exacta: cada columna tiene la misma X, cada fila la misma Y ---&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// startX centra la tabla horizontalmente: (cols-1)*spacing es el ancho entre extremos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// startY centra la tabla verticalmente en el cuadro de diálogo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;MOD&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;cols&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startX&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;col&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;spacing&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;startY&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;row_gap&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a5d6ff;&quot;&gt;&quot;&amp;gt; &quot;&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;texto_seleccionado&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;id_menu_textos&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;px&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;py&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;menu&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;comando&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;idx&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// FUNCTION: guardar_partida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Escribe los stats actuales y el estado de sueño de la mascota&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              en tamav2.sav con el mismo formato que cargar_partida.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              Escribe cada campo individualmente (count=1) porque sizeof de&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//              una STRUCT no-array vale 1 en DIV2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d2a8ff;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bakname&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Antes de sobrescribir el SAV, escribimos una copia de seguridad con el estado actual en memoria&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bakname&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;.bak&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;bakname&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fid_bak&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// Escribimos el fichero principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;rutas&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;save&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;PERMISO_ESCRITURA&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 6 stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;OFFSET&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #8b949e;&quot;&gt;// 3 campos de sueño&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c9d1d9;&quot;&gt;fid&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #990000;&quot;&gt;(...)&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: decrementar_stats&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Decrementa stats pasivos por el paso del tiempo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Se espera ser llamado una vez por hora (minutos==0 &amp;amp;&amp;amp; segundos==0).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;decrementar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;changed&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Hambre y descanso disminuyen con el tiempo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;descanso&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Limpieza baja con el tiempo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Normalizamos y guardamos el estado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;normalizar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Guardamos la partida tras el decremento para persistir el paso del tiempo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: minutos_restantes_sueno&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Devuelve los minutos restantes hasta la hora programada de despertar.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//              Si no está durmiendo devuelve 0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;minutos_restantes_sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dias_diff&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_actual&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_objetivo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;total_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;durmiendo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dias_diff&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dia&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_actual&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_objetivo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;sueno&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;despertar_hora&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;total_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;dias_diff&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_objetivo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;min_actual&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;total_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;total_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;total_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// FUNCTION: disparar_evento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Aplica los efectos de un evento aleatorio y muestra un mensaje.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;disparar_evento&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #ff7b72;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_evento&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wait_frames&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fpg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;MARCO_DIALOGO&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ancho&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;pantalla&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cuadro_dialogo&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alto&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;SWITCH&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_evento&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Regalo sorpresa&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;felicidad&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha ha recibido un pequeño regalo!&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Enfermedad leve&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;salud&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha se encuentra indispuesta...&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Encuentra comida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;hambre&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha encontró algo de comer.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;CASE&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Se ensucia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;mascota&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;limpieza&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;Aisha se ha ensuciado un poco.&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;DEFAULT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #a5d6ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;normalizar_stats&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;guardar_partida&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Mostramos el mensaje durante unos segundos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fichero&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fuente&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;alineacion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;centro&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wait_frames&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;configuracion&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;fps&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// ~3 segundos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;wait_frames&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;id_msg&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// PROCESS: eventos_aleatorios&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// DESCRIPCIÓN: Revisa cada minuto y dispara eventos aleatorios con cooldown.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d2a8ff;&quot;&gt;eventos_aleatorios&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;roll&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ev&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Detectamos cambio de minuto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;last_min&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;reloj&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;minutos&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Reducimos cooldown si aplica&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// Sólo intentamos un evento si no hay cooldown&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;roll&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;rand&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;99&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// 0..99&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;roll&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EVENT_PROB_PCT&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ev&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #dcdcaa;&quot;&gt;rand&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #b5cea8;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// elegir evento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;disparar_evento&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;ev&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;cooldown&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c9d1d9;&quot;&gt;EVENT_MIN_INTERVAL&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #8b949e;&quot;&gt;// poner cooldown en minutos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;FRAME&lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #d4d4d4;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #bbbebf;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #274e13; color: #c586c0;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;Y hasta aquí el ejemplo de hoy. Espero no volver a tardar meses para presentaros el próximo ejemplo.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/05/aprendiendo-programar-para-ms-dos-con.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/2370461612372944926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/2370461612372944926'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/05/aprendiendo-programar-para-ms-dos-con.html' title='¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un tamagotchi! (capítulo 4)'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOseQuAsEX7pjEwJH68S5Z-fpRzc1ZDQ2L6S3tOvMspQq3qn2Bd1gfcI3E6Bcebr3IbqcFTePYCY0C5Nv81FQ2P8vEtxuGjra7iT_ZDetyfxaDC8Qd8zkN-UZXRbdyhGWCyCqS27ezsLkBnFYSUUbEPKiQoj_pBPBXjGZXnB0t_tuEhXs0wKRD/s72-w640-h460-c/Captura%20de%20pantalla%202026-05-30%20a%20las%2022.01.54.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-9032906000730619760</id><published>2026-04-16T23:08:00.003+02:00</published><updated>2026-04-16T23:08:49.218+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="final fantasy"/><category scheme="http://www.blogger.com/atom/ns#" term="final fantasy vii"/><category scheme="http://www.blogger.com/atom/ns#" term="pc"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 9X"/><title type='text'>Rosebud</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Hoy he recibido mi &quot;Rosebud&quot;, el Final Fantasy VII para PC, en su formato bigbox distribuida por Proein en España. Este título se trató de uno de los primeros juegos que compré con mi propio dinero, ocupó un lugar destacado en mi tiempo libre durante el inicio del instituto, llegando a dedicarle un considerable número de horas nocturnas.  Alcancé el nivel máximo de 99 con todos los personajes, excepto Aerith, y completé todas las &quot;Armas&quot; (nombre de una serie de enemigos finales ocultos) y me hice con todas las materias posibles. Y es que lo acabé malvendiendo y aún recuerdo con claridad el nombre del compañero al que se lo vendí, decisión que he lamentado en numerosas ocasiones.&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGC1ITQ3FYc1bdrNe_QwkuNHAIFohonMqx-tJld0zQX7l3JDnQkw1XW9NlhqS2TaII7ZxyJBFCgFtj-JpBQAFQ959IdpMeNuZJpSTA_QsB798Xb5ROO2VqPK8nNHbxpr17hCucD0aF7mFxK8Wm3tsnWwO9WneRRqZsTqFQzLB4mUCkAo24qz6_/s4032/IMG_9666.jpeg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGC1ITQ3FYc1bdrNe_QwkuNHAIFohonMqx-tJld0zQX7l3JDnQkw1XW9NlhqS2TaII7ZxyJBFCgFtj-JpBQAFQ959IdpMeNuZJpSTA_QsB798Xb5ROO2VqPK8nNHbxpr17hCucD0aF7mFxK8Wm3tsnWwO9WneRRqZsTqFQzLB4mUCkAo24qz6_/w480-h640/IMG_9666.jpeg&quot; width=&quot;480&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Tras años buscando y alucinar con los precios, finalmente lo encontré en Wallapop a un monto razonable. Si bien se encontraba en mal estado y carecía del manual de instrucciones, estos inconvenientes no me supusieron un obstáculo, dado que el ejemplar que poseía en aquella época tampoco se encontraba en óptimas condiciones y aún conservo el manual de instrucciones.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiCBlQRLvtspHBCObkW2VqOQqKx2PfwvcTon65kPZlN9WxhW4lWCAACDMWTF2LzUTFi7pgG9WZMZMFxaQ8Tq2YzBLv9DJoI66-__I_QvEf2NquR2jufHq9z9QKzDJ4EQZrNDx71CnG7FauEXFJoFM1vyb-bpxhSoWjmWmlUKfqjl9ZeUJEK3S0/s4032/IMG_9669.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiCBlQRLvtspHBCObkW2VqOQqKx2PfwvcTon65kPZlN9WxhW4lWCAACDMWTF2LzUTFi7pgG9WZMZMFxaQ8Tq2YzBLv9DJoI66-__I_QvEf2NquR2jufHq9z9QKzDJ4EQZrNDx71CnG7FauEXFJoFM1vyb-bpxhSoWjmWmlUKfqjl9ZeUJEK3S0/w300-h400/IMG_9669.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyVJS_E6U6Qi5WhJd4w9REx7azLbUiWC0zj5oun_c58Pm6pdm-W_TTnQGaJN0KuZsBdzi-tCYB-mqB8-DqhhE6SolaP7GES79nM877J27SejnUOqnRzCHFYhDdUJmk44KNrFhdT-HkzfdMasbcpaX0LMev_zjmE3csVgTUDzVrcZ6VBl0usqUb/s4032/IMG_9670.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyVJS_E6U6Qi5WhJd4w9REx7azLbUiWC0zj5oun_c58Pm6pdm-W_TTnQGaJN0KuZsBdzi-tCYB-mqB8-DqhhE6SolaP7GES79nM877J27SejnUOqnRzCHFYhDdUJmk44KNrFhdT-HkzfdMasbcpaX0LMev_zjmE3csVgTUDzVrcZ6VBl0usqUb/w300-h400/IMG_9670.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIlgsPeDh_4lPPWvsGtqLl_sWjoonsvtJrXXjBy_hiRQFKw7vMMT9leriKWw4xH5zQ1OcRjpeZtiVnLhwZa8ffwCWChb1FwtLXwIU0uLr6V5oNfEXjVEHTcwTgFzid5qocZ8GIEo6JoSGAWMeznU7fC4K-mcTjN0xtFWLxjZm9X0F9ogO0yohc/s4032/IMG_9664.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3024&quot; data-original-width=&quot;4032&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIlgsPeDh_4lPPWvsGtqLl_sWjoonsvtJrXXjBy_hiRQFKw7vMMT9leriKWw4xH5zQ1OcRjpeZtiVnLhwZa8ffwCWChb1FwtLXwIU0uLr6V5oNfEXjVEHTcwTgFzid5qocZ8GIEo6JoSGAWMeznU7fC4K-mcTjN0xtFWLxjZm9X0F9ogO0yohc/w640-h480/IMG_9664.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3N8FhDTtwLjRGImko9LeFCfePQwpvqnYZuQ0qktYfUObEyeXFdOoRMkE8RuOG4Lb4iOOlt3yfbJ1XkTvdKoKGLyzJlRjqWMGUBYBFU7bMCTGte47O25aruQ_u_bJjrq1S1wZ6h5I7tpNvZSp81tVaMmMyULbucQVm_izMKA7flbLhKEUga-i7/s4032/IMG_9665.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3024&quot; data-original-width=&quot;4032&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3N8FhDTtwLjRGImko9LeFCfePQwpvqnYZuQ0qktYfUObEyeXFdOoRMkE8RuOG4Lb4iOOlt3yfbJ1XkTvdKoKGLyzJlRjqWMGUBYBFU7bMCTGte47O25aruQ_u_bJjrq1S1wZ6h5I7tpNvZSp81tVaMmMyULbucQVm_izMKA7flbLhKEUga-i7/w640-h480/IMG_9665.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6URu9KU9z7JwCVfGqGlGWW0XdIiuOlxcIou3R8SPRllW33nC-GVtKlx8cT8VpNRcx3ed-GG3JoqJq-34gTS7h6IuVjYQcnoLr2wCvSJQjWGCDlP0vzYOcddj7iUD_I3e0IamRmSTIWJvDbTYxXcBWxGQwPrdJWWZgTD4ff38Zyx_0eqdqyYNG/s4032/IMG_9671.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6URu9KU9z7JwCVfGqGlGWW0XdIiuOlxcIou3R8SPRllW33nC-GVtKlx8cT8VpNRcx3ed-GG3JoqJq-34gTS7h6IuVjYQcnoLr2wCvSJQjWGCDlP0vzYOcddj7iUD_I3e0IamRmSTIWJvDbTYxXcBWxGQwPrdJWWZgTD4ff38Zyx_0eqdqyYNG/w300-h400/IMG_9671.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaqO35dgS0G5rHK71Stk2Gs0XKLEYTzxK7yj7P7aQUulChxGVZeBIZGYM61gpjBxVHONtzWuFHGmkLFoU-AWkFDYc6rINErQzvjEyalEXi5SevVMnN2PUZ7wcnGzKgIKLYY5G6cJZBsAl56YyXCt_QjnC9H0Yiytd27dFfcoQ10ESQ9dgdwmqM/w300-h400/IMG_9663.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;3024&quot; data-original-width=&quot;4032&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWj-VrR5gGBFR4PNBD2qox4sIj8ZNv1pngpFsbf8xRZKa4TbCCuzj6796ChyphenhyphenDcrz8fognxUSFCCBbnbkSv1RgcCpm7jms_ZPKGm76_qHb7hBWvE1FtP-GQoIYm__Nk9HUXT24oELD39i0VoY7YMq55cm0fV-KJPUv49fZ-ggrtTNJzgi7xhkTy/w640-h480/IMG_9672.jpeg&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3200gkOkLbvELRLSUJc83hyaTF-h4CjzZnfU12QEPEs9Uf7Vbg8KZAMfqN4Z1pyXrnszNjZCXr36RisY5SopdGBQB2yOvUKPgheDYT9DmyySWoLv8HPK9GmcOKZdfrrUh6uVcONtZ-z8tB0KVYlt5l4y4nNO2pkFF-vKexU8g9HPA-KFpBwi-/s4032/IMG_9673.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3200gkOkLbvELRLSUJc83hyaTF-h4CjzZnfU12QEPEs9Uf7Vbg8KZAMfqN4Z1pyXrnszNjZCXr36RisY5SopdGBQB2yOvUKPgheDYT9DmyySWoLv8HPK9GmcOKZdfrrUh6uVcONtZ-z8tB0KVYlt5l4y4nNO2pkFF-vKexU8g9HPA-KFpBwi-/w300-h400/IMG_9673.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit13g79pKpYb-fl6yeSQRS4IxzN6lq1Cd5gtFCthRq8XXeVfkjzeFuZFoRfEb5IJP53w5e2381l0xL0wQbjjF6Qyysfn-6nvcWaH3piV0scHjh8JmOzHB-NbYvOXAEZZq8-tJzqX4EczdCuME2ZKHM6mkbWpToywOqusG8oRGk63wozr4qeZ4w/s4032/IMG_9674.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4032&quot; data-original-width=&quot;3024&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit13g79pKpYb-fl6yeSQRS4IxzN6lq1Cd5gtFCthRq8XXeVfkjzeFuZFoRfEb5IJP53w5e2381l0xL0wQbjjF6Qyysfn-6nvcWaH3piV0scHjh8JmOzHB-NbYvOXAEZZq8-tJzqX4EczdCuME2ZKHM6mkbWpToywOqusG8oRGk63wozr4qeZ4w/w300-h400/IMG_9674.jpeg&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/04/rosebud.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/9032906000730619760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/9032906000730619760'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/04/rosebud.html' title='Rosebud'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGC1ITQ3FYc1bdrNe_QwkuNHAIFohonMqx-tJld0zQX7l3JDnQkw1XW9NlhqS2TaII7ZxyJBFCgFtj-JpBQAFQ959IdpMeNuZJpSTA_QsB798Xb5ROO2VqPK8nNHbxpr17hCucD0aF7mFxK8Wm3tsnWwO9WneRRqZsTqFQzLB4mUCkAo24qz6_/s72-w480-h640-c/IMG_9666.jpeg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-2037326463693749739</id><published>2026-04-14T23:57:00.003+02:00</published><updated>2026-04-15T13:14:54.939+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dango soccer"/><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><title type='text'>Dango Soccer. Build: 0.26.04.14 - ALPHA - Emisario EDITION</title><content type='html'>&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Supongo que habréis notado que me he ausentado del blog durante los últimos meses. Esta ausencia no se debe a una falta de deseo por retomar la escritura, sino a circunstancias específicas. De hecho, tengo una entrada preparada para Div Games Studio.&amp;nbsp; Sin embargo, en mi trabajo fui subcontratado para crear desde cero una app en React, tecnología en la que no me considero experto y esta situación me ha generado un nivel considerable de agotamiento. No obstante, para animarme, durante mi tiempo libre de estos meses opté por retomar el desarrollo del clon de PC Fútbol que estoy llevando a cabo con Godot .NET. A continuación, les presento un resumen cómo está quedando: &lt;a href=&quot;https://www.youtube.com/watch?v=Hyy2Hx2vlJ0&quot;&gt;https://www.youtube.com/watch?v=Hyy2Hx2vlJ0&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/Hyy2Hx2vlJ0&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/04/dango-soccer-build-0260414-alpha.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/2037326463693749739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/2037326463693749739'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/04/dango-soccer-build-0260414-alpha.html' title='Dango Soccer. Build: 0.26.04.14 - ALPHA - Emisario EDITION'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/Hyy2Hx2vlJ0/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-6719366568974515924</id><published>2026-02-04T01:33:00.001+01:00</published><updated>2026-02-04T21:47:48.305+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><category scheme="http://www.blogger.com/atom/ns#" term="tiny hellwing"/><title type='text'>¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un bullet hell! (capítulo 3)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmYr2-dYEaj-cbLSeseka9ciWX2pyumcAPVU0ClzfPzgN97cnPwwM8TCNAJAYh9dQ9wq4GSEp4sXuGM2SeDjmqFCnA4TobFbkEVPUEEfL1ntAf5zF3yCGGaMhCBh23fQZrrVtf8X3DysiEmqs2es-uU2IBA0YGF5wmj0mUUcy42HW6fB66f-4a/s640/000HD.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;400&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmYr2-dYEaj-cbLSeseka9ciWX2pyumcAPVU0ClzfPzgN97cnPwwM8TCNAJAYh9dQ9wq4GSEp4sXuGM2SeDjmqFCnA4TobFbkEVPUEEfL1ntAf5zF3yCGGaMhCBh23fQZrrVtf8X3DysiEmqs2es-uU2IBA0YGF5wmj0mUUcy42HW6fB66f-4a/w640-h400/000HD.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En esta tercera entrega de la serie de programación de &lt;i&gt;DIV&lt;/i&gt;, continuaremos con el enfoque establecido en la entrada anterior, partiendo de un prototipo básico y progresando gradualmente hacia la creación de un juego atractivo.... y en este caso tenemos incluso un juego COMPLETO (sí, en mayúsculas). Este capítulo incorpora el &lt;i&gt;feedback &lt;/i&gt;recibido de la entrada anterior y se centra en mejorar la legibilidad del código, asegurando que los cambios entre las distintas versiones del ejercicio sean fácilmente identificables y además esta vez lo he escrito en castellano. Aún así prepararos un bocadillo y un café bien cargado, que los ejemplos finales no son sencillos.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Si eres nuevo, o no estás familiarizado con &lt;i&gt;Div Games Studio&lt;/i&gt;, se trata de un entorno de programación de videojuegos para MS-DOS lanzado en 1998. Este lenguaje de programación es procedural, no orientado a objetos, y ofrece numerosas características atractivas para su época, tales como el uso de estructuras, punteros, reserva dinámica de memoria (con malloc/free) y una curva de aprendizaje relativamente sencilla. De hecho, mucha gente aprendió a programar con este lenguaje en España y se hizo tan popular a finales de los 90 que incluso llegaron a comercializarse revistas comerciales dedicados a este &lt;i&gt;framework&lt;/i&gt;.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Uno de los aspectos más destacados del &lt;i&gt;feedback &lt;/i&gt;recibido de la entrada anterior fueron las dudas sobre la utilidad de las estructuras, cómo diferenciar distintos tipos de enemigos o la eficiencia de implementar un proceso unificado para el dibujo, en lugar de permitir que cada instancia dibuje su propio gráfico. Esta reflexión me llevó a considerar el desarrollo de un juego de naves, similar a &lt;i&gt;Space Invaders&lt;/i&gt; o &lt;i&gt;Galaga&lt;/i&gt;, puesto que son elementos comunes en este tipo de juegos, donde debemos de dibujar grandes tipos de enemigos, de distintos tipos y evitando que el juego se ralentice.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Así que empecé a trabajar en un programa llamado &quot;vshooter&quot; de &quot;Vertical Shooter&quot;, en honor al género de este tipo de juegos de marcianitos. Como siempre, recordad que todos estos ejemplos de código los tengo subidos en mi Github (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT01.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT01.PRG&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Y vamos con el primer ejemplo:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// TÍTULO:      VSHOOT01.PRG - Nave Jugador Simple&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// AUTOR:       Sebastian J. MONCHO MAQUET&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FECHA:       18/01/2026&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCIÓN: Versión simplificada con solo la nave del jugador y controles.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// NOTA:        Usa las flechas para mover la nave, espacio para disparar y ESC para salir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Requiere la paleta DIV2.PAL en el mismo directorio.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Código y comentarios en castellano para facilitar la comprensión (por petición).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;vshooter&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Programa principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Arrancamos el juego a 320x200 a 60 FPS con la paleta cargada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;m320x200&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 320x200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;DIV2.PAL&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos la nave del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle principal del juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla la nave del jugador.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Maneja el dibujo, movimientos y disparos en un bucle continuo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vel&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Velocidad de movimiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Contador para controlar la frecuencia de disparos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// El dibujo de la nave se compone de varias partes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo del círculo de la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la primera línea de la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la segunda línea de la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la tercera línea de la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición inicial de la nave en el centro inferior de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;160&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Centro horizontal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;170&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cerca del fondo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle principal del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos la nave del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Borrar los dibujos anteriores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_circulo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea2&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea3&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_circulo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea2&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nave_linea3&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;31&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movimiento de la nave&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_left&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_right&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;310&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_up&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_down&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;190&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Disparar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_space&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Crear bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Salir con ESC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;key&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;_esc&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;EXIT&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;Gracias por jugar.&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar al siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: bala_jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla el movimiento de una bala disparada por el jugador.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Se mueve hacia arriba y se elimina si sale de la pantalla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Borramos dibujo anterior si existe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_draw&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_draw&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos la bala hacia arriba&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Eliminamos la bala si sale de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar al siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Este ejemplo que os he puesto es terriblemente sencillo: Manejamos una especie de botijo azul, que se desplaza pulsando los cursores (las teclas de arriba/abajo/izquierda/derecha), dispara balas redondas pulsando espacio y salimos del juego pulsando escape. Ya está, no tiene nada más, tienes un proceso de jugador, un proceso de bala_jugador, ambos se dibujan en pantalla con primitivas gráficas (ni siquiera &lt;i&gt;sprites&lt;/i&gt;) y hacemos uso de una variable de &quot;tiempo_disparo&quot; para controlar que las balas se disparen por ráfagas.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi97pHdCpUg0Gj8U5AZ92DyMzh7URVOpcq_dpMbfztHQVb2m0p7lYetmUvcK0OeZZSz4FfIwUysXZas5igJWbcW2E8GoFREq38lt5Y6jWyVlXeXi25UqISLX_9w1W5OoIoJpmOKo9CElqSzs85iso_C8d_ZQFcDhYF_ZOjGwmR-0sqkHC3d_3Xt/s1504/Captura%20de%20pantalla%202026-02-03%20a%20las%2022.16.27.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi97pHdCpUg0Gj8U5AZ92DyMzh7URVOpcq_dpMbfztHQVb2m0p7lYetmUvcK0OeZZSz4FfIwUysXZas5igJWbcW2E8GoFREq38lt5Y6jWyVlXeXi25UqISLX_9w1W5OoIoJpmOKo9CElqSzs85iso_C8d_ZQFcDhYF_ZOjGwmR-0sqkHC3d_3Xt/w640-h528/Captura%20de%20pantalla%202026-02-03%20a%20las%2022.16.27.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cosas chulas que no suelen verse: Si os fijáis en la bala_jugador, tenemos un bucle infinito (LOOP) que paramos con un RETURN. Aquí no actúa como &quot;BREAK&quot; del bucle, si no que indica que la ejecución del proceso acaba ahí. Sencillamente, cuando quieras forzar que una instancia deje de &quot;vivir&quot;, la puedes &quot;matar&quot; con un return.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ahora vamos a añadir enemigos. De hecho, vamos a añadir 2, uno de cada tipo y tendrán patrones de movimiento distinto. Uno se desplazará de derecha a izquierda y de izquierda a derecha y cada vez que llegue a un extremo de la pantalla bajará ligeramente. El otro se moverá haciendo ligeros círculos, casi imperceptibles (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT02.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT02.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Para ello añadiremos una instancia de cada tipo de enemigo en el main:&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROGRAM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;vshooter&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Programa principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Arrancamos el juego a 320x200 a 60 FPS con la paleta cargada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;set_mode&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;m320x200&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 320x200&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;set_fps&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;60&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;load_pal&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;DIV2.PAL&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos la nave del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;// Creamos 2 enemigos: uno tipo 1 y uno tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;30&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;40&lt;/span&gt;&lt;span style=&quot;background-color: #6aa84f; color: white;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle principal del juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; E implementamos ambos enemigos:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: enemigo_tipo1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla el comportamiento de un enemigo tipo 1.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Se mueve horizontalmente, dispara balas y verifica si muere o llega abajo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición inicial x.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición inicial y.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dirección inicial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_box&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la caja&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo del círculo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_box&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mover enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Salir si llega abajo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;210&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: enemigo_tipo2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla el comportamiento de un enemigo tipo 2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Se mueve en círculos, dispara balas dirigidas y verifica si muere.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición inicial x.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición inicial y.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Ángulo inicial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// IDs de dibujos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_linea4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_circulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mover enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Si os fijáis, a nivel de implementación son muy parecidos. Tienen sus 
parámetros y verificaciones propias, pero a su vez ambos tienen una estructura parecida, donde llamamos a un proceso de dibujo y controlamos su movimiento:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: dibujar_enemigo_tipo1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Dibuja el enemigo tipo 1, borrando los dibujos anteriores.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - box_offset: Puntero al ID de la caja.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - circulo_offset: Puntero al ID del círculo.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los punteros sirven para modificar las variables originales fuera de la función.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Si modificas una varariable del puntero dentro de la función, se refleja fuera también.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Sirve para evitar el uso de variables globales innecesarias.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;box_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Borramos los dibujos del frame anterior&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Controlamos que existe ya una box y un círculo (ID != 0) antes de borrarlos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si no lo comprobamos, tendríamos una excepción en el primer FRAME y el juego se colgaría&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;box_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;box_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos el enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;box_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;114&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: mover_enemigo_tipo1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Maneja el movimiento horizontal del enemigo tipo 1, cambiando dirección al llegar a los bordes y descendiendo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x_offset: Puntero a la posición x. -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y_offset: Puntero a la posición y. -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - dir_offset: Puntero a la dirección (1 o -1). -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los punteros sirven para modificar las variables originales fuera de la función.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Si modificas una varariable del puntero dentro de la función, se refleja fuera también.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Sirve para evitar el uso de variables globales innecesarias.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;mover_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movimiento horizontal&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cambiar dirección al llegar a los bordes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;310&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descenso&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: dibujar_enemigo_tipo2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Dibuja el enemigo tipo 2, borrando los dibujos anteriores.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - linea1_offset: Puntero al ID de la línea 1.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - linea2_offset: Puntero al ID de la línea 2.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - linea3_offset: Puntero al ID de la línea 3.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - linea4_offset: Puntero al ID de la línea 4.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - circulo_offset: Puntero al ID del círculo.  -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los punteros sirven para modificar las variables originales fuera de la función.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Si modificas una varariable del puntero dentro de la función, se refleja fuera también.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Sirve para evitar el uso de variables globales innecesarias.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea1_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea2_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea3_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea4_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Borramos los dibujos anteriores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea1_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea1_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea2_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea2_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea3_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea3_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea4_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea4_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos el enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea1_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea2_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea3_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea4_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;circulo_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: mover_enemigo_tipo2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Maneja el movimiento circular del enemigo tipo 2, manteniéndolo dentro de la pantalla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x_offset: Puntero a la posición x. -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y_offset: Puntero a la posición y. -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - ang_offset: Puntero al ángulo de movimiento. -&amp;gt; Usamos el puntero para modificar la variable original.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los punteros sirven para modificar las variables originales fuera de la función.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Si modificas una varariable del puntero dentro de la función, se refleja fuera también.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Sirve para evitar el uso de variables globales innecesarias.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;mover_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang_offset&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5000&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Incremento del ángulo&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movimiento circular&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_distx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_disty&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mantener dentro de la pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;310&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;310&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;190&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y_offset&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;190&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Cosas chulas que no se suelen ver:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Dividir el objeto, el comportamiento y su dibujado en procesos distintos. Esto suele hacerse para para reducir la complejidad del código, haciendo que sea más sencillo de leer (no es lo mismo un proceso gigante que tres pequeños) y de mantener.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Hago uso de punteros tanto para el dibujado como para el movimiento de los enemigos. ¿Qué es un puntero? Digamos que tanto la variable &quot;x&quot; de enemigo, como la variable &quot;x_offset&quot; de mover_enemigo, comparten la misma región de memoria. O dicho de otra forma, si modificas una de esas dos variables, estás modificando realmente ambas variables a la vez. Esto es muy útil si quieres que varios procesos &quot;comuniquen&quot; entre ellos en tiempo real, sin tener que recurrir a variables globales.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;¿Se puede hacer todo eso por valor en vez de punteros? Sí. ¿Estoy complicando el código innecesariamente? También. Pero pensad que ahora mismo sólo tenemos dos enemigos en pantalla. Mañana tendremos 160.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhje7l0wFnK_B9PC5tvyq6R2z3zr6HD51eKtjvwejHo5E9QWKGamdzPhC6QX68pxfMtQBf3SlJH3WGcIDZewrcvOCmxpay0RNNRuZ0OacX4DJh3yyTuyMp2effOw8JgkLDxd5N7xPNUAUykCZ0WmuazLLQ_NkRVpA-yyfpCnTBhc2EksVKhsYWW/s1504/Captura%20de%20pantalla%202026-02-03%20a%20las%2022.18.04.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhje7l0wFnK_B9PC5tvyq6R2z3zr6HD51eKtjvwejHo5E9QWKGamdzPhC6QX68pxfMtQBf3SlJH3WGcIDZewrcvOCmxpay0RNNRuZ0OacX4DJh3yyTuyMp2effOw8JgkLDxd5N7xPNUAUykCZ0WmuazLLQ_NkRVpA-yyfpCnTBhc2EksVKhsYWW/w640-h528/Captura%20de%20pantalla%202026-02-03%20a%20las%2022.18.04.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Bueno, pues ahora que ya tenemos un jugador, balas y enemigos, podemos plantearnos ya hacer un juego: Pongamos más enemigos en pantalla, que disparen con patrones distintos, explosiones y que el jugador y los enemigos mueran al colisionar con las balas. Atentos, que se vienen curvas (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT03.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT03.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;En este ejemplo (el tercero), si hacéis un diff con el anterior veréis que hay muchísimos cambios, en gran parte porque, además de añadir todo lo que os voy a describir, he remplazado muchos &quot;magic numbers&quot; por constantes. Y también me lié y cambié de lugar varias funciones. ¿Qué es un &quot;magic number&quot;? Pues ni más ni menos que todos los valores &quot;hardcodeados&quot; que veis por el código. Está claro que si quieres centrar un proceso en una pantalla de 320x200, puedes directamente decir que su posición X es 160 y su posición Y es 100, pero en programación los llamamos números &quot;mágicos&quot; porque sacados de contexto no significan nada. Imagínate dentro de 6 meses releyendo tu código: &quot;¿Por qué puse aquí 80? ¿Por que sí y punto?&quot;. Pues esos números mágicos o cadenas mágicas (para el caso de los strings) se mitigan poniendo constantes. La constante nos permite aplicar un nombre que le otorga un contexto en lectura y que, cuando se compila, no se trata como si fuera una variable, si no que el compilador ya mete directamente el valor esperado donde corresponda.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;En este ejemplo, para crear enemigos simplemente he creado un proceso independiente en el que llamo a un bucle FROM para crear 5 instancias de cada enemigo. Cosas a tener en cuenta: A diferencia del bucle FOR, el FROM sólo permite operar con constantes, entre otras cosas porque lo que hace el compilador es repetir X veces el bloque de instrucciones que contenga dicho bucle. O dicho de otra forma, no hay un componente condicional que haga variar el número de iteraciones que tendrá el bucle.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: crear_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Crea los procesos de enemigos al inicio de cada nivel.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Genera 5 enemigos tipo 1 (a la izquierda) y 5 tipo 2 (a la derecha).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;crear_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Variable para el bucle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Crea 5 enemigos tipo 1 en posiciones espaciadas en la izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO1_X&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO1_X&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO1_Y_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO1_Y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición x e y calculada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Crea 5 enemigos tipo 2 en posiciones espaciadas en la derecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO2_X_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO2_X&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO2_Y_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESPACIADO_ENEMIGO2_Y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición x e y calculada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Luego, defino también una función de de iniciar_nivel, que me permite llamar a ese crear enemigos, inicializar variables para la partida, invocar al jugador y le he implementado una cuenta regresiva de &quot;3, 2, 1... GO!&quot;. Si os fijáis aquí, estoy definiendo una función y no un proceso, pero a dicha función le meto instancias de &quot;FRAME&quot;. ¿Por qué? ¿Las funciones no son métodos que devuelven resultados? Pues esto es uno de los trucos que nos permite Div Games Studio: Las funciones, en la práctica, tienen un comportamiento identico a los procesos (aka &quot;instancias&quot;), pero bloquean la ejecución de su proceso padre. Es decir, hasta que incio_nivel no termine de ejecutarse, el proceso que lo llama (en este caso el bucle principal del juego) para su ejecución.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: inicio_nivel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Inicializa un nuevo nivel mostrando una cuenta regresiva (3, 2, 1, GO!) y creando los procesos de enemigos y jugador.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Desactiva controles durante la cuenta y los activa al final.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Aunque tenga FRAME dentro, es una función y bloquea el proceso que la llama (hack de DIV)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;inicio_nivel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cuenta regresiva: 3, 2, 1, GO!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Contador de frames&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador_str&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// String para mostrar contador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Desactivamos controles durante la cuenta regresiva&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos naves pero sin movimiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;crear_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Crear jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar un momento para que se vean las naves&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cuenta regresiva 3, 2, 1, GO!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador_str&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;itoa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Convertimos el número a string (itoi = integer to ascii)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;CENTRO_X&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;CENTRO_Y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALINEACION_CENTRADO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador_str&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 4 = centrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPS_JUEGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Ha pasado un segundo, actualizamos la cuenta atrás&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;contador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;all_text&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Limpiamos todos los textos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mostrar_textos_hud&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Volmemos a dibujar los textos del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mostramos el GO!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;CENTRO_X&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;CENTRO_Y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALINEACION_CENTRADO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;GO!&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 4 = centrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPS_JUEGO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mostramos GO! por 0,5 segundos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_text&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;all_text&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Limpiamos todos los textos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mostrar_textos_hud&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Volmemos a dibujar los textos del HUD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Activar controles para empezar el juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;De hecho, también defino funciones &quot;bloqueantes&quot; para calcular las colisiones del jugador con las balas, con sus enemigos y de los enemigos con las balas y el jugador. El algoritmo de la colisiones o es muy complicado, pero necesita un punto de atención en get_id(type tipo_instancia). El funcionamiento de get_id es muy peculiar: Si tienes varias instancias de un tipo de enemigo, te devuelve sólo el ID de la instancia del primer enemigo... pero si vuelves a usar get_id te devuelve el del segundo enemigo... y si lo vuelves a usar te devuelve el del tercer enemigo... y llega un momento que devolverá 0 (cuando no queden más identificadores en la cola). La gracia es que cada vez que el proceso llama a &quot;FRAME&quot;, esa cola de identificadores se reinicia y si lo usas vuelve a darte el primer enemigo de la cola. Sabiendo esto, podemos crear bucles que recorran todos los enemigos que hay en pantalla desde una función externa y comprobar si entra dentro de un área (las famosas &quot;hitboxes) de los videojuegos:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: comprobar_colision_jugador_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Verifica si la nave del jugador colisiona con algún enemigo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Si hay colisión, suma puntos, crea explosiones y termina el juego.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x de la nave (por valor, ya que no se modifica).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y de la nave (por valor, ya que no se modifica).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;comprobar_colision_jugador_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del enemigo para iterar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos la colisión con enemigos de tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si existen varios procesos del tipo que se ha especificado,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// la función get_id() devolverá el resto de los identificadores en las sucesivas llamadas que se realicen a la misma.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Una vez se hayan devuelto todos los códigos identificadores, la función devolverá 0, hasta que se vuelva a ejecutar una sentencia FRAME&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// En cada frame, la lista que devuelve get_id() se reinicia, es por eso que aqui no ponemos ningún FRAME&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle, recorriendo todos los enemigos tipo 1, enemigo a enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Calculamos distancia entre jugador y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Significa que ambos han chocado y ambos mueren&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sumamos los puntos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Explosión del enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcar enemigo como muerto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_NAVE&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Explosión del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcamos game over (lo leerá el process principal y actuará en cosnecuencia)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente enemigo, hasta que no hagamos FRAME, get_id() devolverá el siguiente ID&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// cuando no queden más, devolverá 0 y saldremos del bucle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos la colisión con enemigos de tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si existen varios procesos del tipo que se ha especificado,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// la función get_id() devolverá el resto de los identificadores en las sucesivas llamadas que se realicen a la misma.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Una vez se hayan devuelto todos los códigos identificadores, la función devolverá 0, hasta que se vuelva a ejecutar una sentencia FRAME&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Calculamos distancia entre jugador y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Significa que ambos han chocado y ambos mueren&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sumar puntos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Explosión del enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcar enemigo para morir&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_NAVE&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Explosión del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Terminar juego&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente enemigo, hasta que no hagamos FRAME, get_id() devolverá el siguiente ID&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// cuando no queden más, devolverá 0 y saldremos del bucle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: comprobar_colision_bala_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Verifica si la bala del jugador colisiona con algún enemigo. Si hay colisión, suma puntos, crea explosión y marca al enemigo para morir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Retorna: 1 si hay colisión, 0 si no.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;comprobar_colision_bala_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del enemigo para iterar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos si hay colisión con enemigos tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para ello obtenemos el primer ID de enemigo tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle, recorriendo todos los enemigos tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Obtenemos la distancia entre bala y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Hay colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sumamos puntos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcamos el enemigo como muerto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 1 -&amp;gt; Indicamos colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos si hay colisión con enemigos tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para ello obtenemos el primer ID de enemigo tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle, recorriendo todos los enemigos tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Calcular distancia entre bala y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Hay colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sumamos puntos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcamos enemigo para morir&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 1 -&amp;gt; Indicamos colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 0 -&amp;gt; No hay colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dx1vfp2sDdAvjz_vrQWaRNajtSWU4aqonzSvQuTZBCjMojE-QfjdxpUyEI4tQaLheXMnSn7h3w8PWg&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Con esto ya tenemos algo jugable. Ahora bien, queda feo tener un proceso por tipo de enemigo. Si mañana queremos tener 50, ¿creamos 50 procesos distintos en el código? Bueno, pues auqi viene el cuarto ejemplo, que a nivel funcional ofrece exactamente lo mismo que el anterior, pero con optiomizaciones (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT04.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT04.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Para emepzar creo una variable de tipo local llamada &quot;tipo&quot;. Las variables locales en Div Games Studio actuan como propiedades. Es decir, todos los procesos del programa (enemigo, iniciar_nivel, jugador...) pasan a tener una variable llamada &quot;tipo&quot;, pero esta variable, en su contexto, es independiente: Puedes crear 50 instancias de un proceso y asignarle valores disntintos a cada uno de ellos.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Variables locales&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Las variables locales son atributos presentes en TODOS los process.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Su valor puede ser modificado únicamente desde su propio process&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - No obstante, podemos consultarlas desde cualquier otro process -&amp;gt; TIPO = enemigo.tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Sirve para falsear la orientación a objetos, actuaría como una &quot;propiedad&quot; del objeto en modo read only&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOCAL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Tipo de enemigo (1 o 2), empleado sólo en el proceso genérico de enemigos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Variables internas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Dicho esto, borro las definiciones de enemigo_tipo1 y enemigo_tipo2 y creo un único proceso que haga uso de esa variable local:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla el comportamiento de un enemigo (tipo 1 o 2).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Se mueve según el tipo, dispara balas y verifica si muere.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición inicial x.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición inicial y.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - tipo: Tipo de enemigo (1 o 2).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// (OPTIMIZACIÓN: Proceso genérico para ambos tipos de enemigos.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Reduce duplicación de código. Usa parámetro &#39;tipo&#39; para diferenciar comportamiento.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mejora mantenibilidad: cambios en un lugar afectan a ambos tipos.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;temp_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para iterar en bucles&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 0: box/circulo para tipo1, 1-4: lineas para tipo2, 5: circulo tipo2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujo inicial del enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar muerte&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;id)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Borrar dibujos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;temp_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;temp_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;temp_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigos_vivos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar y mover basado en tipo solo si controles activos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_draws&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Disparar si corresponde&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;¿Podría haberme limitado a usar una variable privada tipo y pasarlo como parámetro a enemigo? Pues sí, pero me apetecía explicar que las variables locales existen y para qué sirven. De hecho, ahora que definimos la variable como local, puede ser consultada de forma externa por otras funciones y procesos, cosa que no podríamos hacer si la variable fuera privada:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: comprobar_colision_bala_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Verifica si la bala del jugador colisiona con algún enemigo. Si hay colisión, suma puntos, crea explosión y marca al enemigo para morir.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Retorna: 1 si hay colisión, 0 si no.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;comprobar_colision_bala_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del enemigo para iterar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Color para la explosión del enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos si hay colisión con enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Para ello obtenemos el primer ID de enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bucle, recorriendo todos los enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Obtenemos la distancia entre bala y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Hay colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sumamos puntos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Determinamos el color de la explosión según el tipo de enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Creamos explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_muerto_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcamos el enemigo como muerto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 1 -&amp;gt; Indicamos colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Siguiente enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Pero no es la única optimización que podríamos aplicar. De hecho, en el ejemplo 5 seguimos sin cambiar funcionalmente el juego y nos centramos en ir aún más lejos con las optimizaciones (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT05.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT05.PRG&lt;/a&gt;). ¿Cómo? Pues con dos grandes conocidos del capítulo 2 (que os ha dado pesadillas): ¡Uso de estructuras y de un único hilo para dibujar a todos los enemigos!&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Para empezar, ese hermosa variable local que habíamos creado nos la cepillamos y creamos una estructura genérica para los eneigos. En ella definimos su posición (x, y), el tipo de enemigo, si está vivo o muerto, la dirección de su desplazamiento, su ángulo de movimiento (para el tipo 2) y un array de enteros donde almacenar los ID de las primitivas gráficas que lo representan.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Definición de struct para enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición X&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición Y&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Tipo de enemigo (1 o 2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si está activo (1) o muerto/inactivo (0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dirección horizontal para tipo1 (1 derecha, -1 izquierda)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Ángulo para movimiento circular de tipo2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Array de IDs de dibujos (5 slots por enemigo)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Luego, borramos el proceso enemigo y creamos un &quot;proceso_enemigos&quot; para gestionar TODOS los enemigos en bucle. ¡Fijaros que reutilizamos los métodos ya existentes de dibujo y movimiento (gracias a la magia de los punteros), pero recorremos todos los enemigos que hay en la estructura para ver si están vivos o muertos y actuar en consecuencia:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: proceso_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Controla el comportamiento de todos los enemigos usando un STRUCT array.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Maneja movimiento, disparos y eliminación de enemigos tipo 1 y 2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// (OPTIMIZACIÓN: Proceso genérico para ambos tipos de enemigos.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Reduce duplicación de código. Usa parámetro &#39;tipo&#39; para diferenciar comportamiento.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mejora mantenibilidad: cambios en un lugar afectan a ambos tipos.)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Contador de tiempo para disparos de cada enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujo inicial de todos los enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos el enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos el enemigo de tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el juego ha terminado, salimos del proceso&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Por cada enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificamos si está vivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificamos si los controles están activos (p. ej., no durante la cuenta regresiva)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos en función del tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos el enemigo tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos el enemigo tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar si sale de pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;TAMANO_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujamos el enemigo en función del tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dibujar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Disparar en función del tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Fijaros que también, a su vez, el código acaba siendo más sencillo cuando manejamos estructuras. Por ejemplo, reducimos aún más el tamaño de las funciones de detección colisiones:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: comprobar_colision_bala_enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Verifica si la bala del jugador colisiona con algún enemigo. Si hay colisión, retorna el index del enemigo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y de la bala.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Retorna: Index del enemigo colisionado (0-4), o -1 si no hay colisión.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Los PROCESS se ejecutan en paralelo, mientras que las FUNCTION se ejecutan de forma secuencial&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Es decir, hasta que no termine esta función, el proceso que lo llama queda bloqueado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;comprobar_colision_bala_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Variable para el bucle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Comprobamos si hay colisión con enemigos iterando sobre el array&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Obtenemos la distancia entre bala y enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fget_dist&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Retornamos el index del enemigo colisionado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// No hay colisión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Bueno, pues ahora que tenemos un juego potable y algo optimizado, podemos empezar a trabajar con sprites y aquí entra el ejemplo 6 (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT06.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT06.PRG&lt;/a&gt;). Este ejemplo es básicamente el anterior, pero adaptado para trabajar con sprites.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;El mayor cambio reside en que, como he querido animar al personaje principal, he utilizado distintos gráficos para él en función de la tecla que pulsamos y de si estamos disparando o no. Es decir, si nos desplazamos o si disparamos, el gráfico va cambiando de forma dinámica.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Básicamente tenemos un fichero FPG para él con 16 gráficos. Los 8 primeros representan las 8 posiciones posibles en las que podemos depslazarnos (arriba, abajo, izquierda, derecha y diagonales) cuando no estamos disparando y las 8 siguientes es lo mismo, pero disparando. Sobre qué gráfico va primero, pues lo gestiono como si fueran las agujas del reloj -&amp;gt; 1 sería mirar arriba, 2 arriba/derecha, 3 derecha... y así hasta 8 izquierda/arriba.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Función: calcular_grafico_jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Calcula el ID del gráfico según dirección y estado de disparo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Retorna: ID del gráfico (1-18)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;calcular_grafico_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparando&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;base_grafico&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Base: 0 si no dispara, 9 si dispara&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparando&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;base_grafico&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;base_grafico&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Calcular offset según dirección&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Quieto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Arriba&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Arriba derecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Derecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Derecha abajo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Abajo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Abajo izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Arriba izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;base_grafico&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;offset_direccion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Sobre los sprites en cuestión, decidí bastame en el universo de Saga of Tanya The Evil de Carlo Zen (su mangaka, Chika Tojo, me cae genial). Su protagonista, Tanya, la he modelado varias veces en Blender y decidí hacer uso de una versión modificada que subí a sketchfab en verano y que, pese a ser uno de mis modelos preferidos y de los que más orgulloso estoy, lleva la friolera de cero likes (&lt;a href=&quot;https://sketchfab.com/3d-models/tanya-degurechaff-from-saga-of-tanya-the-evil-fb725e63784d4839928aa8ea6fe28e56&quot;&gt;https://sketchfab.com/3d-models/tanya-degurechaff-from-saga-of-tanya-the-evil-fb725e63784d4839928aa8ea6fe28e56&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y esto me consumió batante tiempo, puesto que el modelo de Tanya no lo tenía animado conforme yo quería para este juego y tuve que &lt;i&gt;&quot;riguear&lt;/i&gt;&quot; poses nuevas para luego renderizarlas.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8VaZD18FuKtnxrGO22cSHjsWI6OgwNqKW0ltVrEZtkWJ2kqLeL-bT8TVKxxebVI84dQ53w5QYXM9WzKvvFMkm8FNky6vD6XAoWenV7SvA-vB3WXFfXjZ043CaZdfsiFCTAlj3EB4K4_abkh-Q7tREqBup2FTkd5oUyL2HOO1nYJSAHIudpnxP/s3584/Captura%20de%20pantalla%202026-02-04%20a%20las%200.04.57.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2264&quot; data-original-width=&quot;3584&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8VaZD18FuKtnxrGO22cSHjsWI6OgwNqKW0ltVrEZtkWJ2kqLeL-bT8TVKxxebVI84dQ53w5QYXM9WzKvvFMkm8FNky6vD6XAoWenV7SvA-vB3WXFfXjZ043CaZdfsiFCTAlj3EB4K4_abkh-Q7tREqBup2FTkd5oUyL2HOO1nYJSAHIudpnxP/w640-h404/Captura%20de%20pantalla%202026-02-04%20a%20las%200.04.57.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Para los enemigos fue más sencillo. Generé modelos con Meshy.AI y luego los rendericé por Blender.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEiMwN7Z65RoUkfnnTMnYScE7UcE3ZapM_TJ6a2lWsCYfksH8dM4PMRqE1_zHXfeVEaGgpwKTfo5aX3u_Gax4v6VXSLAjzTIA3_Dmg4Ace9CoUR1Rk2sk3Cx4Ghkr1Yux80Yb30iE3HQ8p9p0Yn5LzP1qUAw4LsePwDx9q5jsOIV1nokPnktjp/s3584/Captura%20de%20pantalla%202026-02-04%20a%20las%200.07.31.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2264&quot; data-original-width=&quot;3584&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEiMwN7Z65RoUkfnnTMnYScE7UcE3ZapM_TJ6a2lWsCYfksH8dM4PMRqE1_zHXfeVEaGgpwKTfo5aX3u_Gax4v6VXSLAjzTIA3_Dmg4Ace9CoUR1Rk2sk3Cx4Ghkr1Yux80Yb30iE3HQ8p9p0Yn5LzP1qUAw4LsePwDx9q5jsOIV1nokPnktjp/w640-h404/Captura%20de%20pantalla%202026-02-04%20a%20las%200.07.31.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Y para los escenarios tiré de ChatGPT.&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimgDVr9XG3Wp66VIy0-PumKkfgk_-DdxgXUVV5m-fC5JNYdJvYf8yzX_AZfXkkmqk4FdP8g5o88Ebq5ZoM_h24HwgeFH4T7g9eDbTXcf950ZlUxJeU7LFgTk_81ajMJ5PRsbsKvjL_HdJDeFrDiqWH-Hc2zfVQ8f4LpSt4jcrqT32F5ikenTYq/s1536/000.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1536&quot; data-original-width=&quot;1024&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimgDVr9XG3Wp66VIy0-PumKkfgk_-DdxgXUVV5m-fC5JNYdJvYf8yzX_AZfXkkmqk4FdP8g5o88Ebq5ZoM_h24HwgeFH4T7g9eDbTXcf950ZlUxJeU7LFgTk_81ajMJ5PRsbsKvjL_HdJDeFrDiqWH-Hc2zfVQ8f4LpSt4jcrqT32F5ikenTYq/w426-h640/000.png&quot; width=&quot;426&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Ahora bien, el proceso de adaptar los gráficos para Div Games Studio fue bastante tortuoso. Lo primero es que, por comodidad, decidí emplear una única paleta de colores para todos los niveles. Esto me obligaba, por ejemplo, a crearme una paleta en Gimp para poder hacer uso de ella en el modo &quot;Imagen/Modo/Indexado&quot;. Además, para mitigar la limitacion de 256 colores forcé el&amp;nbsp;&lt;span class=&quot;ILfuVd&quot; lang=&quot;en&quot;&gt;&lt;span class=&quot;hgKElc pOOWX&quot;&gt;&lt;i&gt;dithering&lt;/i&gt; activando&lt;/span&gt;&lt;/span&gt;&amp;nbsp;el tramado de color posicionado:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFJzNyj4YeOWoybyO2J4iaeUILbwwmF4Kjzz8wWafFNRWw85RsT30r1cszg2cAg3JKctFbbFEs3wNncOEy81vxHgoC06xtIVMZIVPbQQ0Aga6Ou3GhhosTyq-ymvgk5YvQCWYLtNpeSELT2HfBlxQtmPa0sW-NzalXhy_ths4Ay6L7YOQO1-WF/s3496/Captura%20de%20pantalla%202026-02-04%20a%20las%200.12.21.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2176&quot; data-original-width=&quot;3496&quot; height=&quot;398&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFJzNyj4YeOWoybyO2J4iaeUILbwwmF4Kjzz8wWafFNRWw85RsT30r1cszg2cAg3JKctFbbFEs3wNncOEy81vxHgoC06xtIVMZIVPbQQ0Aga6Ou3GhhosTyq-ymvgk5YvQCWYLtNpeSELT2HfBlxQtmPa0sW-NzalXhy_ths4Ay6L7YOQO1-WF/w640-h398/Captura%20de%20pantalla%202026-02-04%20a%20las%200.12.21.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Para crear la paleta en Gimp, lo que hice fue crear desde Div2 un dibujo random en formato PCX con la tableta &quot;DIV2.PAL&quot;.&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;Por otro lado también implementé una pequeña explosión que se vea en el fusil de Tanya cuando dispara:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: explosion_pequena&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Crea una animación de explosión pequeña para efectos de disparo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Más pequeña y rápida que la explosión normal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Parámetros:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - x: Posición x de la explosión.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - y: Posición y de la explosión.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   - color: Color de la explosión.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;explosion_pequena&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Contador para el bucle&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Radio inicial más pequeño&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;exp_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Animamos la explosión pequeña&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Menos iteraciones para que sea más rápida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;exp_draw&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;exp_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;exp_draw&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;OPACIDAD_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;REGION_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;radio&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Incremento menor&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;exp_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dyI__N91VUGooC2Uz1Rme9msgJ_uVgPGSWPz3T8hsMFwrtDAT6a3YyKQPxB6vXZ44x24rrzt0k8wX4&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Ahora bien, con este ejemplo 6 me di cuenta de una cosa bastante básica y es que, si desplazaba al personaje a una esquina y dejaba que los enemigos dispararan... pues habían ralentizaciones, el juego tenía bajones de frames. Y es que, aunque habíamos optimizado los enemigos, ¡pero no las balas! Y justamente en un juego de tipo bullet-hell como el que estabamos creando ahora mismo, era obvio que en pantalla tendríamos más balas que enemigos. &quot;Lo siento mucho, me he equivocado, no volverá a ocurrir&quot;.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Así me puse a implementar el ejemplo 7, que es, a nivel jugable, idéntico al anterior, pero optimizando las balas (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT07.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT07.PRG&lt;/a&gt;). ¿Cómo? ¡Pues con estructuras y un proceso común para dibujarlas todas!&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Definición de struct para balas del jugador (OPTIMIZACIÓN: Lista enlazada separada)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Almacena balas del jugador en array con lista enlazada para optimizar acceso&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MAX_BALAS_JUGADOR&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición X de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición Y de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si está activa (1) o inactiva (0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Delta X precalculado para movimiento (siempre 0 para jugador)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Delta Y precalculado para movimiento (hacia arriba)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Tamaño precalculado para dibujo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Color precalculado para dibujo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice del siguiente slot en la lista (-1 = fin de lista)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Definición de struct para balas enemigas (OPTIMIZACIÓN: Lista enlazada separada)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Almacena balas enemigas en array con lista enlazada para optimizar acceso&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MAX_BALAS_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición X de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;         &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Posición Y de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Tipo de bala enemiga (1=enemigo1, 2=enemigo2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si está activa (1) o inactiva (0)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;angulo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Ángulo de movimiento (para balas enemigo tipo 2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Delta X precalculado para movimiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Delta Y precalculado para movimiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Tamaño precalculado para dibujo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Color precalculado para dibujo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del dibujo de la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice del siguiente slot en la lista (-1 = fin de lista)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Cosas a tener en cuenta: Veréis un INT de &quot;Siguiente&quot;. Esto es debido a que, como tienen que haber tantas balas en pantalla, hace falta hacer un sistema de listas. Si digo al compilador que pueden haber 256 balas en pantalla como máximo, resulta contraproducente crear bucles donde se recorran las 256 posiciones del array de balas, existan o no, para cada verificación que tenga que ver con balas. Lo que sí que puedo hacer es marcar con un &quot;-1&quot; en siguiente para decirle a un bucle &quot;no sigas recorriendo el array de balas, no ay más ahora mismo:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: proceso_balas_jugador (OPTIMIZACIÓN: Proceso separado para balas del jugador)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Proceso dedicado que gestiona solo balas del jugador usando lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Solo procesa balas activas del jugador siguiendo la lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Mueve, dibuja y verifica colisiones con enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Elimina balas que salen de pantalla o colisionan&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_balas_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala actual en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala anterior en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala siguiente (guardado antes de posible eliminación)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice del enemigo colisionado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Color de explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Flag para marcar si debe eliminarse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el juego terminó, salimos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PROCESAR BALAS DEL JUGADOR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_jugador_activa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #f3f3f3;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Guardar el siguiente antes de posibles modificaciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;delete_draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mover la bala según deltas precalculados&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar si sale de pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANCHO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Colisión con enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;comprobar_colision_bala_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;remover_enemigo_lista&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigos_vivos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Eliminar bala de la lista si es necesario&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sacar de lista de activas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_jugador_activa&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcar como inactiva&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Devolver a lista de libres&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_jugador&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar la bala&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;TIPO_DIBUJO_CIRCULO_RELLENO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;OPACIDAD_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;REGION_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar anterior solo si no eliminamos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar al siguiente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #ffd966; color: white;&quot;&gt;            actual = siguiente;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar al siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Ahora que hemos reoptimizado el código para evitar bajones de frames, deberíamos adaptar el juego para que sea más divertido. Quiero decir, ahora mismo tenemos un escenario inmovil con diez enemigos fijos... y en eso consiste nuestro ejemplo 8 (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT08.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT08.PRG&lt;/a&gt;). En esta versión implementamos un scroll (con start_scroll, no el falso scroll del capítulo 2), repartimos 80 enemigos por todo el escenario e implementamos rutinas para revisar que los enemigos que están fuera de la pantalla no se dibujen y que las barras que salen de nuestra pantalla se destruyan (pensad que las coordenadas no son iguales si usamos scroll o no).&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PROCESS: proceso_enemigos (MODIFICADO PARA SCROLL)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCIÓN: Controla el comportamiento de todos los enemigos usando un STRUCT array.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Maneja movimiento, disparos y eliminación de enemigos tipo 1 y 2.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Ahora solo procesa y dibuja enemigos visibles en la pantalla actual del scroll.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Usa procesos hijos con ctype=c_screen para visualizar cada enemigo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;NUM_ENEMIGOS_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Contador de tiempo para disparos de cada enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_visible&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;     &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Flag para verificar si el enemigo está visible&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;NUM_ENEMIGOS_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// IDs de procesos hijos para cada enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Inicializar array de procesos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;NUM_ENEMIGOS_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el juego ha terminado, salimos del proceso&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Terminar todos los procesos hijos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;NUM_ENEMIGOS_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Por cada enemigo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;NUM_ENEMIGOS_INICIAL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificamos si está vivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// OPTIMIZACIÓN: Solo procesar enemigos visibles en el scroll actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Un enemigo es visible si su Y está entre scroll.y0 - MARGEN y scroll.y0 + ALTO_PANTALLA + MARGEN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_visible&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ARRIBA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ABAJO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_visible&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Solo procesar si está visible&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_visible&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Crear proceso hijo si no existe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;proceso_enemigo_visual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Solo mover y disparar si los controles están activos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;controles_activos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos en función del tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos el enemigo tipo 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Movemos el enemigo tipo 2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;mover_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ang&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar si sale del área visible por abajo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ABAJO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;remover_enemigo_lista&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigos_vivos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Disparar en función del tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;disparar_enemigo_tipo2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tiempo_disparo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Enemigo no visible, eliminar proceso hijo si existe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Enemigo muerto, eliminar proceso hijo si existe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;signal&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;s_kill&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;procesos_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PROCESS: proceso_enemigo_visual (NUEVO)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCIÓN: Proceso hijo liviano que solo se encarga de visualizar un enemigo.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Usa ctype=c_screen para coordenadas de pantalla.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Lee los datos del enemigo desde el struct enemigo[].&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_enemigo_visual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ctype&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;c_screen&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Usar coordenadas de pantalla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPG_LEVEL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Archivo de gráficos&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el enemigo ya no está activo o el juego terminó, salir&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Actualizar posición en pantalla (convertir de coordenadas de mapa a pantalla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Actualizar gráfico según tipo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;GRAFICO_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Rotar según dirección de movimiento&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANGULO_ROTACION_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Rotar 15° a la derecha&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANGULO_ROTACION_ENEMIGO_OPUESTA&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Rotar 15° a la izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ESCALA_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;graph&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;GRAFICO_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;angle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dxbwj4egJK0zQflqT3hc4aOMCwMWwv5CkjClbkPG9ZbyKlOKks8gronw_2sxyiHuPwDz_DUDiQn-og&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Con todo esto ya vamos teniendo un juego más o menos potable, pero siempre podemos ir a más. En el siguiente ejemplo, el 9, (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT09.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT09.PRG&lt;/a&gt;), vamos más lejos e implementamos un sistema de niveles distintos, cada uno con su propio fichero FPG. En cada nivel, además, incrementamos el número de enemigos: Empezamos con 40, después 50, después 60... y así vamos sumando de diez en diez en cada fase. Además, el reparto de enemigos lo hacemos de forma escalonada, haciendo que haya pocos enemigos de inicio y muchos al final. También se implementa un sistema de vidas, para que el personaje del jugador no muera al primer toque e incluso cambiamos su fichero FPG en función del número de toques recibido (para dibujarlo sin casco al recibir el primer balazo y sin mochila al recibir el segundo).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FUNCIÓN: cargar_fpg_nivel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCIÓN: Carga el FPG correspondiente al nivel actual&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Descarga el FPG anterior si existe y carga el nuevo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;cargar_fpg_nivel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nivel_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ruta_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Ruta del FPG a cargar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;numero_str&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Número del nivel como string&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descargar el FPG anterior si existe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPG_LEVEL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;unload_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPG_LEVEL&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Construir la ruta del FPG según el nivel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// LEVEL000.FPG, LEVEL001.FPG, ..., LEVEL009.FPG, LEVEL010.FPG, LEVEL011.FPG, LEVEL012.FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;numero_str&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;itoa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nivel_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #f1c232; color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;// Agregar ceros a la izquierda según sea necesario&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;nivel_fpg&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;ruta_fpg&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;&quot;TANYA/LEVEL00&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;numero_str&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;&quot;.FPG&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;ruta_fpg&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;&quot;TANYA/LEVEL0&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;numero_str&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;&quot;.FPG&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background-color: #f1c232; color: #eeeeee;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cargar el nuevo FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;FPG_LEVEL&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;load_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ruta_fpg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: proceso_balas_jugador (OPTIMIZACIÓN: Proceso separado para balas del jugador)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Proceso dedicado que gestiona solo balas del jugador usando lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Solo procesa balas activas del jugador siguiendo la lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Mueve, dibuja y verifica colisiones con enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Elimina balas que salen de pantalla o colisionan&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_balas_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala actual en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala anterior en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala siguiente (guardado antes de posible eliminación)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice del enemigo colisionado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Color de explosión&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Flag para marcar si debe eliminarse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el juego terminó, salimos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PROCESAR BALAS DEL JUGADOR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_jugador_activa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Guardar el siguiente antes de posibles modificaciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mover la bala según deltas precalculados&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar si sale del área visible del scroll (eliminar balas fuera de pantalla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ARRIBA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ABAJO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANCHO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Colisión con enemigos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;comprobar_colision_bala_enemigos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;puntos&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;PUNTOS_POR_ENEMIGO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tipo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_ENEMIGO2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color_explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;remover_enemigo_lista&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigo_index&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;enemigos_vivos&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Eliminar bala de la lista si es necesario&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sacar de lista de activas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_jugador_activa&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcar como inactiva&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Devolver a lista de libres&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_jugador&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar la bala (convertir coordenadas de mapa a pantalla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;TIPO_DIBUJO_CIRCULO_RELLENO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;OPACIDAD_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;REGION_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar anterior solo si no eliminamos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar al siguiente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar al siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Proceso: proceso_balas_enemigo (OPTIMIZACIÓN: Proceso separado para balas enemigas)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Descripción: Proceso dedicado que gestiona solo balas enemigas usando lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Solo procesa balas activas enemigas siguiendo la lista enlazada&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Mueve, dibuja y verifica colisiones con el jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// - Elimina balas que salen de pantalla o colisionan&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PROCESS&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;proceso_balas_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala actual en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;           &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala anterior en la lista&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Índice de la bala siguiente (guardado antes de posible eliminación)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// ID del jugador&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Flag para marcar si debe eliminarse&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;             &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Diferencias para cálculo de distancia&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dist_cuadrado&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Distancia al cuadrado (optimización)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;get_id&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(type&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;LOOP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si el juego terminó, salimos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PROCESAR BALAS ENEMIGAS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_enemigo_activa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Guardar el siguiente antes de posibles modificaciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mover la bala según deltas precalculados&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Verificar si sale del área visible del scroll (eliminar balas fuera de pantalla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ARRIBA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ALTO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_VISIBLE_ABAJO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANCHO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Colisión con jugador (solo si no está inmune)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;jugador_inmune&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Bounding box rápida&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;abs&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_BOUNDING_BOX&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;abs&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;MARGEN_BOUNDING_BOX&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Calcular distancia al cuadrado&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dist_cuadrado&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dx&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dy&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;dist_cuadrado&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;DISTANCIA_COLISION_CUADRADO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// El jugador recibe un impacto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;vidas_jugador&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;explosion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;COLOR_NAVE&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Verificar si el jugador murió&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;vidas_jugador&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Tercera bala = muerte&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;game_over&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Activar inmunidad temporal y parpadeo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;jugador_inmune&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;TIEMPO_INMUNIDAD&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Cambiar FPG según vidas restantes&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;vidas_jugador&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Primera bala: cambiar a PLAYERME.FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;FPG_PLAYERME&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;// Segunda bala: cambiar a PLAYERLO.FPG&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;id_player&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;FPG_PLAYERLO&lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;background-color: #bf9000; color: white;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Eliminar bala de la lista si es necesario&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;debe_eliminar&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Sacar de lista de activas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primera_bala_enemigo_activa&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Marcar como inactiva&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;activo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Devolver a lista de libres&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;primer_slot_libre_enemigo&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;ELSE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Dibujar la bala (convertir coordenadas de mapa a pantalla)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;draw_id&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;TIPO_DIBUJO_CIRCULO_RELLENO&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;OPACIDAD_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;REGION_DRAW&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;x0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;y0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;bala_enemigo&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;tamano&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar anterior solo si no eliminamos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;anterior&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Avanzar al siguiente&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FRAME;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Esperar al siguiente frame&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Por último tenemos el ejemplo 10, el que contiene el juego acabado. Aquí creamos el enemigo de tipo 3, añadimos un ranking por puntuación, cargamos cinemáticas (escenas estilo Visual Novel) entre niveles y añadimos efectos de sonido y música (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT10.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/VSHOOT10.PRG&lt;/a&gt;). Este es el que presenta mayor dificultad de todos, ya que si haceís un diff con el anterior veréis que cambia casi por completo. Para estas cinemáticas recurri a varias IA generativas: Meshy (Nano Banana), ChatGPT y Grok.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw6oL_nlFA_02mTuB_I9e9-PhBNyl1mO_Gitkps71ZJ3DKSNzFp4cg7U1ylNlxV5GJ2DAKXhyphenhyphenzGEpETuS-ul023di0XgGvsb_KlCxf2xGDyQV_3pTwp8YUxVlrFTEyywN0__eSPcd1F_-IusCNfb787_OCDn__PTmbR9Zkd2fOUWceaErm13r1/s2068/Screenshot%202026-02-04%20at%2021-36-24%20MS-DOS%202026%20Tiny%20Hellwing%20gameplay%20completo%20-%20YouTube.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1552&quot; data-original-width=&quot;2068&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw6oL_nlFA_02mTuB_I9e9-PhBNyl1mO_Gitkps71ZJ3DKSNzFp4cg7U1ylNlxV5GJ2DAKXhyphenhyphenzGEpETuS-ul023di0XgGvsb_KlCxf2xGDyQV_3pTwp8YUxVlrFTEyywN0__eSPcd1F_-IusCNfb787_OCDn__PTmbR9Zkd2fOUWceaErm13r1/w640-h480/Screenshot%202026-02-04%20at%2021-36-24%20MS-DOS%202026%20Tiny%20Hellwing%20gameplay%20completo%20-%20YouTube.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;Cosas a tener en en cuenta:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- El sistema de estructuras para las cinemáticas. Como ya he mencionado en otras entradas, Div Games Studio no permite hacer un array de strings, pero nos permite crear un array de un struct que contenga uno o varios strings:&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Estructuras de datos para cinematicas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;cinematics&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;num_cg&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;siguiente_nivel&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;cgs&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;fpg_ruta&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;pal_ruta&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;wav_ruta&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;num_paginas&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;paginas&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea2&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea3&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;linea4&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;50&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En este ejemplo tenemos 10 cinemáticas:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Cada una indica a qué nivel hay que saltar cuando acabe (siguiente_nivel). Además, tenemos una lista de CG (una CG = una imagen).&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Cada CG tiene su propio fichero FPG, su propia paleta, su propia melodía y una lista de hasta diez págicas.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Cada página tiene 4 líneas de texto.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Cada línea de texto tiene un tamaño máximo de 50 caracteres.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Las funciones ligadas al ranking: Cuando añades una puntuación en una posición X, tienes que tener especial cuidado con el algoritmo que empleas para reordenar los posiciones X+1 a N: Si te limitas a hacer X+1 = X, es bastante fácil que acabes clonando puntuaciones erroneamente. Para evitar esto, hago lo contrario -&amp;gt; Desde N hazta X =&amp;gt; y = y-1.&lt;/p&gt;&lt;div style=&quot;background-color: #1f1f1f; color: #dddddd; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; font-weight: normal; line-height: 18px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FUNCION: cargar_top_scores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCION: Carga las 10 mejores puntuaciones desde el archivo TOP.DAT&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Si el archivo no existe, inicializa con valores por defecto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              (1000, 900, 800, 700, 600, 500, 400, 300, 200, 100)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;cargar_top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Intentar abrir el archivo para lectura&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;TOP.DAT&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;r&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// El archivo no existe, inicializar con valores por defecto&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1000&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Leer la estructura completa de puntuaciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;sizeof(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fread&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(OFFSET&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cerrar el archivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FUNCION: guardar_top_scores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCION: Guarda las 10 mejores puntuaciones en el archivo TOP.DAT&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;guardar_top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Abrir el archivo para escritura (crea o sobrescribe)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;TOP.DAT&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Error al crear el archivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;RETURN;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Escribir la estructura completa de puntuaciones&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;sizeof(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fwrite&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(OFFSET&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;data_size&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Cerrar el archivo&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;file_handle&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FUNCION: actualizar_top_scores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCION: Actualiza el ranking de puntuaciones con una nueva puntuacion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              Inserta la puntuacion en la posicion correcta si esta entre las 10 mejores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// PARAMETROS:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//   nueva_puntuacion - La puntuacion a comparar con el top 10&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;actualizar_top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nueva_puntuacion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Buscar la posicion donde insertar la nueva puntuacion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;TO&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nueva_puntuacion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BREAK;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Si la puntuacion esta en el top 10, insertarla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;IF&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Desplazar las puntuaciones inferiores hacia abajo (de abajo hacia arriba)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;--)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;j&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Insertar la nueva puntuacion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;posicion_insercion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;nueva_puntuacion&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// FUNCION: mostrar_top_scores&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// DESCRIPCION: Muestra las 10 mejores puntuaciones en la parte superior izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//              de la pantalla del menu principal&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;//------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FUNCTION&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #a6e22e;&quot;&gt;mostrar_top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;PRIVATE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;INT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;pos_y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRUCT&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ranking_lines&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef; font-style: italic;&quot;&gt;STRING&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;line&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;BEGIN&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Titulo del ranking&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANCHO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;RANKING:&quot;&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 5 = alineacion izquierda&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Preparar las 10 lineas del ranking&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ranking_lines&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;line&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;itoa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #e6db74;&quot;&gt;&quot;. &quot;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;itoa&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;top_scores&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;score&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Mostrar cada puntuacion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;FOR&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;++)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;pos_y&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// Espaciado de 10 pixels entre lineas&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #66d9ef;&quot;&gt;write&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ANCHO_PANTALLA&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;pos_y&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ae81ff;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;ranking_lines&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #f8f8f2;&quot;&gt;line&lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: #75715e;&quot;&gt;// 5 = alineacion izquierda&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #dddddd;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #f92672;&quot;&gt;END&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sobre la música, se tratan de canciones generadas con SUNO (una plataforma de música generada por IA) que he convertido a wav. En mi caso tengo un mac y esto me permite hacerlo con un simple comando:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;afconvert -f WAVE -d UI8@11025 -c 2 CANCION.MP3 CANCION.WAV&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Este comando lo que hace es generar un wav en sonido estéreo a 11025Hz. Es una calidad bastante mala para los estándares actuales, pero me permite tener canciones de menos de 3 MB (el formato wav abulta mucho y las máquinas con MS-DOS no pueden permitirse malgastar RAM).&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Y para finalizar, aquí os dejo el gameplay completo del juego:&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;iframe allow=&quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;474&quot; referrerpolicy=&quot;strict-origin-when-cross-origin&quot; src=&quot;https://www.youtube.com/embed/ctFYWD8VweI&quot; style=&quot;border-radius: 15px;&quot; title=&quot;YouTube video player&quot; width=&quot;842&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;Prometo que intentaré que el próximo capítulo sea de un juego más fácil y menos complicado de programar.&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/02/aprendiendo-programar-para-ms-dos-con.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/6719366568974515924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/6719366568974515924'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/02/aprendiendo-programar-para-ms-dos-con.html' title='¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un bullet hell! (capítulo 3)'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmYr2-dYEaj-cbLSeseka9ciWX2pyumcAPVU0ClzfPzgN97cnPwwM8TCNAJAYh9dQ9wq4GSEp4sXuGM2SeDjmqFCnA4TobFbkEVPUEEfL1ntAf5zF3yCGGaMhCBh23fQZrrVtf8X3DysiEmqs2es-uU2IBA0YGF5wmj0mUUcy42HW6fB66f-4a/s72-w640-h400-c/000HD.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18651756.post-6278095497982301184</id><published>2026-01-13T23:11:00.009+01:00</published><updated>2026-01-14T21:48:27.232+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="devblog"/><category scheme="http://www.blogger.com/atom/ns#" term="div games studio"/><title type='text'>¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un JRPG! (capítulo 2)</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; ¡Hola a todos los entusiastas de la programación retro! Hoy vamos a sumergirnos de nuevo en el fascinante mundo de DIV Games Studio, un motor de juegos para MS-DOS de 1998 que nos permite crear videojuegos de la época con relativa facilidad. En esta entrada, crearemos un JRPG simple que demuestra conceptos fundamentales como el manejo de procesos, gráficos primitivos, tiles, NPCs y diálogos. El objetivo es enseñar los principios básicos de programación en DIV, ideal para principiantes que quieran dar sus primeros pasos en desarrollo de juegos. Aunque bueno, a lo largo de esta entrada veremos conceptos bastante avanzados.&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;¿Qué es DIV Games Studio?&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; DIV Games Studio es un entorno de desarrollo gratuito para crear juegos en MS-DOS. Utiliza un lenguaje similar al PASCAL, con énfasis en procesos (como hilos ligeros) para manejar lógica de juego, gráficos y audio. Es perfecto para prototipos rápidos y aprendizaje, ya que no requiere compiladores complejos. Si te pica el gusanillo, recuerda que este es el segundo capítulo que dedico a este lenguaje de programación. El primero lo tienes en el siguiente enlace: &lt;a href=&quot;https://www.elgeneralfailure.com/2025/06/aprendiendo-programar-para-ms-dos-con.html&quot;&gt;https://www.elgeneralfailure.com/2025/06/aprendiendo-programar-para-ms-dos-con.html&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;Estructura General del Código&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; El primer ejemplo que veremos es el JRPG_01.PRG (disponible en mi github: &lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_01.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_01.PRG&lt;/a&gt;). Si analizamos el código, veremos que este programa crea un mundo tileado (dividido en casillas) donde el jugador controla un personaje circular, interactúa con NPCs y navega por terrenos variados. Vamos a desglosarlo sección por sección.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;¿Por qué un juego donde la única salida por pantalla son primitivas gráficas y texto? Pues para recordaros un poco los tiempos de las priemras Atari, donde rara vez los juegos venían con sprites.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfgUDcpwIyJYqGouvoOEeKvsTn-igQdBKa5YQ4RpijIY7JCo9GJ1z8FroFO6BSAm4zT82zKdcfCCL16OxsziRyzH-_ddGkePch947iNfUG3CBAzcNXrdKKfkwWNcxrJKLwNyBHgq8G8rlgBY6wUOUVB5KeopT-qTOt-JsU9-wuwMX7SebOR7B_/s1504/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.58.39.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfgUDcpwIyJYqGouvoOEeKvsTn-igQdBKa5YQ4RpijIY7JCo9GJ1z8FroFO6BSAm4zT82zKdcfCCL16OxsziRyzH-_ddGkePch947iNfUG3CBAzcNXrdKKfkwWNcxrJKLwNyBHgq8G8rlgBY6wUOUVB5KeopT-qTOt-JsU9-wuwMX7SebOR7B_/w640-h528/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.58.39.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;1. Configuración inicial y estructuras globales&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Al inicio, definimos constantes y estructuras globales:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Constantes y Variables Globales: MAX_NPC limita los NPCs. Variables como offset_x y offset_y manejan el desplazamiento de la cámara.&lt;/li&gt;&lt;li&gt;Structs: Son como clases simples, pero sin lógica. Puedes verlo como la definición de una clase, pero sin implementación lógica (no tienen métodos, ni constructor):&lt;/li&gt;&lt;ul&gt;&lt;li&gt;Controls asigna teclas que utilizaremos en el juego;&lt;/li&gt;&lt;li&gt;Map almacena los tiles (celdas) del mapa; Se trata de una matriz que representa un tablero.&lt;/li&gt;&lt;li&gt;DialogState gestiona el estado de diálogos;&lt;/li&gt;&lt;li&gt;NPCData guarda info de NPCs (posicionamiento en los ejes x e y, sus diálogos, étc.);&lt;/li&gt;&lt;li&gt;Colors define paletas (bosques, ciudades, pasto, agua, montañas...);&lt;/li&gt;&lt;li&gt;ZLevels controla capas de dibujo;&lt;/li&gt;&lt;li&gt;ScreenConfig configura resolución y FPS.&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;Inicio del Programa: set_mode() establece la resolución (320x240), set_fps() fija 30 FPS. Luego inicializamos controles, mapa y NPCs, y lanzamos procesos.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAXgKa3tY4Ad_uYdCoWEM7T9X4R8enMFVgmmpn92hZIh9sXr0tF_hOaGXRbNHNGyFkzQKUKwvbiSL30O6c2dDeqHWT4W_X-hn0fH3rDEKxKXLHh93AekPo2bSg0u6aSCdHTc7o63t39yidpVWicvAcTQSQNinT40imuMtuX3J7yKDEHHKEi8el/s2326/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.53.24.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1416&quot; data-original-width=&quot;2326&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAXgKa3tY4Ad_uYdCoWEM7T9X4R8enMFVgmmpn92hZIh9sXr0tF_hOaGXRbNHNGyFkzQKUKwvbiSL30O6c2dDeqHWT4W_X-hn0fH3rDEKxKXLHh93AekPo2bSg0u6aSCdHTc7o63t39yidpVWicvAcTQSQNinT40imuMtuX3J7yKDEHHKEi8el/w640-h390/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.53.24.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FK1xn0Nxz8TJ4gFWvLLNisO7r5j4eHT700LW5xsq6GMysa4yChES5723ipFt5dPXopUbGDvTeMYHdtntv2ziTIzyprRD6WFMKR7gCeRJHW-nOat8E8fxQkrpDDGLUmwGXn4jWqbpk0ZWQh-1RVpcx3hDnnlebOa-jZe9t4V7rxpXuOYCoVLU/s2326/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.53.43.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;914&quot; data-original-width=&quot;2326&quot; height=&quot;252&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9FK1xn0Nxz8TJ4gFWvLLNisO7r5j4eHT700LW5xsq6GMysa4yChES5723ipFt5dPXopUbGDvTeMYHdtntv2ziTIzyprRD6WFMKR7gCeRJHW-nOat8E8fxQkrpDDGLUmwGXn4jWqbpk0ZWQh-1RVpcx3hDnnlebOa-jZe9t4V7rxpXuOYCoVLU/w640-h252/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.53.43.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Las variables globales permiten comunicación entre procesos, mientras que el uso de structs es para organizar la capa de datos. Puedes ver los structs como clases de objetos, pero sin implementación (no poseen métodos ni constructores).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;2. Inicialización de datos&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Tres procesos inicializan datos:&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;InitNPCData(): Rellena NPCData con nombres, diálogos, posiciones y colores.&lt;/li&gt;&lt;li&gt;InitMap(): Crea un mapa tileado (32x24 tiles de 32x32 píxeles). Asigna colores basados en posiciones: campos verdes, montañas marrones, ríos azules, etc. Incluye caminos y ciudades.&lt;/li&gt;&lt;li&gt;InitControls(): Asigna constantes de teclado (_LEFT, _RIGHT, etc.).&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAmfSmcqKXVUZVS4UfMphILRLZtxYNfYEYJY3QSugCLFWGKcoIU74lGI4y4CkMNE8I2aGPWF-oxMD8I7UVSUuSI-jW7pQEq-qP8sTJIn2iUa2Ecjm1a9wDldm8wzST49OVH1hKK43_Muu0cpVwp4XtxS0Sv4Kgv-irzsnGdFNC4tsZNtR5O5Sr/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.01.16.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1372&quot; data-original-width=&quot;2166&quot; height=&quot;406&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAmfSmcqKXVUZVS4UfMphILRLZtxYNfYEYJY3QSugCLFWGKcoIU74lGI4y4CkMNE8I2aGPWF-oxMD8I7UVSUuSI-jW7pQEq-qP8sTJIn2iUa2Ecjm1a9wDldm8wzST49OVH1hKK43_Muu0cpVwp4XtxS0Sv4Kgv-irzsnGdFNC4tsZNtR5O5Sr/w640-h406/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.01.16.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;img border=&quot;0&quot; data-original-height=&quot;1644&quot; data-original-width=&quot;2166&quot; height=&quot;486&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnrKxcNW0oxtCwNUJn-KK02Xfo6UbdUi37QwMbtdbHubSqQ_FszCMdDo8DgrM_pyKckB9e3knA-W4eWfjTabHr3P107fcMYte7VVE0GxATlILKVr4kIQXbRoXELMJHacABrYp4bZ2cOwXs61T3eYyxfm5Di-LelH2HXf6ni835P3DZAb0wABrV/w640-h486/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.01.27.jpg&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNLCQxlfQ0so1PwhbOjIOF8AU6yjWqtPdupL_6WZ_U4pRUB7xJcwGizD7y1NYQYGW2uyKJdbSVYsafig7n4dfPh-7ULqWZ4VSh_DTdNBi0fMd05a8klw5RFacOSz9Xxs9WWf4ZMLvvSCxHcUi0Ub63emYViKkrjmzuU9zylhFmdQORkJHe-IUg/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.01.43.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1492&quot; data-original-width=&quot;2166&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNLCQxlfQ0so1PwhbOjIOF8AU6yjWqtPdupL_6WZ_U4pRUB7xJcwGizD7y1NYQYGW2uyKJdbSVYsafig7n4dfPh-7ULqWZ4VSh_DTdNBi0fMd05a8klw5RFacOSz9Xxs9WWf4ZMLvvSCxHcUi0Ub63emYViKkrjmzuU9zylhFmdQORkJHe-IUg/w640-h440/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.01.43.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3P6pqBUo-ZfqPw6DW1BvFQ_UtMTbw_QZOTC6gVNbAkHuBR0PoPcIPzHl2oWZmnZ7QRJtGf_uboIz0oeHPyGkSVA_p-angXRoQ0_02fZU9Nr56VTYQ67kXatg6Z9mzf3VHZTEjcgEdKNWnfG2TXx0d3X7DDUDz9Lxta-4HgTTofX0iq3PMJ1Gd/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.02.00.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1434&quot; data-original-width=&quot;2166&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3P6pqBUo-ZfqPw6DW1BvFQ_UtMTbw_QZOTC6gVNbAkHuBR0PoPcIPzHl2oWZmnZ7QRJtGf_uboIz0oeHPyGkSVA_p-angXRoQ0_02fZU9Nr56VTYQ67kXatg6Z9mzf3VHZTEjcgEdKNWnfG2TXx0d3X7DDUDz9Lxta-4HgTTofX0iq3PMJ1Gd/w640-h424/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.02.00.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Como ya habréis intuído, DIV no es un lenguaje orientado a objetos, por lo que las estructuras que definimos no tienen un constructor, ni métodos. Esto hace que tengamos que crear procesos de inicialización, para que estos actúen como constructores de clase para dichas estructuras.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En cuanto al uso de bucles FROM para rellenar los distintos arrays de las estructuras, ten en cuenta que, a diferencia de los bucles como FOR o WHILE, los bucles FROM no son condicionales y el valor final a alcanzar debe de ser una constante. Puedes emplear en un FROM una operación con una constante (por ejemplo &quot;MAX_NPC - 1&quot;), pero no una variable dinámica que cambie de valor en tiempo de ejecución. De ser el caso, el compilador te remontará un error.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Respecto al tamaño del mapa, ¿por qué celdas de 32x32 píxeles? ¿Por qué no de 16x16 o de 8x8? Pues se trata de una decisión de diseño debido a que DIV cuenta con una limitación y es que nos deja sólo manejar al mismo tiempo un total de 256 primitivas gráficas (1 byte). Y, aunque tengamos 768 tiles (32x24), gracias al algoritmo implementando (si un tale está fuera de la pantalla, no lo dibujo), a las dimensiones de las tiles (32x32) y al tamaño de la resolución de pantalla (320x240), no nos encontraremos con esa limitación de sobrepasar las 256 primitivas simultáneas en pantalla.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Por cierto, el uso de primitivas gráficas está muy mal optimizado en DIV y DIV2, debido a que las rutinas empleadas son las suyas propias y tienen un costo alto (parece que dibujan las geometrías pixel a pixel, lo que tiene un costo muy elevado en comparación con cargar un sprite y hacer uso de él), especialmente si se usan transparencias. En consecuencia este ejemplo debería de ir terriblemente lento en &lt;i&gt;hardware&lt;/i&gt; real de la época, pero si tenéis un DoxBox configurado con cycles = MAX, el juego debería de iros a 30 frames por segundo (velocidad máxima que he definido con el set_fps).&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;3. Proceso de dibujo del mapa: map_drawer()&lt;/h4&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Este proceso renderiza el mapa visible:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Bucle Principal: En cada frame, borra dibujos antiguos con delete_draw() y cuenta y almacena IDs en draw_ids[].&lt;/li&gt;&lt;li&gt;Cálculo de Visibilidad: Determina qué tiles (celdas) mostrar basándose en offset_x/y, simulando un escenario con scroll.&lt;/li&gt;&lt;li&gt;Dibujo: Usa draw(3, color, 15, 0, x1, y1, x2, y2) para rectángulos rellenos y hacemos uso de draw_z con la estructura ZLevels para establecer la capa de profundidad.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX8HOu8votAOjs2lrYldTXd4ZpLqSiTTrZ6LKjHd7sRN5NztAuWc3YE37gmcR7NPOuhWysA55C9ovj4ED7E7FaP-MdBSGEde3-T0qYqvdPsIbdv53Ndh28LmLdbvMC2nW57fJ3dHG4-POt5wEiQjHw0x2TYysxP5d1Gn2HVTNb3q1KjZhNp1QR/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.13.52.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1648&quot; data-original-width=&quot;2166&quot; height=&quot;486&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX8HOu8votAOjs2lrYldTXd4ZpLqSiTTrZ6LKjHd7sRN5NztAuWc3YE37gmcR7NPOuhWysA55C9ovj4ED7E7FaP-MdBSGEde3-T0qYqvdPsIbdv53Ndh28LmLdbvMC2nW57fJ3dHG4-POt5wEiQjHw0x2TYysxP5d1Gn2HVTNb3q1KjZhNp1QR/w640-h486/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.13.52.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Claramente este bucle está poco optimizado, puesto que hacemos limpieza y redibujado de la pantalla en cada frame. Para distinguir los distintos niveles de profundidad (mapa, npc o jugador), utilizamos la variable global de draw_z. No obstante, el manejo de draw_z es bastante problemático en DIV. Realmente no existe un z-buffer para las funciones de primitivas en la que puedas indicar &quot;esto va detrás&quot;, &quot;esto va en primer plano&quot;, como sí que existe en los sprites. Draw_z es una variable global, que afecta a TODAS las primitivas gráficas a la vez y es importante que, si juegas con esta variable, su valor modificado esté muy cerca en código al draw que dibuja el objeto, puesto que, al no contar con &lt;i&gt;mutex&lt;/i&gt; (semáforos), en caso de que el procesador priorice otro proceso, puedes encontrarte con cambios no deseados de profundidad (del estilo dibujar el mapa encima del jugador). Este problema se hace especialmente notorio en máquinas potenters, que procesan un mayor número de frames por segundo.&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; El principal problema que hay con draw_z es que, al ser una variable global del propio &lt;i&gt;framework&lt;/i&gt;, en el momento que todos los procesos ejecutan el comando FRAME, encargado de dibujar todo un fotograma completo en pantalla, todas las primitivas que vayan a dibujarse por pantalla tendrán realmente la misma profundidad. Para &lt;i&gt;bypasear&lt;/i&gt; este problema la única solución seria que hay es forzar una impresión puramente secuencial, forzando a dibujar primero por lógica el mapeado y después los personajes (cosa que no hago en este ejemplo), lo cual entra en conflicto con la idea de usar procesos independientes para cada cosa. Por suerte este problema no lo tenemos con los sprites o imágenes de fondo.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Si os fijáis, este tema del z-buffer con primitivas no es algo tan raro, en juegos de Atari, por ejemplo, era bastante común tener efectos de parpadeos de personajes si esto se implementaba mal (del estilo asegurarse a&lt;i&gt;&amp;nbsp;&lt;/i&gt;dibujar&amp;nbsp;el personaje en un fotograma distinto al escenario), o incluso en la primera PlayStation el manejo de los juegos 3D daban problemas notorios de perspectiva, al no saberse interpretar correctamente qué texturas tenían que sobreponerse sobre otras.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;4. Proceso del jugador: player()&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Maneja movimiento, colisiones y interacciones:&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;Movimiento: Ajusta velocidad por terreno (bosques/montañas ralentizan) y evita agua con &lt;i&gt;checks&lt;/i&gt; de colisión.&lt;/li&gt;&lt;li&gt;Cámara: offset_x/y centran la vista en el jugador.&lt;/li&gt;&lt;li&gt;Dibujo: Dibuja un círculo con draw(5, 15, 15, 0, ...).&lt;/li&gt;&lt;li&gt;Interacción: Calcula la distancia a NPCs; presiona ENTER para dialogar con el más cercano.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5pr9FktIMiHJpFam9UakjbVUf4Xxa0ITOWAsX6z7UVkoFwKUPWslvia68YGVhaHZPrE9ZUy7TUkLxbrhLjnRPA0YprhKxttkmYBA6Pz_b6A6kUtQpnY8ymAScRORgW2Vz9Q2Z_eHHRFUVyWzsIVMVlREgfmzPu6hJR44NOI8L18autLm8Jwfy/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.19.56.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1604&quot; data-original-width=&quot;2166&quot; height=&quot;474&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5pr9FktIMiHJpFam9UakjbVUf4Xxa0ITOWAsX6z7UVkoFwKUPWslvia68YGVhaHZPrE9ZUy7TUkLxbrhLjnRPA0YprhKxttkmYBA6Pz_b6A6kUtQpnY8ymAScRORgW2Vz9Q2Z_eHHRFUVyWzsIVMVlREgfmzPu6hJR44NOI8L18autLm8Jwfy/w640-h474/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.19.56.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjveesQ52B3L6bTEUX0zUHfHCtDKy5-2E4YL2jvH5yAyguwtDxJ1sVH6v4qhlihHTbke_Yd7bMfjmxslXSdCuREiTF5gpZENMDap4xreOlD85VMl9ekwUHBoRTv_eIG7cGqYpM_wMPrAyIcr2lqNEsJKjQHOc3OZfPxhB4xWkenz30TFAZ0Qknz/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.20.12.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1518&quot; data-original-width=&quot;2166&quot; height=&quot;448&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjveesQ52B3L6bTEUX0zUHfHCtDKy5-2E4YL2jvH5yAyguwtDxJ1sVH6v4qhlihHTbke_Yd7bMfjmxslXSdCuREiTF5gpZENMDap4xreOlD85VMl9ekwUHBoRTv_eIG7cGqYpM_wMPrAyIcr2lqNEsJKjQHOc3OZfPxhB4xWkenz30TFAZ0Qknz/w640-h448/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.20.12.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-njtidSHbfmBOEaORAfJ7JxuYRqxBGOeNg_Hs1xdqGEqrx7CYDoKNW5HjaybUnUJQ0RBOinpA3O2JuD9eq0HS_y4-9Pc_Xn88CBXglRWELZARpsOMQ6er3MqS3gQH106lW2oAjTcw0E6AjnV4QXrMZ3Uyqovvh_TdgKtfLd8EFPDAWNyuwTp/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.20.24.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1492&quot; data-original-width=&quot;2166&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt-njtidSHbfmBOEaORAfJ7JxuYRqxBGOeNg_Hs1xdqGEqrx7CYDoKNW5HjaybUnUJQ0RBOinpA3O2JuD9eq0HS_y4-9Pc_Xn88CBXglRWELZARpsOMQ6er3MqS3gQH106lW2oAjTcw0E6AjnV4QXrMZ3Uyqovvh_TdgKtfLd8EFPDAWNyuwTp/w640-h440/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.20.24.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En player capturamos los controles y verificamos si la casilla de destino es una montaña o un bosque para relentizar la velocidad del jugador y de paso evitamos que se pueda cruzar por una casilla de agua. En lo que concierne a la rutina para calcular cual es el NPC más cercano, aunque DIV tiene funciones para calcular la distancia entre dos procesos (distancia = get_dist(&amp;lt;código identificador&amp;gt;) o distancia = fget_dist(x, y, id2.x, id2.y)), hago uso de una simple función algebraica basada en el Teorema de Pitágoras para obtenerla (distancia = sqrt((player_x - NPCData[i].x) * (player_x - NPCData[i].x) + (player_y - NPCData[i].y) * (player_y - NPCData[i].y)).&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;5. Proceso de NPCs: npc(id_char)&lt;/h4&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Renderiza los NPC como círculos:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Visibilidad: Solo dibuja si el NPC está en pantalla.&lt;/li&gt;&lt;li&gt;Dibujo: Similar al jugador, con draw_z = ZLevels.npc.&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVJ4cIlmFiFoqbIsvINyDlqSnh8WksL2xg3hoi6hyXC4HxjQylCo7aJvcumGzIniUs6RvZ2e_AXxGJ9Mw-AgCmlIWsbGngz2DKxXlHcDySaEQKHzf_dC60r0ezi8_E3PIitNQ8075R1PnQgWuynuJvSbxuRQwrhjb0m4oZ-VCu1O2Hs1SS1qcM/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.29.04.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1124&quot; data-original-width=&quot;2166&quot; height=&quot;332&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVJ4cIlmFiFoqbIsvINyDlqSnh8WksL2xg3hoi6hyXC4HxjQylCo7aJvcumGzIniUs6RvZ2e_AXxGJ9Mw-AgCmlIWsbGngz2DKxXlHcDySaEQKHzf_dC60r0ezi8_E3PIitNQ8075R1PnQgWuynuJvSbxuRQwrhjb0m4oZ-VCu1O2Hs1SS1qcM/w640-h332/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.29.04.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;6. Sistema de diálogos: dialogue(name, text)&lt;/h4&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Abre una ventana de texto:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Animación: Construye una cadena de texto con el diálogo del NPC juntando letra a letra.&lt;/li&gt;&lt;li&gt;Input: ENTER para auto-completar el texto y/o cerrar el diálogo.&lt;/li&gt;&lt;li&gt;Dibujo: Uso de draw() para el fondo y write() para texto.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiDz2hZCytRp7mIK2Zc6fDsvi5fpZF8gj3UNInvBcv2PepSpWa-12Ut6QD3qLCoVPlkqFVRTrFIfvTwK_rJ499SiZ5kiOo6JafU6gHKeGkdURwtXV6r-xrOJHArnHKNz6jgAJx-ffEAxFJLMD7Y2FOwZrmFqW7I9foITA9YzhRZ30wGsKZvi2m/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.30.40.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1650&quot; data-original-width=&quot;2166&quot; height=&quot;488&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiDz2hZCytRp7mIK2Zc6fDsvi5fpZF8gj3UNInvBcv2PepSpWa-12Ut6QD3qLCoVPlkqFVRTrFIfvTwK_rJ499SiZ5kiOo6JafU6gHKeGkdURwtXV6r-xrOJHArnHKNz6jgAJx-ffEAxFJLMD7Y2FOwZrmFqW7I9foITA9YzhRZ30wGsKZvi2m/w640-h488/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.30.40.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXElvV3PDSU4Uurnp7TMd9NdPmFoepvmjB09JuVMD7F3siGpRTcAMoEuJrvDBZe-twuh29hTf1rhgK5pVTbzoZpL4A4VhKWLp575quCgMe0LVynD_f3Yc6GvvdF_y7nyIfO_fnZqWgHyMJzJPZwDjc3cTCuPc9p8kAMc953A6Aa6xXjW7FbNHZ/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.30.55.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1174&quot; data-original-width=&quot;2166&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXElvV3PDSU4Uurnp7TMd9NdPmFoepvmjB09JuVMD7F3siGpRTcAMoEuJrvDBZe-twuh29hTf1rhgK5pVTbzoZpL4A4VhKWLp575quCgMe0LVynD_f3Yc6GvvdF_y7nyIfO_fnZqWgHyMJzJPZwDjc3cTCuPc9p8kAMc953A6Aa6xXjW7FbNHZ/w640-h346/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.30.55.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicbmAQcVmiLhkqbg_Rzsdj1wBhhLkc790cKjPDN6SPdgWvTago7sZ3edyMzbAXQLDTxxru04-ZZk4_zww7gBq6I7C2PMFHFJIz1JUTi-gGsbRFhWxOYQVkcS8bt8kNv_H_x3nVPJs-5xeQEdTcJ1YAUs0nm5VAOj9aw2XYVHu-qUkTaN6uVAcW/s2166/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.31.08.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1336&quot; data-original-width=&quot;2166&quot; height=&quot;394&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicbmAQcVmiLhkqbg_Rzsdj1wBhhLkc790cKjPDN6SPdgWvTago7sZ3edyMzbAXQLDTxxru04-ZZk4_zww7gBq6I7C2PMFHFJIz1JUTi-gGsbRFhWxOYQVkcS8bt8kNv_H_x3nVPJs-5xeQEdTcJ1YAUs0nm5VAOj9aw2XYVHu-qUkTaN6uVAcW/w640-h394/Captura%20de%20pantalla%202026-01-05%20a%20las%2020.31.08.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 2&amp;nbsp;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Con todo esto ya tendríamos algo funcional: Un personaje que se pasea por un mapa y que habla con distintos NPC. Este código demuestra lo esencial de DIV: Procesos concurrentes, dibujo primitivo y manejo de estado. Pero a nivel jugable, poco podemos hacer y, para extenderlo y hacerlo más disfrutare,&amp;nbsp; podríamos agregar un inventario y más mapas... Y ahí surge el segundo ejemplo que os traigo hoy, el &quot;JRPG_02.PRG&quot; (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_02.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_02.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;En esta segundo ejemplo, nos en una versión optimizada que introduce mejoras significativas. Veremos cómo estas optimizaciones no solo mejoran el rendimiento y la jugabilidad, sino que también enseñan conceptos más avanzados de programación en DIV.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; JRPG_01.PRG era funcional, pero tenía limitaciones: redibujaba el mapa entero cada frame (causando flickering), usaba procesos separados para NPCs (ineficiente, imaginad un mapa con 100 npc), y carecía de mapas múltiples o inventario. Esta nueva resuelve estos problemas con optimizaciones que reducen el overhead de CPU y añaden más funcionalidades. Vamos a desglosar las mejoras clave:&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;1. Dirty Rectangles Approach para redibujar el mapa sólo si es necesario&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;El Dirty Rectangles Approach (enfoque de rectángulos sucios) es una técnica de optimización en programación gráfica 2D diseñada para reducir la carga de procesamiento al evitar el redibujado innecesario de toda la pantalla, siguiendo a su vez la premisa del&amp;nbsp;&quot;lazy evaluation&quot; (no hagas trabajo innecesario).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En la función de map_drawer, el problema con nuestro enfoque inicial era que el proceso redibujaba todo el mapa visible cada frame, incluso si la cámara no se movía. Esto consumía recursos innecesariamente. Para aplicar esta estrategia, hago uso de&amp;nbsp; variables globales para rastrear cambios de estado y redibujamos el mapa sólo cuando cambian los valores de offset_x, offset_y o current_map:&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQxCEiu3ySs5iNKhj8BvAqdYGtdm3Lf0f1QphuyJLT7TlVpMZhig-XUkiJAgHjrOqnAuT_IfSJ6XAgY-k0kn2siWRHaNFEuVs9eYln5qD5Lj8cvBhG5SISJs_zcQX2ofrEl9GacZAEIlu-0On_NpgqnJdIO3G49fm_CZjzLeZs7pqkHtaMHx5/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2011.49.22.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1706&quot; data-original-width=&quot;2598&quot; height=&quot;420&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQxCEiu3ySs5iNKhj8BvAqdYGtdm3Lf0f1QphuyJLT7TlVpMZhig-XUkiJAgHjrOqnAuT_IfSJ6XAgY-k0kn2siWRHaNFEuVs9eYln5qD5Lj8cvBhG5SISJs_zcQX2ofrEl9GacZAEIlu-0On_NpgqnJdIO3G49fm_CZjzLeZs7pqkHtaMHx5/w640-h420/Captura%20de%20pantalla%202026-01-06%20a%20las%2011.49.22.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;2. Renderizado consolidado en un solo proceso&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En el código inicial teníamos el renderizado de cada proceso por separado (map_drawer, npc y player), lo cual suele ser lo normal en los juegos que programamos con DIV, pero trae dos problemas principales en nuestro diseño: Al usar sólo primitivas gráficas en lugar de sprites, podemos sufrir de flickering y superposiciones mal gestionadas por estar todo en la misma coordenada del z-buffer; Además, trae problemas de escalabilidad, puesto que cuantos más NPC pongamos en el mapa, más llamadas ralentizaremos nuestro juego (imaginaros 100 procesos NPC compitiendo con el map_drawer o el proceso del player).&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Con esta nueva versión todo el dibujo se consolida en map_drawer y eliminamos el proceso de NPC al ser redundante (ahora entendéis por qué usaba el teorema de Pitágoras para obtener el NPC más cercano al jugador).&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsh-_WuKVL3fhyonoDaLr72ZLu3Zi5eAvIesUzr07uzkvKxcOY6e2Tq2UkBVrttj_22rSm5d6Kn_O-g-ZzfQJY_zJ5MmGOHcAaAYP2loOWxjXlCBFg6QPYSMt7sfVRlvaWSDnrKFGNADCP3vjmrl1elUEHdjbQ4vq2wi1DBAwIEzHMQNVGbhQA/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.19.41.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1608&quot; data-original-width=&quot;2598&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsh-_WuKVL3fhyonoDaLr72ZLu3Zi5eAvIesUzr07uzkvKxcOY6e2Tq2UkBVrttj_22rSm5d6Kn_O-g-ZzfQJY_zJ5MmGOHcAaAYP2loOWxjXlCBFg6QPYSMt7sfVRlvaWSDnrKFGNADCP3vjmrl1elUEHdjbQ4vq2wi1DBAwIEzHMQNVGbhQA/w640-h396/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.19.41.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;3. Múltiples mapas y transiciones suaves&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;En esta nueva versión tenemos tres mapas: Un mamamundi de 32x24 tiles y dos ciudades de 8x8. Para gestionar esto transformamos el struct MapData en un array y creamos una variable global &quot;current_map&quot; que nos indica en qué mapa nos encontramos.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj29P1t1kL_WhyphenhyphenzqOuYClWZnOrNzvSRMH74o2R32Vx85pNaJLPS_RSnEedvfQAFmJ5UvdahUGGRQ9BpPKrUre_n1dLgN4sgf2nTen9IkAPumwT4CcQHwnJMU0IhgK0D8r_kusKTCC_8T-Q6nNQ5l6bVJcaAEhOlVnnC_SUBz_C5wChwPc_ni2td/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.25.50.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;962&quot; data-original-width=&quot;2598&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj29P1t1kL_WhyphenhyphenzqOuYClWZnOrNzvSRMH74o2R32Vx85pNaJLPS_RSnEedvfQAFmJ5UvdahUGGRQ9BpPKrUre_n1dLgN4sgf2nTen9IkAPumwT4CcQHwnJMU0IhgK0D8r_kusKTCC_8T-Q6nNQ5l6bVJcaAEhOlVnnC_SUBz_C5wChwPc_ni2td/w640-h236/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.25.50.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;Por ahora las áreas de teletransporte (si entro en X voy al mapa Y) las defino por código &lt;i&gt;hardcode&lt;/i&gt; y también filtro así qué NPC están en cada mapa, pero la idea es que en el código final (el del siguiente ejemplo) veáis un enfoque mejor estructurado (definiendo estas áreas y filtros directamente en las estructuras de datos). Otra cosa que me gusta señalar, es el uso de fade_on y fade_off para forzar fundidos de pantalla cuando cambiamos de mapa.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzbJYRK6S5vzoXUk66LkKrP6qVmgUsAJaTYRIMxc42CP5TgAklnspt-_8nStWGTZsrDqiMDofypgiR-E_gnrBhjWEEgTHvUXbV2KEh0cWBLxcZ5SvEzXzUjMLj3tjoK2eHa87PNW8huQMtidZFfA4FFyJvSnapHisT-KKE0ZTBd8VdQ22uhCMJ/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.33.56.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1584&quot; data-original-width=&quot;2598&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzbJYRK6S5vzoXUk66LkKrP6qVmgUsAJaTYRIMxc42CP5TgAklnspt-_8nStWGTZsrDqiMDofypgiR-E_gnrBhjWEEgTHvUXbV2KEh0cWBLxcZ5SvEzXzUjMLj3tjoK2eHa87PNW8huQMtidZFfA4FFyJvSnapHisT-KKE0ZTBd8VdQ22uhCMJ/w640-h390/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.33.56.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh260kaKK7fYgNIIgM3Wqb9znJIMJnoGGsr-uam83cLeHSIdEWQvPN-OqisRGsbq8r8JPTWRaEYfS_NSMgOkgZbClr45PuEk5LM1uwzvFE5CBFjlAEHim6_1l2mvDLRJBMD72eukD11BUjudA_ECrYw4WY14um8Il2CWzIXJk4fJEcS5aOZPiOY/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.34.15.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1008&quot; data-original-width=&quot;2598&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh260kaKK7fYgNIIgM3Wqb9znJIMJnoGGsr-uam83cLeHSIdEWQvPN-OqisRGsbq8r8JPTWRaEYfS_NSMgOkgZbClr45PuEk5LM1uwzvFE5CBFjlAEHim6_1l2mvDLRJBMD72eukD11BUjudA_ECrYw4WY14um8Il2CWzIXJk4fJEcS5aOZPiOY/w640-h248/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.34.15.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;4. Sistema de inventario&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En esta nueva versión disponemos de un inventario de hasta 10 objetos. Estos objetos básicamente son un array de 10 strings (cadenas de texto). El sistema tiene mucho margen de mejora y, por ejemplo, podemos crear un struct objeto y meterle un &lt;i&gt;integer&lt;/i&gt; de cuantía, pero no quiero adelantar acontecimientos del próximo ejemplo.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; Los strings en DIV son unidimensionales, por lo que no podemos crear un array de strings de forma implícita, ni siquiera forzando la definición de una matriz (array de arrays), pero podemos crear un array de una estructura que contenga únicamente un string para poder crear un falso array de strings:&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeqH8wsp-g0paaD-jtZscKPa-_urUGPDlBVAVYWHQzjzgcM7FFbAa0Wc94JNDv0dRXSCOZy0LHJ5AFq9hQxH0D7xlTIzZ2JGeS0M2GnJy5RHQ7Un0nhYTp0Z43oL_SDndU0Gy1rkr6KcHYQ50iV5Ln4y09ZJeTtCQBOfdDKEsBs9hTrsLAhRY9/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.37.16.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;122&quot; data-original-width=&quot;2598&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeqH8wsp-g0paaD-jtZscKPa-_urUGPDlBVAVYWHQzjzgcM7FFbAa0Wc94JNDv0dRXSCOZy0LHJ5AFq9hQxH0D7xlTIzZ2JGeS0M2GnJy5RHQ7Un0nhYTp0Z43oL_SDndU0Gy1rkr6KcHYQ50iV5Ln4y09ZJeTtCQBOfdDKEsBs9hTrsLAhRY9/w640-h30/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.37.16.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; La gestión de strings en div requieren una mención 
especial, puesto que cuando hacemos una definición del estilo &quot;string cadena[256]&quot; 
no estás creando un array de 256 strings, si no un string de 256 
caracteres (la talla del string). Además, cabe mencionar que el operando
 &quot;=&quot; copia por referencia en los strings, es decir, la asignación &quot;a = 
b&quot; hace que las cadenas a y b apunten a la misma región de memoria:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; string a = &quot;123&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; string b = &quot;456&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; a = b;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; b[0] = &quot;5&quot;;&amp;nbsp; // -&amp;gt; a y b valen ahora &quot;556&quot;.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; Esto
 suele ser un quebradero de cabeza para cualquiera que no esté 
acostumbrado a trabajar con punteros, por lo que si quieres copiar el 
contenido de un string sin que ambas variables apunten a la misma región
 de memoria, lo ideal es usar la función strcpy (uso -&amp;gt; 
strcpy(cadena_destino, cadena_origen).&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL68PvoCXJRzi9yp9x05GApCDRXXT0TrkV9oNXNgPOTLyJPEYGEBn39IvuJMWPth8yOHeVVPSXEYHq4eigHe1t547swdPSTKkiPSHAWyOIuVpEtjFZr2r-uAYLGhOk3rbE3jQ35yRhZzJKA1MlgwOp4hAvpJD2-S5SW0Jy2SAWWyB03yMN237J/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.11.49.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;776&quot; data-original-width=&quot;2598&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL68PvoCXJRzi9yp9x05GApCDRXXT0TrkV9oNXNgPOTLyJPEYGEBn39IvuJMWPth8yOHeVVPSXEYHq4eigHe1t547swdPSTKkiPSHAWyOIuVpEtjFZr2r-uAYLGhOk3rbE3jQ35yRhZzJKA1MlgwOp4hAvpJD2-S5SW0Jy2SAWWyB03yMN237J/w640-h192/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.11.49.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Esto por suerte sólo pasa 
con las cadenas de texto, el reto de tipo de datos de DIV suelen 
copiarse por valor y no por referencia. Y bueno, por ahora la única forma de obtener objetos es aceptando el ofrecimiento de un NPC que se encuentra en el mapamundi, pero la idea es que al final podamos recogerlos del suelo, comprarlos o obtenerlos de cofres del tesoro. Además, si pulsamos la tecla &quot;escape&quot; veremos un inventario con la lista de objetos que tenemos acumulados.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi95UmU_M4KiJItPnd2fM-qR1DZOzEu0m2SwigeWKyK0hsJb5PJSZ70aZBG4GwUCESf_JuJNUgQAVBR0OwilfxI-CJVjwrJUQIb1gD7V3s-ACWSSkntYtPpi9f_hReIZ-KKcUM6LTQJPY5GKsR-eb7AzTqngGuoudbvbanKamcq1hlQS3PJmlgm/s1504/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.47.19.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi95UmU_M4KiJItPnd2fM-qR1DZOzEu0m2SwigeWKyK0hsJb5PJSZ70aZBG4GwUCESf_JuJNUgQAVBR0OwilfxI-CJVjwrJUQIb1gD7V3s-ACWSSkntYtPpi9f_hReIZ-KKcUM6LTQJPY5GKsR-eb7AzTqngGuoudbvbanKamcq1hlQS3PJmlgm/w640-h528/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.47.19.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtxglZ-jLMCdvv61PJ1EIocEmIQGtdexw1TJQvkGGyer8rbcL6K5HGsRbylWcCBxKooj1bpkQzEYuygvHn3DvEvHSxHbJ2Ye4aG9ZQ6YJ1HNR8tL7i-3z3_ElXO5BxT-NTBUW725gUdgUhWbtrvJYN5iviecYHc0Cl3n6gGZ5tBXtZnYFmUDzt/s1504/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.47.36.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtxglZ-jLMCdvv61PJ1EIocEmIQGtdexw1TJQvkGGyer8rbcL6K5HGsRbylWcCBxKooj1bpkQzEYuygvHn3DvEvHSxHbJ2Ye4aG9ZQ6YJ1HNR8tL7i-3z3_ElXO5BxT-NTBUW725gUdgUhWbtrvJYN5iviecYHc0Cl3n6gGZ5tBXtZnYFmUDzt/w640-h528/Captura%20de%20pantalla%202026-01-06%20a%20las%2012.47.36.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;6. Música de fondo&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En este ejemplo no he añadido aún efectos de sonido, pero si os fijáis se hace uso de load_Song() y play_song() para ejecutar una de las canciones que vienen con la instalación de DIV2. La función de &quot;load_song()&quot; soporta formatos los MOD, S3M y XM. Estos formatos pertenecen a la familia de los archivos de módulos (Tracker music) y, a diferencia de un MP3 que es una grabación de audio digital, estos archivos funcionan como una partitura digital con sus propios instrumentos incluidos. Un archivo de módulo no contiene una onda de sonido continua (como un wav, un pcm, un mp3 o un ogg), si no que contiene &quot;&lt;i&gt;samples&lt;/i&gt;&quot; de sonido (una nota de piano, un golpe de batería, etcétera) y un secuenciador (una lista de instrucciones que indica qué nota tocar, en qué momento, con qué efecto (volumen, vibración) y en qué canal).&amp;nbsp;Estos ficheros ocupan muy poco espacio (KB o pocos megas) manteniendo una calidad de sonido alta, ya que el audio se genera en tiempo real.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLOl8b137JkE76MCJK83I3Fxn0rzemZN4qzLO_C-j4NG3825FdNMN3JNQozv8YIRWFOfElGgBmQhVLJvxf7lbfGvJYey9Ot5Uh2SAbzqwpHK93XnF0g58q6oAUSy7h5hdsESXla9snz7-3ZcvTnNRyIbsnDGT2oszMj6gYY3iPxkzK8fIcZW2c/s1372/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.26.42.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;1372&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLOl8b137JkE76MCJK83I3Fxn0rzemZN4qzLO_C-j4NG3825FdNMN3JNQozv8YIRWFOfElGgBmQhVLJvxf7lbfGvJYey9Ot5Uh2SAbzqwpHK93XnF0g58q6oAUSy7h5hdsESXla9snz7-3ZcvTnNRyIbsnDGT2oszMj6gYY3iPxkzK8fIcZW2c/w640-h180/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.26.42.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioz3p5XdbUzI10WF4YR9eef9LgTpAYYefr3lIKmMhTfn-NrsxG5mcMFucpkFr5XZ8-hITeDiIuIebTWMviCI0JNPkNQop52WDWO13gzdmDhdUnCAaYrUuh_8exKDSU5o6lhSoX7XzVvPZdySfkqDSg0Ln2PAL1MILy5mumnBeyhmqynCArtAYD/s2598/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.19.50.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;776&quot; data-original-width=&quot;2598&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioz3p5XdbUzI10WF4YR9eef9LgTpAYYefr3lIKmMhTfn-NrsxG5mcMFucpkFr5XZ8-hITeDiIuIebTWMviCI0JNPkNQop52WDWO13gzdmDhdUnCAaYrUuh_8exKDSU5o6lhSoX7XzVvPZdySfkqDSg0Ln2PAL1MILy5mumnBeyhmqynCArtAYD/w640-h192/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.19.50.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;7. Diálogos interactivos con recompensas&lt;/h4&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; Otra de las adaptaciones de este ejemplo es la inclusión de dialogos básicos con elecciones de &quot;Sí/No&quot; que además permiten obsequiar con objetos. Para ello hago uso de flags de estados y extiendo las estructuras de diálogos y NPC.&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPuxLhwLPvfM73f2r5iRA5n0EJgXgDUYkOMKSAZmMHUG2DKOOUOGA72WhYIv33IbSmzGoEivz5aiM-07I3xLeKpYGg2WZovbYI98LcZAYAb34CRfUaxSlBwftSo0nAQHFBmqRzNUNNs-KxCd1OAq7lLulwgjHYjusJMS9EUUi8MrfTj7YpXkl3/s2550/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.30.14.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;898&quot; data-original-width=&quot;2550&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPuxLhwLPvfM73f2r5iRA5n0EJgXgDUYkOMKSAZmMHUG2DKOOUOGA72WhYIv33IbSmzGoEivz5aiM-07I3xLeKpYGg2WZovbYI98LcZAYAb34CRfUaxSlBwftSo0nAQHFBmqRzNUNNs-KxCd1OAq7lLulwgjHYjusJMS9EUUi8MrfTj7YpXkl3/w640-h226/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.30.14.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKIFKRXkyB2KAd7DOapDqqCHuflKwW7JUa8o4wEIZ-yF_jd7arzxGdOnsMneCuvWg8Dei3kTwXbAw079A9bp_a7U7gUV-Ri6bqjshHdul4piypyGFJdKlmde7EjKAmjfSDO1shTK3V60sHNIfJmcMVAYglJF72gDrmAaNbSkHDFWbtmi1yNR5q/s2604/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.31.26.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;910&quot; data-original-width=&quot;2604&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKIFKRXkyB2KAd7DOapDqqCHuflKwW7JUa8o4wEIZ-yF_jd7arzxGdOnsMneCuvWg8Dei3kTwXbAw079A9bp_a7U7gUV-Ri6bqjshHdul4piypyGFJdKlmde7EjKAmjfSDO1shTK3V60sHNIfJmcMVAYglJF72gDrmAaNbSkHDFWbtmi1yNR5q/w640-h224/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.31.26.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 3&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, en la descripción del ejemplo anterior vimos varias posibles mejoras:&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: left;&quot;&gt;Definir los NPC que salen en cada mapa dentro de la estructura de mapas.&lt;/li&gt;&lt;li style=&quot;text-align: left;&quot;&gt;Definir los teletransportes (si estoy en la casilla X -&amp;gt; voy al mapa Y) dentro de la estructura de mapas.&lt;/li&gt;&lt;li style=&quot;text-align: left;&quot;&gt;Adaptar el sistema de inventario para permitir cuantías (en vez de ver el mismo ítem en varias líneas) y además obtener una descripción.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhahbfrlzwtBaqkoSfOK0wGQokV2WF7DuHv2HNjFQIMR3cjq_-wlywXTSZHM8ssRbsObRJ2bREoDN_cSCH3ByWs4isdm4Fox1RYmK0HlsbgHOj58-9WGWDFh3jpYCE9uHfn3BQO8CbFwVGt9Dd91H5Vox_ye23lKDeLDC_4U20j2eQpeefe_q1k/s1504/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.59.56.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhahbfrlzwtBaqkoSfOK0wGQokV2WF7DuHv2HNjFQIMR3cjq_-wlywXTSZHM8ssRbsObRJ2bREoDN_cSCH3ByWs4isdm4Fox1RYmK0HlsbgHOj58-9WGWDFh3jpYCE9uHfn3BQO8CbFwVGt9Dd91H5Vox_ye23lKDeLDC_4U20j2eQpeefe_q1k/w640-h528/Captura%20de%20pantalla%202026-01-06%20a%20las%2021.59.56.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y dicho y hecho, el ejemplo 3 que encontraréis en mi github (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_03.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_03.PRG&lt;/a&gt;) realiza justamente todas esas adaptaciones en el código:&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;214&quot; data-original-width=&quot;1286&quot; height=&quot;106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLo69BTX7c5oAA9L2R6VAiVIrX1dKMxQd3yaozxwiScl7sMm9kriI_lgoX2DSclbLpnRNUS05dI1vSsbiOoXu8CAmoOTG4EM_msN9zwqai-0Z8ZyNkakMKuEfFJjreBLRiPkVlT09RnqyIkj4Okm6bptzsW_ru_XS09IXiUmAM9tpR78u2qv4h/w640-h106/Captura%20de%20pantalla%202026-01-06%20a%20las%2022.06.38.jpg&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBIplNfb578-wvD0GEmwTHCzXtae8mURmVjARnCRiJrabKY6QMFacq9eojG8UAsFr_AW98GPnR-pZJ3jR7ZQsvkOlQ6ImXp_fN88YuOVqrfawumbG-VLvYbEloPSncBSOUVVGWiuzmMrkN5zM4iPD5KLxn2dCSYC5IB3EIcNhzsT2dG2YG2BxN/s1286/Captura%20de%20pantalla%202026-01-06%20a%20las%2022.06.53.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;934&quot; data-original-width=&quot;1286&quot; height=&quot;464&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBIplNfb578-wvD0GEmwTHCzXtae8mURmVjARnCRiJrabKY6QMFacq9eojG8UAsFr_AW98GPnR-pZJ3jR7ZQsvkOlQ6ImXp_fN88YuOVqrfawumbG-VLvYbEloPSncBSOUVVGWiuzmMrkN5zM4iPD5KLxn2dCSYC5IB3EIcNhzsT2dG2YG2BxN/w640-h464/Captura%20de%20pantalla%202026-01-06%20a%20las%2022.06.53.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqR1Fcrp6bYmYBP0awqoj0G6J6-dcLYnOuDVmUktxGpWuwMkqHGrhhT2X_8hc3vo8ejY64NYF_liabC_Q1hZ_igVVaqdMI7RqTlAlLB86Nph0Z01E9nWG5Q-Pk-JBDSNXM5dGURhtZDUcDCflZueIYR_rvkbRWUrZeWzNAPb-nVJjg66mcvA9m/s1796/Captura%20de%20pantalla%202026-01-06%20a%20las%2022.07.46.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1086&quot; data-original-width=&quot;1796&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqR1Fcrp6bYmYBP0awqoj0G6J6-dcLYnOuDVmUktxGpWuwMkqHGrhhT2X_8hc3vo8ejY64NYF_liabC_Q1hZ_igVVaqdMI7RqTlAlLB86Nph0Z01E9nWG5Q-Pk-JBDSNXM5dGURhtZDUcDCflZueIYR_rvkbRWUrZeWzNAPb-nVJjg66mcvA9m/w640-h386/Captura%20de%20pantalla%202026-01-06%20a%20las%2022.07.46.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 4&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, en vez de definir los mapas, los teletransportes y los NPC en &lt;i&gt;hardcode&lt;/i&gt; dentro del código, podemos aprovechar que lo tenemos ya todo definido en una única estructura de datos (MapData) para guardar toda esa lógica en un fichero externo (imaginaros un futuro donde creamos un editor de niveles) y crear funciones en nuestro código para leer dicho fichero.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Con esto en mente he creado este cuarto ejemplo (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_04.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_04.PRG&lt;/a&gt;), que a nivel funcional es idéntico al tercer ejemplo, pero que carga los mapas y los ítems a través de ficheros &quot;.dat&quot; que genero con un programa que he creado únicamente para ese fin (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN.PRG&lt;/a&gt;). ¿Por qué es necesario crear un programa para crear el fichero &quot;.dat&quot;? Bueno, podríamos crear nuestro propio tipo de fichero en texto plano, modificarlo con un editor de texto y adaptar el código de nuestro juego para interpretarlo, pero lo fácil es coger una estructura ya existente y grabarlo &quot;tal cual&quot; para recuperarlo. El problema es que cuando escribimos una estructura de memoria al disco, estamos volcando código en binario, imposible de manipular con editores de texto.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;El hecho de guardar estructuras y objetos en formato binario dentro de un fichero no es algo raro y se hace a día de hoy (de hecho, así funciona la mayoría de los famosos ficheros &quot;&lt;i&gt;save&lt;/i&gt;&quot; de los juegos comerciales). A este proceso se le conoce como serialización y desserialización de un objeto. La diferencia es que aquí, en vez de hacer un &quot;save&quot; de nuestra partida, lo hacemos sobre la configuración de los mapas, NPC y objetos.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMh-W5g7Tc9Sb8nGFKTAdIiUKQDv7mcx9xvO-x-ciZJa_Kh0YO505aSdqttlG3nIgxRwYrFGzg3t2CWTZThX772x86JkJjQqruvxM46JLil0vWXSBT1PboLrcNs-1wCl200QfT5ZZ4msOJ2lHSZ9x1cU-ZgGl-tsd-k7Q_II0PE7bnkiljVTF0/s1806/Captura%20de%20pantalla%202026-01-07%20a%20las%200.29.43.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;978&quot; data-original-width=&quot;1806&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMh-W5g7Tc9Sb8nGFKTAdIiUKQDv7mcx9xvO-x-ciZJa_Kh0YO505aSdqttlG3nIgxRwYrFGzg3t2CWTZThX772x86JkJjQqruvxM46JLil0vWXSBT1PboLrcNs-1wCl200QfT5ZZ4msOJ2lHSZ9x1cU-ZgGl-tsd-k7Q_II0PE7bnkiljVTF0/w640-h346/Captura%20de%20pantalla%202026-01-07%20a%20las%200.29.43.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhca2qelcGfe2PdTqRWdBGdA5-yV1JY7f9UzbdMgozAO-BL22z2dODO5BIYGmFwtbG7i-4tbrSbKVNyPSUNk2Dt_hWfJwOjqCDd_CKdJPWiS0ExCHNTraDMFBYprx_CKouG8BK-cPhjzVJkzFjXzrHWwF4oF_3UApck5-WpeW1JvZOxAGrvkhWo/s1806/Captura%20de%20pantalla%202026-01-07%20a%20las%200.29.00.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1194&quot; data-original-width=&quot;1806&quot; height=&quot;424&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhca2qelcGfe2PdTqRWdBGdA5-yV1JY7f9UzbdMgozAO-BL22z2dODO5BIYGmFwtbG7i-4tbrSbKVNyPSUNk2Dt_hWfJwOjqCDd_CKdJPWiS0ExCHNTraDMFBYprx_CKouG8BK-cPhjzVJkzFjXzrHWwF4oF_3UApck5-WpeW1JvZOxAGrvkhWo/w640-h424/Captura%20de%20pantalla%202026-01-07%20a%20las%200.29.00.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 5&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, ¡podemos emplear &lt;i&gt;sprites&lt;/i&gt;&amp;nbsp;en vez de primitivas y añadirle animaciones a nuestro personaje.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Sobre la estrategia a subir manejando &lt;i&gt;sprites&lt;/i&gt;, hay que tener en cuenta que&amp;nbsp; DIV y DIV 2 trabajaban en modos VGA, que permiten mostrar en pantalla un máximo de 256 colores simultáneos, algo que en &lt;i&gt;frameworks&lt;/i&gt; actuales de desarrollo de videojuegos se queda muy corto. Esto significa que, antes de empezar a crear un fichero FPG y añadirle a porrón todos los &lt;i&gt;sprites&lt;/i&gt; que queramos, tenemos que pensar en cómo gestionaremos los colores de nuestra paleta.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Por ejemplo, podemos hacer que la mitad de los colores (128) sean para dibujar los escenarios, es decir, reservarlo para los &lt;i&gt;tiles&lt;/i&gt;. Una forma de optimizar al máximo esa limitación de colores, sería crear un sistema de diferentes ficheros FPG por nivel, es decir, hacer uso de un fichero FPG de &lt;i&gt;tiles&lt;/i&gt; por mapa (uno para el mapamundi y otros dos para cada ciudad), cada uno de ellos con sus propios 128 colores. No obstante, por comodidad, en este ejemplo utilizaré una única paleta de colores, pero simplemente que sepáis que es algo que podéis abordar para vuestros juegos.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Con los otros 128 colores restantes, debemos reservar uno (el de la posición 0) para el color transparente y podemos reservar otros 15 para las fuente del texto y los fondos (diálogos y menú). El resto de colores (112) los destinaríamos a 7 los personajes (1 jugador y 6 NPC), lo que nos daría un total de 16 colores por personaje. Para crear las tres paletas, podemos hacer uso de herramientas como GIMP, que nos permiten indexar un máximo de colores por imagen (Imagen&amp;gt; Modo&amp;gt; Indexado) y hacer uso de las distintas soluciones que ofrece el entorno DIV. En cuanto a los formatos, DIV y DIV2 tienen problemas para interpretar la versión actual de BMP, es incompatible con PNG y el formato JPG degrada calidad... Por lo que lo ideal es exportar los ficheros a PCX una vez ya hayas hecho en él todas las conversiones específicas (escalado e indexado).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9DI4Ya0W8Dz5CHXlK_D-8748i3LCSEGEPsByqbQ9ZAz_oK9D_KLTTIqHPBqCtrt09-2JvpgoP1r64P40VIbj_QxH7_x0zpvowGSQEroupcXE52h_p0dFH9aRC4edikGZFt1QQEVTr6Dg6XWSWZxtBt4wtyQrVx_jm4rp_rDuRZIQhGyUJTZ8m/s3584/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.03.28.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2264&quot; data-original-width=&quot;3584&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9DI4Ya0W8Dz5CHXlK_D-8748i3LCSEGEPsByqbQ9ZAz_oK9D_KLTTIqHPBqCtrt09-2JvpgoP1r64P40VIbj_QxH7_x0zpvowGSQEroupcXE52h_p0dFH9aRC4edikGZFt1QQEVTr6Dg6XWSWZxtBt4wtyQrVx_jm4rp_rDuRZIQhGyUJTZ8m/w640-h404/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.03.28.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Imagen original en HD (1920x1080)&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCEFmET8oDVX2uSUAChT8YhRVc9x0hRucQ7RUO6dhjfRYjwE3h0_brvAXOQOfyfBVostEMGSFXuMPcm0yXCOg71jEnmIo-u-Y_yrrYHGDpN4wans_3w5XJjmhGPsEl5eqKsFHt-PtLFMv-kM0QjCx9d26bLluPXUpoeI7scxZc5cosjXPzQaB/s1076/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.06.43.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1076&quot; data-original-width=&quot;1068&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCEFmET8oDVX2uSUAChT8YhRVc9x0hRucQ7RUO6dhjfRYjwE3h0_brvAXOQOfyfBVostEMGSFXuMPcm0yXCOg71jEnmIo-u-Y_yrrYHGDpN4wans_3w5XJjmhGPsEl5eqKsFHt-PtLFMv-kM0QjCx9d26bLluPXUpoeI7scxZc5cosjXPzQaB/w636-h640/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.06.43.jpg&quot; width=&quot;636&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Me gusta activar el &lt;i&gt;dithering&lt;/i&gt; (difuminado): Mezcla patrones de píxeles para sombrear.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheQJoXxLwKQTwaAovqOTHJrB-hkiNg_Qd8sPj8fg7u4MJvS_Tnbm9drdJG5Y-oQgO6Gizoyju0Wp_LCuiToLbZOMDww5oHKMEiJrPZi04JN-StQYGRYycVJNFptyppTeye8KOK69pEDuFBdbAvZ1hu-dsAuZ9FVCml8hKGXYjJxyxLPf7-G2N7/s3584/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.06.56.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;2264&quot; data-original-width=&quot;3584&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheQJoXxLwKQTwaAovqOTHJrB-hkiNg_Qd8sPj8fg7u4MJvS_Tnbm9drdJG5Y-oQgO6Gizoyju0Wp_LCuiToLbZOMDww5oHKMEiJrPZi04JN-StQYGRYycVJNFptyppTeye8KOK69pEDuFBdbAvZ1hu-dsAuZ9FVCml8hKGXYjJxyxLPf7-G2N7/w640-h404/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.06.56.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Imagen modificada a 114x64 y 16 colores.&amp;nbsp;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;También tenemos que pensar en cómo organizar los personajes: Quiero tener dos estados, uno quieto y otro andando. El único personaje que puede andar, ahora mismo, es nuestro personaje, pero estaría bien dejar preparada la lógica para permitir andar también a los NPC en el futuro. Además, cada estado se representa gráficamente en cuatro direcciones, dependiendo de dónde esté mirando nuestro personaje (norte/sur/oeste/este, aunque cuando programamos juegos preferimos arriba/abajo/izquierda/derecha). Además, podemos hacer que cada personaje tenga su propio fichero FPG y que los códigos id de cara estado/dirección sean los mismos para cada personaje. Esto nos permite tener un código más modular y mantenible.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Para mi solución, los personajes quietos tendrán gráficos estáticos, pero quiero que cuando anden tengan una animación de 6&amp;nbsp;&lt;i&gt;sprites&lt;/i&gt; en bucle.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyuUpPRqBdI1rOwPSlFj4b_uXOMbveaRlLFmYdhZmrM7mWE3caJFfc1bp5HiNOrvYYGIB58BInfNvdI33hGZe73TvMmthn56LAGzJQSs69fi9RB7BDDbAXupGQZnbfIcTQfs87E_WVnNHO6WO1GunSpu4UAqPU4egjXMnbEzEb8rBhr0UouVna/s2658/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.30.48.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1620&quot; data-original-width=&quot;2658&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyuUpPRqBdI1rOwPSlFj4b_uXOMbveaRlLFmYdhZmrM7mWE3caJFfc1bp5HiNOrvYYGIB58BInfNvdI33hGZe73TvMmthn56LAGzJQSs69fi9RB7BDDbAXupGQZnbfIcTQfs87E_WVnNHO6WO1GunSpu4UAqPU4egjXMnbEzEb8rBhr0UouVna/w640-h390/Captura%20de%20pantalla%202026-01-10%20a%20las%2021.30.48.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Con estas premisas, podemos organizar los id de los FPG de personajes de la siguiente manera:&lt;p&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;1: Idle mirando arriba -&amp;gt; NPC y jugador.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;2: Idle, mirando derecha -&amp;gt; NPC y jugador.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;3: Idle, mirando abajo -&amp;gt; NPC y jugador.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;4: Idle, mirando izquierda -&amp;gt; NPC y jugador.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;5-10: Andar, mirando arriba -&amp;gt; Sólo jugador por ahora.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;11-16: Andar, mirando derecha -&amp;gt; Sólo jugador por ahora.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;17-22: Andar, mirando abajo -&amp;gt; Sólo jugador por ahora.&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;23-28: Andar, mirando izquierda -&amp;gt; Sólo jugador por ahora.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;¿Por qué ese orden de arriba, derecha, abajo izquierda? Por nada en especial, por seguir simplemente el sentido horario. Otra cosa a tener en cuenta es que DIV puede espejar &lt;i&gt;sprites&lt;/i&gt;, por lo que podemos realmente usar el mismo gráfico para mirar derecha/izquierda o andar derecha/izquierda (por eso he subrayado esas líneas). La decisión de espejar los gráficos o no, debería de depender únicamente del diseño de tus personajes. En mi caso prefiero tener gráficos separados de derecha/izquierda por si implemento personajes asimétricos (por ejemplo con una manga de cada color, o cojo o manco de una mano)... Si nuestro personaje es diestro y maneja una espada, difícilmente lo representaremos correctamente con gráficos espejados (dependiendo de dónde mire, sería diestro o zurdo).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Una vez aclarado esto, os presento el quinto ejemplo de hoy (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_05.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_05.PRG&lt;/a&gt;), el cual, para funcionar, requiere de diversos ficheros FPG donde almaceno todos los &lt;i&gt;sprites&lt;/i&gt; que utilizaremos (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/FPG/DIABLO&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/FPG/DIABLO&lt;/a&gt;) y ejecutar previamente una nueva versión del MAPGEN para generar los ficheros MapV2.dat e ItemsV2.dat (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN02.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN02.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote class=&quot;twitter-tweet&quot; data-media-max-width=&quot;560&quot;&gt;&lt;p dir=&quot;ltr&quot; lang=&quot;es&quot;&gt;Amaño de JRPG sobre Isekai Maou programado en MS-DOS con DIV2 Games Studio. Lo que veis es todo el gameplay, se trata de un tutorial que pienso publicar la semana que viene. &lt;a href=&quot;https://t.co/y3fzaoq0As&quot;&gt;pic.twitter.com/y3fzaoq0As&lt;/a&gt;&lt;/p&gt;— Le Hamster ruso (@Hamster_ruso) &lt;a href=&quot;https://twitter.com/Hamster_ruso/status/2010502047364153483?ref_src=twsrc%5Etfw&quot;&gt;January 12, 2026&lt;/a&gt;&lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; El salto entre este ejemplo y el anterior no solo es visual, sino también estructural y técnico. Aquí detallo las diferencias más importantes:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;1. Conversión completa a &lt;i&gt;sprites&lt;/i&gt;&amp;nbsp;y utilización de ficheros FPG:&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Los anteriores ejemplos utilizaban primitivas gráficas (draw()) para renderizar el mapa, los NPCs y el jugador.&lt;br /&gt;- JRPG_05: Todo el renderizado se realiza con sprites FPG (put() y xput()), permitiendo gráficos mucho más ricos, animaciones fluidas y efectos visuales como sombras transparentes. Si os fijáis, esto no suele la programación típica de DIV Games Studio con &lt;i&gt;sprites&lt;/i&gt;, donde por lo general hacemos procesos y cada uno tiene su propio gráfico con sus primitivas locales de x/y... Si no que utilizamos un sólo hilo para renderizarlo todo. Esto puede parecer que, en principio, aportamos una capa de complejidad a nuestro código, pero al hacer uso de estructuras donde definimos qué es qué (mapa, NPC, jugador...) realmente estamos optimizando mucho el rendimiento. Otra cosa a tener en cuenta es que, al abandonar draw en detrimento de put/xput, ya no nos hace falta almacenar id&#39;s en un array para borrarlos, puesto que el funcionamiento de estas primitivas no requiere de liberación de memoria.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOIHknhAG8xmuBLYQyMFxuzLF16vgt2PKPEO31q4KS-Zh2DE4ApRghjQvpq0__3uvP9WAO-DG5rwBXnqEj4uVH7T0FLAEqiZ7trz3WZi8PsiK1NZqx1ypG_iHi4cZUh1oGWT_e9_wrW8KFMRZfJm1HeT255VeVoRGAP0KvWFZCWJJgK-BRTJ07/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.58.47.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;682&quot; data-original-width=&quot;2602&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOIHknhAG8xmuBLYQyMFxuzLF16vgt2PKPEO31q4KS-Zh2DE4ApRghjQvpq0__3uvP9WAO-DG5rwBXnqEj4uVH7T0FLAEqiZ7trz3WZi8PsiK1NZqx1ypG_iHi4cZUh1oGWT_e9_wrW8KFMRZfJm1HeT255VeVoRGAP0KvWFZCWJJgK-BRTJ07/w640-h168/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.58.47.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYffxVRheDvyipuZkdaLVL0FL7wZUPrBC4hPdxR0vErs6XGNAo0bG2ZC3VCTCdnLdeHwLQPEgijP05sRFWtGMQSZuNBh71VFKfa84WEaShkZcc84h2B1hpReTFU7oA0iLHY3wqJi2084OsUZb5HSeP2sypK-QsY9-V3SaJi5dRTtsxWBP-3SiG/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.56.06.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1148&quot; data-original-width=&quot;2602&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYffxVRheDvyipuZkdaLVL0FL7wZUPrBC4hPdxR0vErs6XGNAo0bG2ZC3VCTCdnLdeHwLQPEgijP05sRFWtGMQSZuNBh71VFKfa84WEaShkZcc84h2B1hpReTFU7oA0iLHY3wqJi2084OsUZb5HSeP2sypK-QsY9-V3SaJi5dRTtsxWBP-3SiG/w640-h282/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.56.06.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- En las versiones anteriores los NPCs eran simples círculos de color, sin orientación ni animación.&lt;br /&gt;- En este nuevo ejemplo cada NPC tiene un&amp;nbsp;&lt;i&gt;sprite&lt;/i&gt;&amp;nbsp;para
 cada una de las 4 direcciones y el motor decide hacia dónde mira el NPC
 según la posición del jugador (priorizando la distancia horizontal o 
vertical según las distancias).&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiue-IfQ0W47GXZt2iTZjFF0keQ7GaD-Q93baRiVCjPifUB3_SvTF2vTTWYmqUJgexjzGtVRiwV0T3RoEqkATHwuDDNmjpeIabGa_y_ebNXgh0xn3uCsmTTQ8xuNJngCAlEtIEA4PwwDo-ze1LgwJ-GlyxT3PycD8qhAh-coZfbEKawxrzP2Ys/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.56.49.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1446&quot; data-original-width=&quot;2602&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiue-IfQ0W47GXZt2iTZjFF0keQ7GaD-Q93baRiVCjPifUB3_SvTF2vTTWYmqUJgexjzGtVRiwV0T3RoEqkATHwuDDNmjpeIabGa_y_ebNXgh0xn3uCsmTTQ8xuNJngCAlEtIEA4PwwDo-ze1LgwJ-GlyxT3PycD8qhAh-coZfbEKawxrzP2Ys/w640-h356/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.56.49.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- En las versiones anteriores las cajas de diálogo y el inventario eran simples rectángulos dibujados con draw().&lt;br /&gt;- En este nuevo ejemplo empleamos &lt;i&gt;sprites&lt;/i&gt; dedicados para las cajas de diálogo, el fondo 
del inventario e incluso implementamos sombras transparentes en los pies del personaje y de los NPC, logrando una presentación mucho más 
atractiva.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7gEaw-6_z5HudvXOHdCwdpEw-KhCf0xxTH_EC0OzXW9XS87h0lS_o51lNqmBHMWUuLKAhhBMiccMsvqTVNpiscoQ6AfA-EK9-ab92HnyDrw7xsgbL-jAeqRVijrDtP6Crm20-l7PwJ-eCwMpiEsn2Mbe7WnGtvAk15wmXvI4yyqLJArs-kT1W/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.02.30.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;776&quot; data-original-width=&quot;2602&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7gEaw-6_z5HudvXOHdCwdpEw-KhCf0xxTH_EC0OzXW9XS87h0lS_o51lNqmBHMWUuLKAhhBMiccMsvqTVNpiscoQ6AfA-EK9-ab92HnyDrw7xsgbL-jAeqRVijrDtP6Crm20-l7PwJ-eCwMpiEsn2Mbe7WnGtvAk15wmXvI4yyqLJArs-kT1W/w640-h190/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.02.30.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;2. Sistema de animación del jugador&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- En las versiones anteriores el jugador era un círculo estático.&lt;br /&gt;- Este nuevo ejemplo implementa un sistema de animación bastante completo basado en estados: Nuestro personaje podrá estar parado (&quot;Idle&quot;) o andando. Ambos estados cuentan a su vez con otros cuatro subestados, dependiendo de dónde esté mirando el personaje (norte/sur/este/oeste). Por otro lado, cada una de las cuatro animaciones de andar consta a su vez de 6 cuadros (&lt;i&gt;sprites&lt;/i&gt;) que se reparten de forma cíclica durante 30 &lt;i&gt;frames&lt;/i&gt; (cada 5 &lt;i&gt;frames&lt;/i&gt;, cambiamos el gráfico). El tema hacer avanzar la animación 1 vez cada 5 &lt;i&gt;frames&lt;/i&gt;&amp;nbsp;lo hago únicamente para que sea más agradable al ojo humano.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT0ATqMub0EwFhntbqg4t16lHMzSuDwZVBKTHJ0iGPr3W8Q4Wost19pEIy6AWy2lfo5FuWpq9cjC-QEKMdumzVYZL-UOeDLqcLySnhEP8clfhb6NM4puUTsSNZoNnZvCWZ-L2wDrsSymkQbHC2hlQeN0DdIwX7Fcmn-7P30mMVxCQHPA-0KR9q/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.08.15.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1558&quot; data-original-width=&quot;2602&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT0ATqMub0EwFhntbqg4t16lHMzSuDwZVBKTHJ0iGPr3W8Q4Wost19pEIy6AWy2lfo5FuWpq9cjC-QEKMdumzVYZL-UOeDLqcLySnhEP8clfhb6NM4puUTsSNZoNnZvCWZ-L2wDrsSymkQbHC2hlQeN0DdIwX7Fcmn-7P30mMVxCQHPA-0KR9q/w640-h384/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.08.15.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;3. Arquitectura data-driven para los gráficos&lt;/h4&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- En las versiones anteriores los gráficos estaban “hardcodeados” y cualquier cambio requería recompilar el juego principal.&lt;br /&gt;- En esta nueva versión los nombres de los archivos FPG se cargan dinámicamente desde los datos del mapa (MapsV2.dat), permitiendo cambiar gráficos o añadir nuevos sin tocar el código fuente del motor. Aún así ahora mismo tenemos que recompilar el MAPGEN, que es donde indicamos los ficheros correspondientes, pero el día de mañana podríamos implementar un editor para el juego que nos evite este proceso.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBjMr_Xd-6cXQi2w7n3M8p25jqZ1t6LfGopfvHXc4Qttr9bGuxNY2ViXBHEcgpKyy2tMhK7SitisQZIHy07YuznKs7tE_6aGfCjF1BJaNsDzytyU058P3EUA21oJCzoGByABorpGOvZcDRmUvlJ7JpaSefGOrzwFNczapxhQWjvCW5xEqoouWn/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.58.47.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;682&quot; data-original-width=&quot;2602&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBjMr_Xd-6cXQi2w7n3M8p25jqZ1t6LfGopfvHXc4Qttr9bGuxNY2ViXBHEcgpKyy2tMhK7SitisQZIHy07YuznKs7tE_6aGfCjF1BJaNsDzytyU058P3EUA21oJCzoGByABorpGOvZcDRmUvlJ7JpaSefGOrzwFNczapxhQWjvCW5xEqoouWn/w640-h168/Captura%20de%20pantalla%202026-01-12%20a%20las%2020.58.47.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYWX6AWhK_KXscDVwnDnntPSwoxAsKh-6hk7SyfCxdr-X4fnSTXljOc3-iKUGOLvjVB8_zMva4Q8wFi3BysNC2aFBfazjpjkYfglgSOEsmceob7q0iQUPPmyesxCWxogZ6QEmKKICL7NM8ZlfehjLgWsgUBr3ozVTLKdZ1XdYfNNbREuGZR0Sx/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.06.38.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;894&quot; data-original-width=&quot;2602&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYWX6AWhK_KXscDVwnDnntPSwoxAsKh-6hk7SyfCxdr-X4fnSTXljOc3-iKUGOLvjVB8_zMva4Q8wFi3BysNC2aFBfazjpjkYfglgSOEsmceob7q0iQUPPmyesxCWxogZ6QEmKKICL7NM8ZlfehjLgWsgUBr3ozVTLKdZ1XdYfNNbREuGZR0Sx/w640-h220/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.06.38.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 6&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, por ahora, aunque hayamos mejorado mucho la arquitectura de nuestro juego, realmente sólo tenemos a un personaje que pasea y habla con personajes. Podemos ir un paso más y crear un sistema de quests. De hecho, el ejemplo de a continuación implementa un sistema de quests que se activa hablando con un NPC (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN03.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN03.PRG&lt;/a&gt; y&amp;nbsp;&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_06.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_06.PRG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En este ejemplo, defino un sistema de quests que tienen estado (NOT_STARTED, ACTIVE y COMPLETED) y para poder explotarlo he tenido también que adaptar el sistema de diálogos, permitiendo frases condicionales en función del estado de una &lt;i&gt;quest&lt;/i&gt;&amp;nbsp;(si ha empezado, si cumplimos las condiciones para acabarla, si no las cumplimos o si la quest ha acabado). A su vez, completar una &lt;i&gt;quest&lt;/i&gt; lleva acciones y consecuencias, como restar ítems de tu inventario y recibir dinero. Por ahora, a nivel de estructuras, las &lt;i&gt;quest&lt;/i&gt; están embebidas por NPC, pero es algo que podríamos externalizar en el futuro.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gNb909d4vkDXBz9bGoxriteeWF09kqTw0S4hsOkfXwuQfjbGwvfGdw36MP6vj5O3IVgtNBP8iQe-Lr3fUncMjT85vo9XT8K-ReDbG2LWvNeledKOgm1thcnRk_g91W8N9ooXIicieoCVVX1Hk7_PD7l1lQeH00e4P8UJu4nvKvIUgs5e2e1W/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.11.52.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;972&quot; data-original-width=&quot;2602&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gNb909d4vkDXBz9bGoxriteeWF09kqTw0S4hsOkfXwuQfjbGwvfGdw36MP6vj5O3IVgtNBP8iQe-Lr3fUncMjT85vo9XT8K-ReDbG2LWvNeledKOgm1thcnRk_g91W8N9ooXIicieoCVVX1Hk7_PD7l1lQeH00e4P8UJu4nvKvIUgs5e2e1W/w640-h240/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.11.52.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw94NeWXHtVRYu09RZoLnGgZ7n2z51ALgEjsMwTb5oKTzacjJLEuAixRzK42FVhJ_YToJJuQauh-qQi5If-HBW5AnC3C37UFKnktfZ6CD-ONpOYXyIa7Kh9kj4266ugenmBxG-qQH0MjO1sTeaf61qS2tg4I6dFREfi0jwc3j4gLEckNI-2K6W/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.13.24.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1232&quot; data-original-width=&quot;2602&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw94NeWXHtVRYu09RZoLnGgZ7n2z51ALgEjsMwTb5oKTzacjJLEuAixRzK42FVhJ_YToJJuQauh-qQi5If-HBW5AnC3C37UFKnktfZ6CD-ONpOYXyIa7Kh9kj4266ugenmBxG-qQH0MjO1sTeaf61qS2tg4I6dFREfi0jwc3j4gLEckNI-2K6W/w640-h304/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.13.24.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS3Y94axBo_i0Qa3etLy7LtOk8aYFv5VfRlVQW4Jqztg7ZK004A53i7r8iSA6xttwEWrqgPn4tp1SXowCWnEIGXkEW5llwlOqIR3BQjkwQUP7CxbWn_f9YY7wZNcHE24oSOxMdGzvrLe3XRW1f9CJ3cpYwyWrxVa7Ftrt0lzZmyfo6jfB3imwK/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.17.56.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS3Y94axBo_i0Qa3etLy7LtOk8aYFv5VfRlVQW4Jqztg7ZK004A53i7r8iSA6xttwEWrqgPn4tp1SXowCWnEIGXkEW5llwlOqIR3BQjkwQUP7CxbWn_f9YY7wZNcHE24oSOxMdGzvrLe3XRW1f9CJ3cpYwyWrxVa7Ftrt0lzZmyfo6jfB3imwK/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.17.56.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;De paso he tenido que modificar la pantalla de menú (la que vemos al pulsar ESC) para que podamos seleccionar si ver ítems o las &lt;i&gt;quests&lt;/i&gt;&amp;nbsp;aceptadas (por que sí, no sólo podemos rechazar una &lt;i&gt;quest&lt;/i&gt;, también podemos rechazarla).&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqqWEE8ZQ2Ar9w_0kVq7EmPzAOSprXx1kAzdGthyphenhyphen68T2eIiraIIomcnyRxwoZkK0eVSj5f6Pw5a4vha6wRTsQdq8saUINdlcn20FukSral7OCpRxZ5bg87tLXGAsDRZG3kZIHEQ1TCagKvMDSfzgEjVE3oTsQQXjYkFnhCWQD3pO6qDZDhDT8z/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.15.42.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1496&quot; data-original-width=&quot;2602&quot; height=&quot;368&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqqWEE8ZQ2Ar9w_0kVq7EmPzAOSprXx1kAzdGthyphenhyphen68T2eIiraIIomcnyRxwoZkK0eVSj5f6Pw5a4vha6wRTsQdq8saUINdlcn20FukSral7OCpRxZ5bg87tLXGAsDRZG3kZIHEQ1TCagKvMDSfzgEjVE3oTsQQXjYkFnhCWQD3pO6qDZDhDT8z/w640-h368/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.15.42.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik-jGilovGX43W4JEzctWmYEr4S6Zk7nHcN8c1ohIvamBIWzSTBMJHfmv45llqCJ5P1bFNbFLiDxtjj4pYUu-BhLNa5EnBME81rqzexOUzGDzrI1LIuk3cx2chvSMGFLOfJ5wH34K38zUNq9ZPQ0ypHgcOIwFRyaAUscHaJL6vHOyuSJYOelrn/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.16.04.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1588&quot; data-original-width=&quot;2602&quot; height=&quot;390&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik-jGilovGX43W4JEzctWmYEr4S6Zk7nHcN8c1ohIvamBIWzSTBMJHfmv45llqCJ5P1bFNbFLiDxtjj4pYUu-BhLNa5EnBME81rqzexOUzGDzrI1LIuk3cx2chvSMGFLOfJ5wH34K38zUNq9ZPQ0ypHgcOIwFRyaAUscHaJL6vHOyuSJYOelrn/w640-h390/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.16.04.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpByLIiju9duRO4dYiHzoljlU7oeSyyuzXCS4Y-cxgiahrlbsrvN5sQw96s1KgbKO8GTZDvZXL-5hO16Z9wrXhyphenhyphene8DyxP9IjJ9ddHNHK_cK_48FsxGiUZu7EkqM7U1usvdruH4iaVDilF3k_lEx4DESFCdtR7Dkkv2_pYA4eo7wFP-JHzJx4Uv/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.10.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpByLIiju9duRO4dYiHzoljlU7oeSyyuzXCS4Y-cxgiahrlbsrvN5sQw96s1KgbKO8GTZDvZXL-5hO16Z9wrXhyphenhyphene8DyxP9IjJ9ddHNHK_cK_48FsxGiUZu7EkqM7U1usvdruH4iaVDilF3k_lEx4DESFCdtR7Dkkv2_pYA4eo7wFP-JHzJx4Uv/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.10.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgewFsojVBbzejADRDshZu5rzayjcy8ET2SD4qf8tI2MxzmgHpypBwnjD_Hj33oK48cM5OGqvC3EqDDVFAR2Nk4TjHAAjP_TDyT8B134oY6-Xi8sO-HhVpYz3X25R35EgZc2RXKWCZCPGxMybcHhRoZRdQx_XTdBGp8TROz78oF3Wx6co5ofrRZ/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.17.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgewFsojVBbzejADRDshZu5rzayjcy8ET2SD4qf8tI2MxzmgHpypBwnjD_Hj33oK48cM5OGqvC3EqDDVFAR2Nk4TjHAAjP_TDyT8B134oY6-Xi8sO-HhVpYz3X25R35EgZc2RXKWCZCPGxMybcHhRoZRdQx_XTdBGp8TROz78oF3Wx6co5ofrRZ/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.17.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKYEVOclG4vOUvpIvuwWBuA6409T67BFMtO3IKQXnxtiov7eZW0XpBe6bJMwIf0jJ4H_LraQogCqVylBEBWreIRXjQn-HuPNc4uxuLBp4ra9RgJrWYbesP3AELNWp3J72GVJ9QRZ8BZoD2Iu5H9-nxStjRQW87n1tIOEsIT7gpIKxk_qa0DuQE/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.26.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKYEVOclG4vOUvpIvuwWBuA6409T67BFMtO3IKQXnxtiov7eZW0XpBe6bJMwIf0jJ4H_LraQogCqVylBEBWreIRXjQn-HuPNc4uxuLBp4ra9RgJrWYbesP3AELNWp3J72GVJ9QRZ8BZoD2Iu5H9-nxStjRQW87n1tIOEsIT7gpIKxk_qa0DuQE/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.26.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; Y para acabar con este ejemplo, también he aplicado un &lt;i&gt;zoom&lt;/i&gt; en los diálogos (con transición) para que el juego luzca más &lt;i&gt;juicy&lt;/i&gt;. Para ello recalculamos el tamaño y la posición de los &lt;i&gt;tiles&lt;/i&gt; y personajes que hay en pantalla y los restablecemos sus dimensiones y coordenadas originales al finalizar el diálogo.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBXxfl-c1BIPaFB-HHsaBXeqtCSF5382e43UBYL_hjZV5lwDF3a6PTW5jpFeIvXo7graEX6QsTVRISc81o4GTlfsL7GdU6yj32g6WD7pK-np39BcEqrQcEGZtT7kL7Yt_AFYd5fKalkqKzLlkjAkgXOCZpKMc5NT72XBXaqaCbx-DZU_A17VpB/s2602/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.14.29.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;954&quot; data-original-width=&quot;2602&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBXxfl-c1BIPaFB-HHsaBXeqtCSF5382e43UBYL_hjZV5lwDF3a6PTW5jpFeIvXo7graEX6QsTVRISc81o4GTlfsL7GdU6yj32g6WD7pK-np39BcEqrQcEGZtT7kL7Yt_AFYd5fKalkqKzLlkjAkgXOCZpKMc5NT72XBXaqaCbx-DZU_A17VpB/w640-h234/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.14.29.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDJd0QoFpHpPWucZBYvikP_wmoDIvZqdhKmEzPapbr1gfe8wVafmEBZ2_ZAt55r-tcjE6JbHQ-SwUigpk7-MqmerEndjj9vKQYQhU2lSKgRrRx_Y4Hvm3azt9j_AEaYOcy-xyadbierp2djUpm_pGkcJQmtrgqh2iXZz88TMscGO_9jIaoe-hD/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.51.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDJd0QoFpHpPWucZBYvikP_wmoDIvZqdhKmEzPapbr1gfe8wVafmEBZ2_ZAt55r-tcjE6JbHQ-SwUigpk7-MqmerEndjj9vKQYQhU2lSKgRrRx_Y4Hvm3azt9j_AEaYOcy-xyadbierp2djUpm_pGkcJQmtrgqh2iXZz88TMscGO_9jIaoe-hD/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.18.51.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg618w-4NqaGPvwo0C6O5hxKUVxxpA9hijrdz8GKH0UH9rvR8ol-YrG0xVRBqIIuhs2t1uOg_r2QmyOergHtQ9rSDKuUUOPo0OFgvEb5h184SI95Z9xf-L-_ACL0Wcn1KjxfshvHmVH4SDuh6esD069chafhXPEWlIojSRmCnbOaAac9oHr60u/s1504/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.19.00.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhg618w-4NqaGPvwo0C6O5hxKUVxxpA9hijrdz8GKH0UH9rvR8ol-YrG0xVRBqIIuhs2t1uOg_r2QmyOergHtQ9rSDKuUUOPo0OFgvEb5h184SI95Z9xf-L-_ACL0Wcn1KjxfshvHmVH4SDuh6esD069chafhXPEWlIojSRmCnbOaAac9oHr60u/w640-h528/Captura%20de%20pantalla%202026-01-12%20a%20las%2021.19.00.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 7&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;
 &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, todo buen JRPG de la época del MS-DOS tenía un sistema de galería de imágenes y eso es lo que he implementado en este séptimo ejemplo (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN04.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN04.PRG&lt;/a&gt;,&amp;nbsp;&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_07.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_07.PRG&lt;/a&gt;&amp;nbsp;y &lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/FPG/DIABLO/CG.FPG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/FPG/DIABLO/CG.FPG&lt;/a&gt;). Como en los anteriores ejemplos, éste trae también su versión de MAPGEN que tendréis que lanzar antes de ejecutar el JRPG_07 y además trae un fichero CG.FPG que contiene 3 imágenes que iremos desbloqueando en el juego.&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizxrggJT7Sut8sKFCIdRqxSx_h9VTamIZqrvFVSvkNVJv5tM9Wb_eFnFJEiEfBL92ALPgQpMEi7XdVWfm_SxZLNLX-4x7w2j2eZMvdDKnhK3DRizBSJrw37Rd8NKh3pKsGHmBJ9GMHScn2-qulwR6VG08ydTvNpWzrQ0UXPHcX89g2T01rspB/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%200.04.58.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgizxrggJT7Sut8sKFCIdRqxSx_h9VTamIZqrvFVSvkNVJv5tM9Wb_eFnFJEiEfBL92ALPgQpMEi7XdVWfm_SxZLNLX-4x7w2j2eZMvdDKnhK3DRizBSJrw37Rd8NKh3pKsGHmBJ9GMHScn2-qulwR6VG08ydTvNpWzrQ0UXPHcX89g2T01rspB/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%200.04.58.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Básicamente algunos diálogos lanzarán una imagen, que a modo de evento, se verá en pantalla completa, como si se tratara de una visual novel y su implementación no es nada complicada. Básicamente en las estructuras de diálogo, además de un string para el texto añadimos un INT para indicar un ID de imagen que corresponderá a la imagen que hay que mostrar dentro del fichero CG.FPG: Y si el valor de ese ID es cero, no se mostrará ninguna imagen de fondo.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9iES0h2QO2_Dx8OYEWuwhSgGIO6_BlrwQhpycD9on9w90aokkapjB5ghZkGDS6eBsTNoHI7s1PL3Sz8w23HGhlilTy-CFoxHzwvvk26q-q7-Z61zgQfoNGj-lo9z4ep3DnXkGigPT1nv_3znpVvEPLgA3cAkMfhxBs427b55RQvQS3WZb-6cP/s2602/Captura%20de%20pantalla%202026-01-13%20a%20las%200.13.55.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1456&quot; data-original-width=&quot;2602&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9iES0h2QO2_Dx8OYEWuwhSgGIO6_BlrwQhpycD9on9w90aokkapjB5ghZkGDS6eBsTNoHI7s1PL3Sz8w23HGhlilTy-CFoxHzwvvk26q-q7-Z61zgQfoNGj-lo9z4ep3DnXkGigPT1nv_3znpVvEPLgA3cAkMfhxBs427b55RQvQS3WZb-6cP/w640-h358/Captura%20de%20pantalla%202026-01-13%20a%20las%200.13.55.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCzFrYqWk4J-uVStnYwFv7Zbl9o01WbqfYaHWB-deqXbj9InWmtKnldhW3QRv1hoA_txNQK30g_IGTUAsXPDlgNkveOBBgtreYLeEPF7ePKI-qzS5P7n2OMihXrKrJng3bKKFdiYoJvhhUvoEnENAJ1dAJf0UhpashxMd8bRhHLvJzU37UMMYx/s2602/Captura%20de%20pantalla%202026-01-13%20a%20las%200.19.39.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;760&quot; data-original-width=&quot;2602&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCzFrYqWk4J-uVStnYwFv7Zbl9o01WbqfYaHWB-deqXbj9InWmtKnldhW3QRv1hoA_txNQK30g_IGTUAsXPDlgNkveOBBgtreYLeEPF7ePKI-qzS5P7n2OMihXrKrJng3bKKFdiYoJvhhUvoEnENAJ1dAJf0UhpashxMd8bRhHLvJzU37UMMYx/w640-h186/Captura%20de%20pantalla%202026-01-13%20a%20las%200.19.39.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Además, la partida memorizará si hemos visto ya esa escena y la podremos visualizar a través del menú del juego, en una nueva sección dedicada a las CG.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1cs0oJLo3XCrcES-Ekpt-9SkgYW9_Abpd7vP2EsP9HpUz4QI0bsrGxgFJxu1iNsMFO57fPIVLDo9rZXp2o1leSVu2fGKaTFfhKXdU61hnb8U9RHjyBV5msCNAofCT_WTpjw2Kb6TyBZspK2cCXVogPTxEQEMiW4aC2uqPsAqXRGSCnfjhKUr/s2602/Captura%20de%20pantalla%202026-01-13%20a%20las%200.21.12.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;2602&quot; height=&quot;72&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1cs0oJLo3XCrcES-Ekpt-9SkgYW9_Abpd7vP2EsP9HpUz4QI0bsrGxgFJxu1iNsMFO57fPIVLDo9rZXp2o1leSVu2fGKaTFfhKXdU61hnb8U9RHjyBV5msCNAofCT_WTpjw2Kb6TyBZspK2cCXVogPTxEQEMiW4aC2uqPsAqXRGSCnfjhKUr/w640-h72/Captura%20de%20pantalla%202026-01-13%20a%20las%200.21.12.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpnkDULT1Z5ddPTV5OcYrElrwt2CGsW5uSTIPoPpYYu1TuUhl3PtTxD7QkjvQKklQwHDZsdNxGeXRgHmT17tjfvVleXG9KWdpelq-B42t97sawgxlsal2d1_kLyGJj-p6Ohft0FnAk5dO7GcS4KxEyLIXNuNZR6Zu4n4ue19NEfRHPPe5AQUNX/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.15.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpnkDULT1Z5ddPTV5OcYrElrwt2CGsW5uSTIPoPpYYu1TuUhl3PtTxD7QkjvQKklQwHDZsdNxGeXRgHmT17tjfvVleXG9KWdpelq-B42t97sawgxlsal2d1_kLyGJj-p6Ohft0FnAk5dO7GcS4KxEyLIXNuNZR6Zu4n4ue19NEfRHPPe5AQUNX/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.15.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhON7KbCK42pC6Vdb5WGm5SDmck9T6BmU9fu6WB4gFKfbGwfCHYLINb-zHxosqK_aJeJswZyMHEFAytX-qz12tT9cJ4-F6vLcOodZ6GZnC4SZ5a0m2NYFN161GhKGHwi_6EEakqZoxReXUnnWKpTjrSYvfQNBjL-ySxQwx1DDw7tbqNMZf7KSc9/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.22.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhON7KbCK42pC6Vdb5WGm5SDmck9T6BmU9fu6WB4gFKfbGwfCHYLINb-zHxosqK_aJeJswZyMHEFAytX-qz12tT9cJ4-F6vLcOodZ6GZnC4SZ5a0m2NYFN161GhKGHwi_6EEakqZoxReXUnnWKpTjrSYvfQNBjL-ySxQwx1DDw7tbqNMZf7KSc9/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.22.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eUysjbauzAA0SzLiy96wcs3gK9ZHRfn_z-CczKi_OhePB8MR5VIcFeokKT3mZ5EUhFx3ahjd9puAIcyVmwWwkuuHl0c9-6ulUq5c3tTIeR76P4bt4WMnr22FMfKQgx2H-cbwQRpl3hmsCQ1tb6NWVcQsLgh1KdVLQK67SAk2CoNSDwGFkq7l/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.28.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3eUysjbauzAA0SzLiy96wcs3gK9ZHRfn_z-CczKi_OhePB8MR5VIcFeokKT3mZ5EUhFx3ahjd9puAIcyVmwWwkuuHl0c9-6ulUq5c3tTIeR76P4bt4WMnr22FMfKQgx2H-cbwQRpl3hmsCQ1tb6NWVcQsLgh1KdVLQK67SAk2CoNSDwGFkq7l/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%200.05.28.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Ejemplo 8&lt;/h2&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;
 &amp;nbsp; &amp;nbsp;¿Y qué más podemos hacer para mejorar nuestro juego? Bueno, sólo nos quedan por hacer dos cosas para dar nuestro juego por acabado: Un sistema de combates por turnos y poder guardar y cargar la partida. Además de esto, el ejemplo también mejora la gestión del audio, permitiendo cambiar la canción del fondo dependiendo del mapa y cada mapa además tendrá su propia música también para los combates (si los tiene).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Para hacer funcionar este ejemplo os hará falta:&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Bajar y ejecutar el MAPGEN05.PRG (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN05.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/MAPGEN05.PRG&lt;/a&gt;) para generar todos los ficheros &quot;.dat&quot; en formato binario.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Descargar el MONSTERS.FPG (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/FPG/DIABLO/MONSTERS.FPG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/FPG/DIABLO/MONSTERS.FPG&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Descargar todos los FPG previos (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/FPG/DIABLO&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/tree/main/FPG/DIABLO&lt;/a&gt;).&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;- Descargar y compilar el JRPG_08.PRG (&lt;a href=&quot;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_08.PRG&quot;&gt;https://github.com/LeHamsterRuso/DIV2Examples/blob/main/PRG/JRPG_08.PRG&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirs19fwcAb8DcPgLQrrCsloJuWvlghOmz53fgu_DVXNzefgXcWUx60hLj4n8zojf4mahly3oRH1IIqePUKEKgrDS-mAnrZsYUCTs8_cc9aRUxFyL6fcmzhRWvYuIeDaKuxEwO2jLhayjHApJ8Crb9xwYvJlaUt2kP_TBCPFYYh5V3PmAnhvjkx/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.32.59.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirs19fwcAb8DcPgLQrrCsloJuWvlghOmz53fgu_DVXNzefgXcWUx60hLj4n8zojf4mahly3oRH1IIqePUKEKgrDS-mAnrZsYUCTs8_cc9aRUxFyL6fcmzhRWvYuIeDaKuxEwO2jLhayjHApJ8Crb9xwYvJlaUt2kP_TBCPFYYh5V3PmAnhvjkx/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.32.59.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg91iI9N3oiOttT21TnhqwIipr3yRPQgL3xjx6E4oLwOUeB2DcRGoeFI7OWCVwlvUu61qK2UNQE3kGSTx9aDoE-VBqMv9vFzdAd0dDK6_mp5D8Md4A-DYPUtGQvc3oPaMmtkupFW_7ORemJs0QkdFpu4oj7Ou0N4jMGtepPLExfGQr3N1B8oyy4/s1504/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.33.16.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1240&quot; data-original-width=&quot;1504&quot; height=&quot;528&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg91iI9N3oiOttT21TnhqwIipr3yRPQgL3xjx6E4oLwOUeB2DcRGoeFI7OWCVwlvUu61qK2UNQE3kGSTx9aDoE-VBqMv9vFzdAd0dDK6_mp5D8Md4A-DYPUtGQvc3oPaMmtkupFW_7ORemJs0QkdFpu4oj7Ou0N4jMGtepPLExfGQr3N1B8oyy4/w640-h528/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.33.16.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; La lógica de los combates es demasiado complicada como para entrar al detalle a nivel de código. De hecho, la rutina (&quot;battle_screen&quot;) ocupa unas 800 líneas. Pero en fin, a modo de resumen, dicha rutina comienza inicializando el estado de batalla: selecciona aleatoriamente entre 1 y 3 enemigos (en este caso, slimes), asignando sus estadísticas de salud máxima y actual desde una base de datos de monstruos.Se muestra un mensaje inicial de aparición de enemigos y se cambia la música a la canción de batalla. En esta rutina se emplean conceptos básicos de programación como la inicialización de arrays y estructuras, el uso de números aleatorios con rand() y el manejo de recursos gráficos y de audio con funciones como put() y ChangeSong(). Además, se establece un temporizador para mostrar el mensaje inicial, ilustrando el control de tiempo en bucles con estimatedSeconds (función que estima los segundos en función de los fps de la structura ScreenConfig) y FRAME.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; El núcleo de la rutina es un bucle principal que maneja los turnos alternos entre el jugador y los enemigos. Durante el turno del jugador, se presenta un menú con opciones como &quot;Atacar&quot;, &quot;Magia&quot;, &quot;Defender&quot; y &quot;Huir&quot;, usando condicionales y manejo de entrada con KEY() para navegar y seleccionar. Si se elige atacar, se activa un modo de selección de objetivo, destacando el enemigo seleccionado con cambios visuales (tamaño y transparencia). Para la magia, se muestra una lista de hechizos disponibles, permitiendo elegir uno si hay suficiente MP. Los enemigos, por su parte, atacan aleatoriamente al jugador en su turno. En esta parte se hace uso de variables de estado (como player_turn, selecting_target), bucles anidados para dibujar elementos dinámicos y cálculos de daño basados en estadísticas. También incluye animaciones de muerte para enemigos (con transparencia y escalado vía xput), enseñando sobre temporizadores y flags booleanos para controlar secuencias complejas.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;La rutina verifica continuamente las condiciones de victoria (todos los enemigos derrotados) o derrota (salud del jugador en cero), actualizando el estado del juego en consecuencia. En caso de victoria, se otorgan recompensas como oro e ítems, actualizando el inventario del jugador mediante búsquedas en arrays. Se muestra un mensaje de victoria con temporizador antes de restaurar la música normal y salir del combate. Si el jugador huye o muere, se maneja la derrota de manera similar. Finalmente, se limpian todos los textos y gráficos dibujados, restableciendo flags como in_battle para volver al mapa principal. Esta parte resalta la importancia de la gestión de estado global y el manejo de inventarios con operaciones de array (como agregar ítems).&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; En cuanto al sistema de guardado, veréis por el código que no hay mucho misterio, es aplicar el mismo mecanismo de escritura de los ficheros &quot;dat&quot; de los MAPGEN, pero llevado a un fichero &quot;save&quot;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZsJVdCdWH6oD1eVEjnxe-8JMuSudQ2TIbEHJf0HJEf4oCYxK6tU3zwZhINPXUdZeFOWy8Lvb58r6N2iO_G6PEIQaJ7pu31y6mECUVXNWKqeCUrtJk0u7zaEPh65hGDk39RDCjQuaZdW6DQ3P9Upyf2pi3DmEbTWMR93vFswgwW4rkBiIIhT6/s1574/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.55.54.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1574&quot; data-original-width=&quot;1444&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKZsJVdCdWH6oD1eVEjnxe-8JMuSudQ2TIbEHJf0HJEf4oCYxK6tU3zwZhINPXUdZeFOWy8Lvb58r6N2iO_G6PEIQaJ7pu31y6mECUVXNWKqeCUrtJk0u7zaEPh65hGDk39RDCjQuaZdW6DQ3P9Upyf2pi3DmEbTWMR93vFswgwW4rkBiIIhT6/w588-h640/Captura%20de%20pantalla%202026-01-13%20a%20las%2022.55.54.jpg&quot; width=&quot;588&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; Y así queda nuestro juego:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;
&lt;blockquote class=&quot;twitter-tweet&quot; data-media-max-width=&quot;560&quot;&gt;&lt;p dir=&quot;ltr&quot; lang=&quot;es&quot;&gt;Ya parece hasta que sea un juego :-) &lt;a href=&quot;https://twitter.com/hashtag/MSDOS?src=hash&amp;amp;ref_src=twsrc%5Etfw&quot;&gt;#MSDOS&lt;/a&gt; &lt;a href=&quot;https://twitter.com/hashtag/DIV2GAMESSTUDIO?src=hash&amp;amp;ref_src=twsrc%5Etfw&quot;&gt;#DIV2GAMESSTUDIO&lt;/a&gt; &lt;a href=&quot;https://twitter.com/hashtag/ISEKAIMAOU?src=hash&amp;amp;ref_src=twsrc%5Etfw&quot;&gt;#ISEKAIMAOU&lt;/a&gt;. &lt;a href=&quot;https://t.co/KM3HuDNa7V&quot;&gt;https://t.co/KM3HuDNa7V&lt;/a&gt; &lt;a href=&quot;https://t.co/HTRaQSQfMg&quot;&gt;pic.twitter.com/HTRaQSQfMg&lt;/a&gt;&lt;/p&gt;— Le Hamster ruso (@Hamster_ruso) &lt;a href=&quot;https://twitter.com/Hamster_ruso/status/2011198674219462792?ref_src=twsrc%5Etfw&quot;&gt;January 13, 2026&lt;/a&gt;&lt;/blockquote&gt;&lt;p&gt; &lt;script async=&quot;&quot; charset=&quot;utf-8&quot; src=&quot;https://platform.twitter.com/widgets.js&quot;&gt;&lt;/script&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Bonus: Uso de punteros en DIV&lt;/h3&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Esta noche he modificado el código del ejemplo JRPG_08.PRG, en el que he revisado la complejidad ciclomática de varios métodos complejos y de paso he retocado varias funciones haciendo uso de punteros. Y me gustaría mencionar esto porque en DIV Games Studio el uso de punteros no es muy evidente, en especial si venís del mundo de C.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Los punteros permiten manipular direcciones de memoria de manera eficiente, facilitando el acceso indirecto a variables y estructuras de datos.&lt;/p&gt;&lt;ul style=&quot;text-align: justify;&quot;&gt;&lt;li&gt;En DIV, los punteros se gestionan principalmente con OFFSET para crear referencias a variables, permitiendo acceso indirecto sin copiar datos grandes, como se ve en llamadas como OFFSET(PlayerStats.hp) para pasar la dirección de la vida del jugador.&lt;/li&gt;&lt;li&gt;El operador * desreferencia estos punteros para leer o modificar el valor original, por ejemplo, *hp_offset += 10 en una función para incrementar la HP directamente, evitando retornos explícitos.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Los arrays se manejan con [] para indexar elementos fijos, como Enemies[i].alive para acceder al estado de un enemigo específico, mientras que operadores como ^ o &amp;amp; no aparecen en el código, ya que DIV no soporta punteros a arrays dinámicos ni referencias implícitas como en otros lenguajes.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Pasar variables entre funciones en DIV se basa en OFFSET para lograr paso por referencia, esencial para modificar structs o arrays sin duplicarlos, como en FUNCTION handle_player_action(INT selected_action_offset, ...), donde selected_action_offset permite cambiar la selección de acción dentro de la función. Para paso por valor, se pasan copias directas, como INT num_enemies, pero para structs complejos como PlayerStats, usar OFFSET evita sobrecarga; Un ejemplo es actualizar estadísticas con actualizar_hp(OFFSET(jugador.hp)), donde la función hace hp_offset += cantidad, reflejando cambios globales. Esta técnica, visible en funciones como handle_interactions(OFFSET(closest_npc)), optimiza el rendimiento y mantiene la modularidad, aunque requiere cuidado con la gestión de memoria para evitar errores de desreferencia.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; El caso es que la gestión de punteros es rara de narices en DIV. Por ejemplo, podemos definir una variable &quot;INT msg_timer = 0&quot; e incluso crear un puntero que apunte a él &quot;INT *msg_timer_offset = OFFSET msg_timer&quot;, pero no podemos crear un puntero, &quot;tal cual&quot;, en la cabecera de una función. Tomemos por ejemplo la cabecera de la función&amp;nbsp;handle_turns:&lt;/p&gt;&lt;p style=&quot;margin-left: 40px; text-align: justify;&quot;&gt;FUNCTION handle_turns(INT num_enemies, &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;INT player_turn_offset, INT battle_active_offset, INT message_text_id_offset, INT msg_timer_offset,&lt;span style=&quot;background-color: white;&quot;&gt; STRING battle_msg,&lt;/span&gt; INT input_timer_offset&lt;/span&gt;)&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Si nos fijamos en esa función 5 de los 7 parámetros son punteros (los que acaban en &quot;_offset&quot;), pero en la cabecera de la función los definimos como de tipo entero (INT) y no de tipo puntero a entero (INT *). ¿Por qué? Pues sencillamente porque no compila. Y esto sorprende mucho, porque la gracia de los punteros, aparte de de para gestionar memoria dinámicamente, radica en poder hacer cambios en una variable desde distintos métodos. Y bueno, battle_msg, ¡tambien es un puntero!, puesto que cuenta como array de chars pese a no existir los CHAR en DIV.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; De hecho, si os fijáis en el código, para esas variables estamos empleando el operador OFFSET en las llamadas a hundle_turns:&lt;/p&gt;&lt;p style=&quot;margin-left: 40px; text-align: left;&quot;&gt;handle_turns(num_enemies, &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;OFFSET(player_turn), OFFSET(battle_active), OFFSET(message_text_id), OFFSET(msg_timer)&lt;/span&gt;, battle_msg, &lt;span style=&quot;background-color: #fff2cc;&quot;&gt;OFFSET(input_timer)&lt;/span&gt;);&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Entonces, ¿qué pasa aquí? ¿Por qué las llamadas usamos OFFSET para pasarle la dirección de memoria de las variables si en la cabecera NO esperamos un número entero? ¡Pues porque el funcionamiento de DIV es copiar por valor el número de referencia en un entero y luego acceder a su contenido con el operador &quot;*&quot;. Y esto abre las puertas al polimorfismo, si toda referencia se pasa como un INT, luego podemos manipular su contenido como queramos.&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Por cierto, aquí tenéis mi ejemplo favorito: (*msg_timer_offset)--;&lt;/p&gt;&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge3Hod6MHW8hSDHv8c6TjJCnZ4g1_4zB2BalIhHX3jj28HnHJWtp9Rep-rpwMF9RAiIktGW241ceC-q5BqkLUfrTMqZ_sxh-xNmOVbkR1FqaXj_SnfmKpL8-a4Z2kkdUpC1l_ysRu-Z4i4v5-DrASqCa2nZgj18ZvlUnQfE2TX5mwt_ojcVfJj/s1370/Captura%20de%20pantalla%202026-01-14%20a%20las%2021.25.34.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;350&quot; data-original-width=&quot;1370&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge3Hod6MHW8hSDHv8c6TjJCnZ4g1_4zB2BalIhHX3jj28HnHJWtp9Rep-rpwMF9RAiIktGW241ceC-q5BqkLUfrTMqZ_sxh-xNmOVbkR1FqaXj_SnfmKpL8-a4Z2kkdUpC1l_ysRu-Z4i4v5-DrASqCa2nZgj18ZvlUnQfE2TX5mwt_ojcVfJj/w640-h164/Captura%20de%20pantalla%202026-01-14%20a%20las%2021.25.34.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Esta línea me tiene maravillado, porque es algo que funciona en C y que no me esperaba que funcionara en DIV: Esto, señoras y señores, decrementa el valor guardado en la dirección que tenemos entre paréntesis. Es simple, es hermoso y funciona.&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='text/html' href='http://www.elgeneralfailure.com/2026/01/aprendiendo-programar-para-ms-dos-con.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/6278095497982301184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18651756/posts/default/6278095497982301184'/><link rel='alternate' type='text/html' href='http://www.elgeneralfailure.com/2026/01/aprendiendo-programar-para-ms-dos-con.html' title='¿Aprendiendo a programar para MS-DOS con DIV2 Games Studio? ¡Hagámos un JRPG! (capítulo 2)'/><author><name>Le Hamster Ruso</name><uri>http://www.blogger.com/profile/11364833688960614876</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfgUDcpwIyJYqGouvoOEeKvsTn-igQdBKa5YQ4RpijIY7JCo9GJ1z8FroFO6BSAm4zT82zKdcfCCL16OxsziRyzH-_ddGkePch947iNfUG3CBAzcNXrdKKfkwWNcxrJKLwNyBHgq8G8rlgBY6wUOUVB5KeopT-qTOt-JsU9-wuwMX7SebOR7B_/s72-w640-h528-c/Captura%20de%20pantalla%202026-01-05%20a%20las%2019.58.39.jpg" height="72" width="72"/><thr:total>3</thr:total></entry></feed>